Day 5 of 14 30 minGroupsAssignmentRebalancing
Share the work of reading a topic between several consumers. See how partitions are assigned within a group, why the number of partitions limits parallelism, how separate groups read independently, and what happens during a rebalance.
By the end of today you can
- Explain how a consumer group shares a topic's partitions
- Explain why partitions limit how many consumers can work in parallel
- Use separate groups so different services each read every event
- Describe what triggers a rebalance and what it costs
- Commit before partitions are taken away, using rebalance callbacks
What's inside
- 4 sections
- 4 diagrams and mind maps
- 4 code examples you can run
- 5-question quiz
- 1Sharing partitions
- 2Partitions limit parallelism
- 3Several groups, independent copies
- 4Rebalancing
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free