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

Taught in

References

Certification courses