📥Exactly-Once Semantics
Also known as Exactly Once, Exactly-Once Delivery, Exactly-Once Processing, EOS
Each message counts one time, even if it is sent twice.
Think of it like
It is like a teacher who ticks your name when you hand in work. Hand it in twice, and it still counts once.
Example
A bank adds up deposits from a stream. With exactly-once turned on, a retried deposit is never added to the total twice.
Why it matters
Money, stock counts and billing cannot be off by one. Exactly-once makes streaming safe for them.
Definition
Common mistake
Key takeaways
- 1Counted once. The effect happens one time.
- 2IDs and transactions. Copies are spotted and dropped.
- 3Ends at the edge. Outside writes need their own care.