Interview practice question
Frequent consumer rebalances
Data Engineering · Kafka Streaming · Beginner
A consumer group keeps rebalancing every few minutes, causing lag spikes. What's going on?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Processing takes longer than max.poll.interval.ms, so consumers get kicked out.
- Heartbeat or session timeouts from GC pauses or network issues.
- Frequent restarts or autoscaling.
- Tune max.poll.records and max.poll.interval.ms.
- Use cooperative or new consumer protocol and static membership.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.