Lesson 13 · Senior Kafka practice
Rebalances, lag, and consumer backpressure
How to reason about stuck partitions, slow consumers, group churn, and what lag is really telling you.
Your win: explain what lag really means, what rebalances cost, and how a senior engineer distinguishes “Kafka is broken” from “the consumers are overloaded or blocked.”
Why this topic matters
Teams often talk about lag as though it were the problem. It is not. Lag is the visible symptom that tells you progress is falling behind arrival. The real job is to figure out why.
This is why senior Kafka answers sound different from beginner ones. A beginner says, “lag means the consumer is behind.” A senior says, “lag means offsets are not advancing fast enough, and now I need to distinguish under-capacity, handler slowness, downstream failure, partition blockage, or group churn.”
What rebalances really cost
Earlier lessons taught what a rebalance is. The deeper lesson is why rebalances are expensive even when they work correctly. While partitions are being reassigned, useful work pauses. If members churn too often, the group spends more time coordinating than progressing.
That is why consumer stability is part of throughput. A flapping or wedged consumer is not just one unhealthy pod. It is a repeated tax on the whole group.
Review groups and failure behavior together
The strongest understanding of lag comes from combining group mechanics with the repo’s real failure behavior.
→ docs/kafka/lessons/0003-consumer-groups.html
→ docs/kafka/lessons/0011-failure-modes.html
Check yourself (from memory)
Q1. What is the strongest senior interpretation of consumer lag?
Sources. Confluent consumer-group docs; repo lessons and map.