Idempotency Beyond API (Application Programming Interface) Requests: A Layered Defense
Idempotency isn't one header. It's a defense stack that has to be built separately across five layers, from the API key down to the step marker.
Idempotency isn't one header. It's a defense stack that has to be built separately across five layers, from the API key down to the step marker.
If a database write and an event publish aren't in the same transaction, one can vanish or duplicate. Outbox publishes; inbox dedups on the consumer.
Exactly-once messaging is a lie. How defense in depth — idempotency, dedup, outbox, and reconciliation — produces an effectively-once business outcome.