Distributed Systems · Failing safely
Exactly-once: what's possible
No network can promise that a message arrives exactly once. You choose at-most-once or at-least-once, then make the effect happen once by deduplicating where the work is done.
- Time25 min
- LevelSenior
- Experiments1 live
- Check6 questions






Start the producer registers its transactional.id; older instances are fenced.
Read the consumer polls order events from the input topic.
Process compute the invoices, with no emails and no outside calls.
Offsets add the consumed input offsets to the same transaction.
Commit markers are written; read_committed readers now see the invoices.
Service and outbox the event row commits with the order change.
Consumer to email provider the provider's idempotency key, derived from the event id.