internalsGet Pro

Module 09 · Lesson 5 of 14Pro

Delivery guarantees in Kafka pipelines

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
18 min

When you finish this page you can

  1. Work out a pipeline’s end-to-end guarantee from its producer, broker, consumer and sink.
  2. Explain what Kafka transactions make atomic, and what they leave out.
  3. Make a consumer’s writes to a database count each record once by committing offsets in the same transaction.
  4. Choose at-most-once, at-least-once or exactly-once for a pipeline from what a lost or repeated record costs.

Builds on 3 lessons

Start with lesson 317 min
  1. Kafka producers: keys, batching and acknowledgements17 min
  2. Kafka consumers: groups, commits and rebalancing17 min
  3. Idempotent pipelines: safe to run twice16 min

Yesterday’s 11:02 counted 3,750 views twice

is an online store in India. Its apps send about 200 million click events a day to the Kafka topic kartly.clicks. Three teams read them: an S3 sink copies every click into the lakehouse, product-views counts product page views per minute for the “trending now” list, and the orders pipeline next to them carries every order change from the orders database to Snowflake.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan