June 23, 20264 minEngineering
The exactly-once lie: idempotency keys and how I keep payments honest
Networks retry. Queues redeliver. Users double-click. If your payment endpoint can't tell a retry from a new request, you will eventually pay someone twice. Here is the pattern I reach for every time.
- engineering
- backend
- distributed-systems