Companion extra Chapter 4
Share groups: consumers sharing a partition
Three consumers read a topic with one partition. A consumer group gives the partition to one of them and leaves the other two idle. A share group gives it to all three: the broker locks each record to one consumer until it is acknowledged, and a record whose lock runs out goes to another consumer.
What to notice
See how a share group (KIP-932) lets consumers outnumber partitions by tracking every record instead of one position per partition.
From Chapter 4: Kafka Consumers: Reading Data from Kafka in Kafka: The Definitive Guide.
Open SVG
Space pauses, R restarts, arrows move between animations