Kafka, RabbitMQ & Queues
Consumer rebalance
A rebalance reassigns a group's partitions when members join, leave or time out. The eager protocol stops every partition, while the cooperative protocol moves only the ones that change owner.
What you will be able to do
- Explain what triggers a rebalance and how eager and cooperative rebalancing differ.
- Decide how to fix a rebalance loop caused by slow polls.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kafka, RabbitMQ & Queues
- Transactions in KafkaIntermediate · 4 min
Kafka transactions make writes to several partitions visible together or not at all. Consumers see that outcome only when they read with read_committed, and the design…
- Consumer groupsIntermediate · 4 min
A consumer group shares a topic's partitions among its members, while each group keeps its own committed offsets. Groups do not affect each other, so one topic can feed…
- Offset commitsIntermediate · 4 min
A committed offset marks the work a consumer group is done with. Auto-commit commits on a timer, so the timing of the commit decides whether a crash repeats or skips…
- Exactly once boundariesIntermediate · 4 min
Kafka exactly-once covers the records and offsets written inside Kafka. A database write or an external call sits outside that commit, so it needs its own key or outbox.
- Retention and compactionIntermediate · 4 min
Delete retention removes old segments by time or size, while compaction keeps the latest record for each key. A state topic needs compaction if old keys must survive.
- ISR and high watermarkAdvanced · 4 min
The in-sync replica set holds the replicas that are caught up with the leader. The high watermark is the offset every in-sync replica has, and consumers read only up to…