internalsGet Pro

Module 09 · Lesson 11 of 14Pro

Operating Kafka: lag, scaling and broker failures

Level
Advanced
Topic
Event streaming with Kafka
Reading time
18 min

When you finish this page you can

  1. Measure a consumer group’s lag in records and in time, per partition, and alert only when it keeps growing past the group’s own target.
  2. Predict what a cluster with replication factor 3 and min.insync.replicas 2 does when one broker fails, and when two fail.
  3. Add brokers and move partitions onto them with a replication throttle, and scale a consumer group up to its partition count.
  4. Name the handful of broker metrics and commands that show a Kafka cluster’s health.

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. Kafka consumers: groups, commits and rebalancing17 min

Two readers behind at 20:05

is an online store in India. Its apps send every product view, search and add-to-cart to the Kafka topic kartly.clicks. Meera, a data engineer, runs two of its readers: an S3 sink that lands clicks in the lake for the nightly jobs, and product-views, a Python service that counts views per minute for the “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