"We turned on exactly-once, so why did the customer get two emails?" That question reached our team after a payments pipeline was migrated to Kafka transactions. The pipeline did exactly what Kafka promises: each input record produced exactly one output record in the downstream topic, even across crashes. The email was sent by an HTTP call in the middle of the processing loop, and no Kafka setting can take back an HTTP call.This post explains what Kafka's exactly-once semantics (EOS) actually gu...
Kafka exactly-once: idempotent producers, transactions and what EOS does not cover
Kafka's exactly-once semantics are real but narrow: they cover read-process-write loops inside Kafka. How the idempotent producer and transactions work, why consumers need read_committed, and which side effects EOS can never protect.
This is a paid story
Subscribe to read the full content, access all paid stories, and support the authors.
Add a label
Embed this post
<iframe src="https://www.hibug.me/kafka-exactly-once-idempotent-producer-transactions" width="700" height="420" frameborder="0" loading="lazy"></iframe>
I am a frontend engineer who has worked on dashboards, booking flows and design systems, mostly in React and TypeScript. I care about the parts of the web platform that frameworks hide: forms, cookies, rendering cost and what the browser actually does with our code. The bugs I write about usually passed every review and only appeared with production data: a map with a million points, a name with an accent in a PDF, a cookie that one subdomain never sees. Each post shows a minimal reproduction, why the browser or framework behaves that way, and a fix with a test.
Comments
0No comments yet. Be the first to comment!
Sign In to post a comment.