Skip to content
Kafka Is Fun

Lesson 1 of 5

Consumer Groups & Partition Assignment

1 min read

Overview

A consumer group is a set of consumers that jointly consume a topic: each partition is consumed by exactly one consumer in the group at any given time. If there are fewer consumers than partitions, some consumers handle several partitions. Extra consumers receive no partitions until another member leaves or partitions are added. Each consumer group receives every message independently, and the KafkaConsumer Javadoc notes that groups work without duplicating data. (Share groups, KIP-932, are a different group type with different rules.)

Analogy

Production tip

Check yourself

A topic has 3 partitions and a consumer group has 5 consumers. What happens?

Sources

Checked against Kafka 4.2 documentation on Oct 2026. Draft: not yet reviewed by a Kafka specialist. Releases move on, so confirm against the current documentation before you act on a number.

Try it in the simulator

Guided scenarios for this module — the simulator opens with the exercise already running.

Prefer a picture? Open the live cluster in 3D and watch records move between producer, brokers and consumers.

Browse all troubleshooting entries