Pick cooperative-sticky
Cooperative-sticky beats eager
A consumer group is a set of consumers that subscribe to the same topics; the group coordinator (a broker) assigns each partition to exactly one member. When a member joins/leaves, the group rebalances.
Two protocols:
- Eager (range / roundrobin) — every consumer revokes everything, then reassigns. Stop-the-world. Painful at scale.
- Cooperative-sticky (
partition.assignment.strategy=CooperativeStickyAssignor) — only the partitions that actually need to move are revoked. Use this.