internalsGet Pro

Module 09 · Lesson 4 of 14Pro

Kafka consumers: groups, commits and rebalancing

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
17 min

When you finish this page you can

  1. Explain how a consumer group splits a topic’s partitions between its members, and why extra members sit idle.
  2. Say what a committed offset is, and predict which records a group reads again after a member crashes.
  3. Choose when a Python consumer stores and commits offsets, and say what each choice costs.
  4. Compare the classic and the new consumer rebalance protocol, and switch a confluent-kafka consumer to the new one.

Builds on 3 lessons

Start with lesson 217 min
  1. Kafka in practice: topics, partitions and offsets17 min
  2. Kafka producers: keys, batching and acknowledgements17 min
  3. Ordering and duplicates in CDC pipelines18 min

One crashed reader, two wrong minutes

is an online store in India. Its apps send about 200 million click events a day to the Kafka topic kartly.clicks, which has 48 partitions. Several teams read that topic. The S3 sink copies every click into kartly-raw-prod for the nightly jobs. A small Python service, product-views, counts product page views per minute for the merchandising team’s “trending now” list.

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