Prompt
Do I need exactly-once delivery for event streaming?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
Usually, no—you do not need exactly-once delivery for event streaming.
What you typically need is one of these:
- At-least-once delivery: events may be delivered more than once, so consumers must be idempotent or deduplicate.
- At-most-once delivery: events may be lost, but duplicates won’t happen.
- Exactly-once processing: the system guarantees each event’s effects happen once, but this is harder and often more expensive.
When exactly-once matters
It can be worth it if:
- duplicate processing would cause serious harm,
- you can’t easily make consumers idempotent,
- you need strong transactional guarantees across multiple systems.
Why many systems avoid it
Exactly-once is hard because failures can happen:
- after a message is processed but before offset/state is committed,
- during retries,
- across network partitions,
- between the broker, consumer, and downstream database.
Because of that, many real-world streaming systems are designed around:
- at-least-once delivery + idempotent consumers
- or deduplication via event IDs
- or transactional writes / outbox pattern
Practical rule of thumb
If you can make your consumer safely handle duplicates, that’s usually the best choice. It’s simpler, more scalable, and more robust than trying to force exactly-once delivery everywhere.
If you want, I can also explain:
- the difference between delivery semantics and processing semantics, or
- how Kafka’s “exactly-once” works in practice.
Brands