auto.offset.reset
The consumer setting that decides where to start reading when a group has no committed offset: earliest or latest.
In more detail
earliest starts at the oldest record still retained, and latest starts with records written after the consumer joins, which is the default. Once a group has committed an offset for a partition, this setting is ignored for that partition.
Example
KafkaConsumer('events', auto_offset_reset='earliest')Related terms
- 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.
- group.id — The consumer setting that names the consumer group, under which the broker stores committed offsets.
- replay — Delivering or returning something again: a stored result for a repeated request, or past events for a client that missed them.
Taught in
- The Payment That Was Charged Twice — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Queue That Forgot — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Replay Everything Since Eleven — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Copies Of One Service — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Too Slow Between Two Polls — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Field The Registry Refused — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Blank Names After Every Deploy — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty Minutes To Count Again — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Green Tests, Red Production — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Stuck On One Record — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Forty One Under-Replicated Partitions — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Eleven Thousand Scans That Never Arrived — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Data Centre That Went Dark — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Seventy One Percent — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- A Consumer In Python — Apache Kafka & Event Streaming
- Committing Offsets: Auto, Manual And Lag — Apache Kafka & Event Streaming
- Materialised Views From A Stream — Apache Kafka & Event Streaming