Reliability
Systems break in small, boring ways: a crash halfway through a job, a request sent twice, a message that never arrives. These posts show simple patterns that keep your data correct when that happens.
Start here
Postgres as a Job Queue: How SKIP LOCKED Works (and When It Breaks)
How to build a reliable job queue in PostgreSQL with FOR UPDATE SKIP LOCKED, with copy-paste SQL, diagrams, and the three ways it breaks in production.
Idempotency Keys Explained: How to Make API Retries Safe
What idempotency keys are, why every payments API uses them, and how to build them on the server with Postgres, with diagrams, SQL and common mistakes.
The Transactional Outbox Pattern, Explained Simply
How the transactional outbox pattern fixes the dual write problem, with diagrams, Postgres SQL, polling vs CDC, ordering, duplicates and the metric to watch.
All Reliability posts
The Transactional Outbox Pattern, Explained Simply
How the transactional outbox pattern fixes the dual write problem, with diagrams, Postgres SQL, polling vs CDC, ordering, duplicates and the metric to watch.
Idempotency Keys Explained: How to Make API Retries Safe
What idempotency keys are, why every payments API uses them, and how to build them on the server with Postgres, with diagrams, SQL and common mistakes.
Postgres as a Job Queue: How SKIP LOCKED Works (and When It Breaks)
How to build a reliable job queue in PostgreSQL with FOR UPDATE SKIP LOCKED, with copy-paste SQL, diagrams, and the three ways it breaks in production.