Series · 6 parts · 169 min total
Payments Correctness
How money gets charged twice, and the designs that stop it.
To be written: who this series is for, in one sentence.
The parts
- 1Pattern study
One Header Was Supposed to Stop Double Charges. Here Are 10 Ways It Didn’t.
A timeout is not a failure, and one header is not enough to stop a double charge.
- 2Deep dive
“We Have Exactly-Once Delivery” — The Lie Your Architecture Is Telling You
"Our queue guarantees exactly-once" is almost always false once a flow crosses a boundary.
- 3Deep dive
“The Money Was There When I Checked” — Transaction Isolation Levels and the Bugs Each One Lets Through
The code was inside a transaction, and it still sold three tickets when only one was left.
- 4Deep dive
COMMIT Returned OK. After the Power Came Back, the Row Was Gone.
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
- 5Case study
How Bitbucket Reads Your Own Writes Without Hammering the Master — LSN Tracking, Replica Lag, and a Redis Map
Reading your own writes is easy to define and hard to build without melting the primary.
- 6Paper walkthrough
Life Beyond Distributed Transactions — Why Hyperscale Apps Quietly Abandoned 2PC, and the Two Words That Replaced It
The paper that named the patterns every large system already uses.
Get new parts by email
One production failure explained every two weeks. Free.