group.id
The consumer setting that names the consumer group, under which the broker stores committed offsets.
In more detail
Consumers with the same group ID share partitions and progress. A new group ID has no commits, so it starts from auto.offset.reset, which is how the course rebuilds views from offset zero.
Example
KafkaConsumer('events', group_id='m03l01-readers')Related terms
- consumer group — A set of consumers sharing one group ID that divide a topic's partitions between them so each partition is read by only one member at a time.
- committed offset — The offset a consumer group has saved on the broker for a partition, marking the next record it should read after a restart.
- auto.offset.reset — The consumer setting that decides where to start reading when a group has no committed offset: earliest or latest.
Taught in
- The Error Storm That Fixes Itself — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Twelve Lines Instead Of Four Hundred — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- A Consumer In Python — Apache Kafka & Event Streaming
- Duplicates Are The Default — Apache Kafka & Event Streaming
- Materialised Views From A Stream — Apache Kafka & Event Streaming