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.
Duplicates, lost writes, overload and shutdown: keeping results right when things fail.
A timeout is not a failure, and one header is not enough to stop a double charge.
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
"Our queue guarantees exactly-once" is almost always false once a flow crosses a boundary.
How money gets charged twice, and the designs that stop it
Time, failure, agreement and load, from first principles
Follow one row through twelve steps, from INSERT to a byte that survives a power cut.
A timeout is not a failure, and one header is not enough to stop a double charge.
In software the outliers are not rare. They are the story.
When a service buckles under load, a bigger queue is the most natural wrong answer.
Every process will be told to stop. The question is whether it gets a warning it can act on.
"Our queue guarantees exactly-once" is almost always false once a flow crosses a boundary.
When the collector pauses, every thread stops: zero requests in, zero responses out.