conduktor.io ↗

auto.offset.reset — Kafka Consumer Configuration

What to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server (e.g.

Description

What to do when there is no initial offset in Kafka or if the current offset does not exist any more on the server (e.g. because that data has been deleted):

Default Values by Kafka Version

Kafka VersionDefault Value
0.8.0largest
0.8.1largest
0.8.2largest
0.9.0largest
0.10.0largest
0.10.1latest
0.10.2latest
0.11.0latest
1.0latest
1.1latest
2.0latest
2.1latest
2.2latest
2.3latest
2.4latest
2.5latest
2.6latest
2.7latest
2.8latest
3.0latest
3.1latest
3.2latest
3.3latest
3.4latest
3.5latest
3.6latest
3.7latest
3.8latest
3.9latest
4.0latest
4.1latest
4.2latest

Tuning Recommendation

ProfileRecommendedWhy
consumer / latencylatestlatest is the correct default for latency-sensitive consumers: on first start or offset loss, the consumer begins from the tip of the partition rather than replaying the full history. Starting from earliest would introduce unbounded startup latency as the consumer catches up on historical data.
consumer / durabilityearliestFor durable consumers, offset loss (e.g., after consumer group deletion or offset retention expiry) must result in reprocessing from the beginning, not skipping forward to latest. earliest guarantees no records are missed on first startup or offset reset. Monitor for this case explicitly via consumer_group_offsets metrics.

Related Configs

enable.auto.commit · isolation.level

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.