conduktor.io ↗

isolation.level — Kafka Consumer Configuration

Controls how to read messages written transactionally. If set to read_committed, consumer.

Description

Controls how to read messages written transactionally. If set to read_committed, consumer.poll() will only return transactional messages which have been committed. If set to read_uncommitted (the default), consumer.poll() will return all messages, even transactional messages which have been aborted. Non-transactional messages will be returned unconditionally in either mode.

Default Values by Kafka Version

Kafka VersionDefault Value
0.11.0read_uncommitted
1.0read_uncommitted
1.1read_uncommitted
2.0read_uncommitted
2.1read_uncommitted
2.2read_uncommitted
2.3read_uncommitted
2.4read_uncommitted
2.5read_uncommitted
2.6read_uncommitted
2.7read_uncommitted
2.8read_uncommitted
3.0read_uncommitted
3.1read_uncommitted
3.2read_uncommitted
3.3read_uncommitted
3.4read_uncommitted
3.5read_uncommitted
3.6read_uncommitted
3.7read_uncommitted
3.8read_uncommitted
3.9read_uncommitted
4.0read_uncommitted
4.1read_uncommitted
4.2read_uncommitted

Tuning Recommendation

ProfileRecommendedWhy
consumer / latencyread_uncommittedKeep isolation.level at read_uncommitted for latency-sensitive consumers: read_committed adds latency because the consumer must wait for the producer's transaction to be committed before delivering transactional records. Unless your producer uses transactions, read_committed adds unnecessary lag.
consumer / durabilityread_committedread_committed ensures the consumer only receives records that belong to committed transactions. Aborted transactional records are filtered at the broker and never delivered to the consumer. This is the only safe mode when consuming from producers using Kafka transactions, preventing processing of data that the producer intended to roll back.

Related Configs

enable.auto.commit · auto.offset.reset

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