Learn Labs
8. Exactly-Once Semantics

8. Exactly-Once Semantics

Chapter 8 of Kafka: The Definitive Guide — 11 sections.

Source: Kafka: The Definitive Guide, 2nd Ed., Ch. 8 The chapter's own summary, which is the best one-liner in the book: "Exactly-once semantics in Kafka is the opposite of chess: it is challenging to understand but easy to use."

Two mechanisms, two different problems:

Idempotent producerTransactions
“help avoid duplicates caused by PRODUCER RETRIES”“guarantee exactly-once processing in STREAM PROCESSING applications”
Simpler, more generally useful.Built for consume-process-produce.