10 min read
How to Design a Payment API That's Safe to Retry (A Senior Interview Answer)
"Add an idempotency key" is where a senior answer starts. The rest is where the key comes from, and what the database refuses.
Catch up on past deep dives into production-grade React, Node.js, and AI systems.
10 min read
"Add an idempotency key" is where a senior answer starts. The rest is where the key comes from, and what the database refuses.
5 min read
Schema enforcement killed the parse errors. It didn't make the answers true, and a hallucinated ID passes every type check.
10 min read
It finished in a millisecond, and the API timed out for 15 seconds anyway. What went wrong, and 5 migrations to write differently on a big table.
9 min read
Every tutorial stops at the typed event bus. Here are the 3 production failures it skips, and the fix for each in Node.js.
7 min read
Your agent has tests. The thing grading them doesn't. Five rules for a judge you can trust.
8 min read
The 4 observability decisions to make before launch: trace every step, one ID end to end, five numbers on a dashboard, and logs that link to the trace.
9 min read
Save-then-publish drops messages without a single error in your logs. Here's the outbox + inbox pair that stops it, in plain Postgres and Node.js.
6 min read
The MCP servers I actually reach for when building features and shipping production apps.
8 min read
Checkpoints, scoped retries, idempotent tools, and run budgets: how production agents survive the failure math of 20-step loops.
9 min read
Your agent isn't a user. Stop authenticating it like one.