# Kafka Consumer Group

> Readers that split a topic's partitions between them. Each group reads on its own.

**Field:** Data Engineering  
**Category:** Ingestion & Streaming  
**Also known as:** Consumer Group, Consumer Group Lag

## Think of it like

It is like a team sharing a pile of letters. Each person takes their own stack. No letter is read twice.

## Definition

A Kafka consumer group is a set of readers that share the work of one topic. Each partition is read by just one member of the group at a time. If a member stops, its partitions are handed to the others. A second group reads the same topic on its own, with its own offsets. Lag is how far a group is behind the newest event.

## Example

The orders topic has 6 partitions. The billing group runs 3 readers, so each one reads 2 partitions.

## Example code

```console
$ kafka-consumer-groups.sh --bootstrap-server localhost:9092 \
    --describe --group billing
```

Show each partition the billing group reads, its offset and its lag.

## Why it matters

Groups let you add readers to go faster. They also let many teams read the same topic without getting in each other's way.

## Common mistake

Running more readers than partitions. Each partition goes to just one reader. So the extra readers sit idle.

## Three principles

- **Share the work.** Partitions are split among members.
- **One reader per partition.** Within one group.
- **Groups are separate.** Each keeps its own offsets.

## Related terms

- [Kafka Partition](https://learn.benibix.com/term/data/kafka-partition)
- [Kafka Offset](https://learn.benibix.com/term/data/kafka-offset)
- [Kafka Topic](https://learn.benibix.com/term/data/kafka-topic)
- [Apache Kafka](https://learn.benibix.com/term/data/apache-kafka)
- [Kafka Consumer](https://learn.benibix.com/term/data/kafka-consumer)

![A producer writes events into a topic with three partitions, each an ordered list of numbered events. Two consumers in one group each read their own partitions, and each keeps its place with an offset.](https://learn.benibix.com/diagrams/kafka-topic-partitions.svg)

---

Source: https://learn.benibix.com/term/data/kafka-consumer-group
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
