SpinTheMic
Pro

Interview practice question

Kafka consumer lag spikes from rebalancing storms

Backend Engineering · Production Debugging · Experienced

Your Kafka consumer group's lag keeps spiking, and logs show constant rebalances. What causes this, and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Consumers exceed max.poll.interval (slow processing).
  • Frequent pod restarts/scaling.
  • Session timeouts, heartbeats.
  • Cooperative rebalancing, static membership.
  • Smaller batches, faster processing.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics