Figure 4-2 Chapter 4
Four partitions split between two consumers
Consumer 1 owns all four partitions of topic T1 until Consumer 2 joins the group. The group rebalances, partitions 1 and 3 move to Consumer 2, and from then on each consumer reads two partitions.
What to notice
See how adding a consumer splits the partitions between the members of a group, while each message still goes to exactly one of them.
From Chapter 4: Kafka Consumers: Reading Data from Kafka in Kafka: The Definitive Guide.
Open SVG
Space pauses, R restarts, arrows move between animations