Skip to main content
Advancedcomparison Verified ~10 min

What triggers a consumer group rebalance, and how do you reduce its impact?

Source: Apache Kafka documentation: introduction and design

Quick answerFree

Rebalances happen when a consumer joins or leaves, misses heartbeats (session.timeout.ms), stops polling (max.poll.interval.ms), or topics or partition counts change. Reduce impact with the cooperative-sticky assignor, static membership (group.instance.id) and short processing per poll.

Detailed answer· ~270 words

Interview Prep

Unlock the full answer with Interview Prep

Get a ~270-word model answer, 5 key points, a visual explainer, 4 common mistakes and 5 follow-ups, plus 21 more Apache Kafka questions.

Also in Pro (₹499 / 90 days).

Key points· 5 points

Interview Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

Common mistakes· 4

Interview Prep
Locked

Best practices· 3

Interview Prep
Locked

Likely follow-ups· 5 questions

Interview Prep
Unlock with Interview Prep

+ 21 more Apache Kafka questions in Interview Prep, each with the full answer.

Discussion