internalsGet Pro

Module 09 · Lesson 3 of 14Pro

Kafka producers: keys, batching and acknowledgements

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
17 min

When you finish this page you can

  1. Trace what a Kafka producer does between produce() and the broker’s acknowledgement.
  2. Choose a partition key, linger.ms and acks for a stream, and estimate the batch size they give.
  3. Explain how the idempotent producer stops retries from writing duplicates, and why the Python client needs it switched on.
  4. Handle a full producer queue and failed deliveries without losing events silently.
  1. Kafka in practice: topics, partitions and offsets17 min

50,000 clicks a second, one wait at a time

is an online store in India. Its apps record about 200 million a day: product views, searches, add-to-cart taps. Each click goes to a small service, the click collector, which writes it to the Kafka topic kartly.clicks. Meera, a data engineer, owns the pipeline from there to the lakehouse and the live festival dashboard.

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