A consumer group is a set of consumers that jointly consume a topic. Each partition is assigned to exactly one consumer in the group. If consumers < partitions, some consumers handle multiple partitions. If consumers > partitions, extra consumers are idle (hot standby). Multiple consumer groups reading the same topic each get their own independent copy of all messages.
Lesson 1 of 5
Consumer Groups & Partition Assignment
Try it in the simulator
Guided scenarios for this module — the simulator opens with the exercise already running.