enable.auto.commit — Kafka Consumer Configuration
If true the consumer's offset will be periodically committed in the background..
Description
If true the consumer's offset will be periodically committed in the background.
Default Values by Kafka Version
| Kafka Version | Default Value |
|---|---|
| 0.9.0 | true |
| 0.10.0 | true |
| 0.10.1 | true |
| 0.10.2 | true |
| 0.11.0 | true |
| 1.0 | true |
| 1.1 | true |
| 2.0 | true |
| 2.1 | true |
| 2.2 | true |
| 2.3 | true |
| 2.4 | true |
| 2.5 | true |
| 2.6 | true |
| 2.7 | true |
| 2.8 | true |
| 3.0 | true |
| 3.1 | true |
| 3.2 | true |
| 3.3 | true |
| 3.4 | true |
| 3.5 | true |
| 3.6 | true |
| 3.7 | true |
| 3.8 | true |
| 3.9 | true |
| 4.0 | true |
| 4.1 | true |
| 4.2 | true |
Tuning Recommendation
| Profile | Recommended | Why |
|---|---|---|
| consumer / throughput | true | Auto-commit eliminates the overhead of manual commitSync() or commitAsync() calls in the hot processing path. For pure throughput workloads where at-least-once reprocessing on restart is acceptable, auto-commit with a 5s interval is the lowest-overhead commit strategy. |
| consumer / latency | false | Disable auto-commit and use manual commitAsync() after processing each batch. This ensures offsets are only committed after records are processed, preventing loss of processed-record tracking and enabling precise at-least-once semantics. For latency-critical consumers, auto-commit's 5s interval can cause 5s of reprocessing on restart, spiking latency during recovery. |
| consumer / durability | false | Auto-commit is fundamentally incompatible with strong durability: it commits offsets on a timer regardless of whether records have been successfully processed. If the consumer crashes between auto-commit and processing completion, those records are silently skipped. Manual commitSync() after confirmed processing is the only safe pattern for durable consumers. |
Related Configs
auto.commit.interval.ms · isolation.level · auto.offset.reset · max.poll.records · partition.assignment.strategy
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.