conduktor.io ↗

max.in.flight.requests.per.connection — Kafka Producer Configuration

The maximum number of unacknowledged requests the client will send on a single connection before blocking. Note that if this configuration is set to be greater than 1 and enable.idempotence is set to false, there is a risk of message reordering after a failed send due to retries (i.e., if retries are enabled); if retries are disabled or if enable.idempotence is set to true, ordering will be preserved

Description

The maximum number of unacknowledged requests the client will send on a single connection before blocking. Note that if this configuration is set to be greater than 1 and enable.idempotence is set to false, there is a risk of message reordering after a failed send due to retries (i.e., if retries are enabled); if retries are disabled or if enable.idempotence is set to true, ordering will be preserved. Additionally, enabling idempotence requires the value of this configuration to be less than or equal to 5, because broker only retains at most 5 batches for each producer. If the value is more than 5, previous batches may be removed on broker side.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.9.05
Producer0.10.05
Producer0.10.15
Producer0.10.25
Producer0.11.05
Producer1.05
Producer1.15
Producer2.05
Producer2.15
Producer2.25
Producer2.35
Producer2.45
Producer2.55
Producer2.65
Producer2.75
Producer2.85
Producer3.05
Producer3.15
Producer3.25
Producer3.35
Producer3.45
Producer3.55
Producer3.65
Producer3.75
Producer3.85
Producer3.95
Producer4.05
Producer4.15
Producer4.25
Producer4.35
Producer4.45

Tuning Recommendation

Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.

ProfileProposalRationale and tradeoff
producer / throughput5Controls request pipelining per broker connection. Java idempotent production supports at most five in-flight requests.

Tradeoff: Without idempotence, retries with more than one in-flight request can reorder records. Serializing requests reduces concurrency.

Reference · 2026-10-27
producer / latency5Controls request pipelining per broker connection. Java idempotent production supports at most five in-flight requests.

Tradeoff: Without idempotence, retries with more than one in-flight request can reorder records. Serializing requests reduces concurrency.

Reference · 2026-10-27
producer / durability5Controls request pipelining per broker connection. Java idempotent production supports at most five in-flight requests.

Tradeoff: Without idempotence, retries with more than one in-flight request can reorder records. Serializing requests reduces concurrency.

Reference · 2026-10-27

Related Configs

acks · enable.idempotence · retries

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