Skip to content
realproblem.me

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.
Start part 1

The parts

  1. 1
    Pattern study30 min

    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.

  2. 2
    Deep dive34 min

    “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.

  3. 3
    Deep dive13 min

    “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.

  4. 4
    Deep dive66 min

    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.

  5. 5
    Case study12 min

    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.

  6. 6
    Paper walkthrough14 min

    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.

Free. Every two weeks. Unsubscribe in one click.