ECS scale-in was killing translation jobs up to two hours into their run. Scaling on queue depth and letting busy tasks finish before they stop fixed it.
$ ls ./blog # notes and case studies
Writing
Notes and case studies from building production systems. What was tried, what cost, and what changed.
- Moving a Node.js API onto PgBouncer transaction mode
Pooled connections remember their last SET. Under PgBouncer transaction mode the transaction is the only thing you own, so scope the tenant to it.
- Handling backpressure in Node.js streams
A Node.js stream says slow down with one boolean. Ignore it and a single stalled client parks 200 MiB in your process. Here is how the signal travels.
- Building a booking marketplace from empty repo to beta
A booking marketplace from empty repo to beta: a deploy gate in week one, and a Postgres exclusion constraint that rejects double bookings.
- Preventing stock overselling in Redis with Lua scripts
Every Redis command is atomic. The check-then-write your app wraps around them is not, and that gap is how 100 units become 121 orders.
- Live order status over Socket.IO and Redis
Socket.IO delivers at most once by default, so live order status on a driver's phone is only as good as the Redis read it makes on reconnect.
- Extracting fulfillment from a PHP monolith over SQS
Fulfilment moved into the order service over the SQS FIFO queue it already consumed. FIFO dedupes sends, so the consumer still has to be idempotent.
- Fixing 100% CPU on Aurora MySQL by removing a join
A status broadcast made about a thousand queries, each estimated at 7 million rows, and pinned Aurora at 100% CPU. The fix was a dropped join, not an index.
- Making LLM triage verdicts testable in code
Prompting an LLM to be careful never made pass/fail testable. Moving the verdict into code did, and replaying old incidents caught three false passes.
- Handling LLM rate limits as reschedules, not errors
Rate limits caused 65% of our LLM review failures. Treating them as reschedules, not errors, kept provider throttling from becoming our outage.
No posts match. Clear the search or pick another tag.