Exactly Once: a checkout that never charges twice
One $80 order runs through 10,000 failure scenarios. Blind retries get 2,932 of them wrong, and safe retries get 0.
The safe version uses idempotency keys, a progress log, compensation, and a dead-letter queue.
Run the labSame checkout, same failures
Rust engine, run at build
- 51 waiting for a person
- 3 refunded or cancelled
Each grid holds the same 10,000 checkouts, one square each. A red square failed one of the lab’s checks, such as charging the card twice. A grey square passed.
Fault rates, the lab’s defaults
- 503, nothing commits
- 5%
- key store loses a key
- 0%
- timeout after commit
- 4%
- duplicate delivery
- 2%
- lost before commit
- 0%
- crash after commit
- 2%
