AlgoMaster Logo

Eager vs Cooperative Rebalancing

High Priority9 min readUpdated November 11, 2026

When a Kafka consumer joins or leaves a consumer group, Kafka may need to redistribute partitions among the remaining consumers.

This process is called rebalancing.

Rebalancing allows Kafka to scale consumer groups dynamically and recover from failures. However, it can also interrupt message processing.

Imagine a consumer group processing thousands of orders every second. If Kafka temporarily stops all consumers whenever a new consumer joins, the interruption could cause processing delays and increase consumer lag.

To address this, Kafka supports two rebalancing approaches within the classic consumer group protocol: eager rebalancing and cooperative rebalancing.

Both achieve the same goal of distributing partitions among consumers, but they differ significantly in how they handle existing assignments.

Let's understand how each approach works and when to use it.

Premium Content

Subscribe to unlock full access to this content and more premium articles.