Skip to main content
InterviewHubPRO
Section Overview
Q37

Question 37 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

74%
Apache Kafka Streaming (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

Consumer Rebalance Protocols: Eager Rebalance vs Cooperative Sticky Assignor (Incremental Cooperative Rebalance).

senior LevelSystem Design

In Simple Words: When a consumer joins or leaves a consumer group:

  • Eager Rebalance (Legacy): Every single consumer in the group revokes all its assigned partitions and stops consuming ("stop-the-world" pause). Then the group coordinator reassigns partitions from scratch, causing massive latency spikes.
  • Cooperative Sticky Rebalance (CooperativeStickyAssignor):
    • Rebalances happen incrementally across multiple rounds.
    • Consumers keep processing unaffected partitions without interruption.
    • Only partitions that actually need to move between members are revoked and reassigned, eliminating consumer downtime.