conduktor.io ↗

retries — Kafka Producer Configuration

Number of times to retry a request that fails with a transient error. Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error

Description

Number of times to retry a request that fails with a transient error. Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error. Requests will be retried this many times until they succeed, fail with a non-transient error, or the delivery.timeout.ms expires. Note that this automatic retry will simply resend the same record upon receiving the error. Setting a value of zero will disable this automatic retry behaviour, so that the transient errors will be propagated to the application to be handled. Users should generally prefer to leave this config unset and instead use delivery.timeout.ms to control retry behavior.Enabling idempotence requires this config value to be greater than 0. If conflicting configurations are set and idempotence is not explicitly enabled, idempotence is disabled.Allowing retries while setting enable.idempotence to false and max.in.flight.requests.per.connection to greater than 1 will potentially change the ordering of records because if two batches are sent to a single partition, and the first fails and is retried but the second succeeds, then the records in the second batch may appear first.Type:intDefault:2147483647Valid Values:[0,...,2147483647]Importance:high

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.8.10
Producer0.8.20
Producer0.9.00
Producer0.10.00
Producer0.10.10
Producer0.10.20
Producer0.11.00
Producer1.00
Producer1.10
Producer2.00
Producer2.12147483647
Producer2.22147483647
Producer2.32147483647
Producer2.42147483647
Producer2.52147483647
Producer2.62147483647
Producer2.72147483647
Producer2.82147483647
Producer3.02147483647
Producer3.12147483647
Producer3.22147483647
Producer3.32147483647
Producer3.42147483647
Producer3.52147483647
Producer3.62147483647
Producer3.72147483647
Producer3.82147483647
Producer3.92147483647
Producer4.02147483647
Producer4.12147483647
Producer4.22147483647
Producer4.32147483647
Producer4.42147483647
Kafka Streams1.10
Kafka Streams2.00
Kafka Streams2.10
Kafka Streams2.20
Kafka Streams2.30
Kafka Streams2.40
Kafka Streams2.50
Kafka Streams2.60
Kafka Streams2.70
Kafka Streams2.80
Kafka Streams3.00
Kafka Streams3.10
Kafka Streams3.20
Kafka Streams3.30
Kafka Streams3.40
Kafka Streams3.50
Kafka Streams3.60
Kafka Streams3.70
Kafka Streams3.80
Kafka Streams3.90

Tuning Recommendation

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

ProfileProposalRationale and tradeoff
producer / throughput2147483647Allows retryable produce failures to be retried; delivery.timeout.ms also bounds delivery in clients that support it.

Tradeoff: Retries do not handle every error. Applications must inspect send futures or callbacks and handle failed or ambiguous outcomes.

Reference · 2026-10-27
producer / durability2147483647Allows retryable produce failures to be retried; delivery.timeout.ms also bounds delivery in clients that support it.

Tradeoff: Retries do not handle every error. Applications must inspect send futures or callbacks and handle failed or ambiguous outcomes.

Reference · 2026-10-27

Related Configs

acks · enable.idempotence · max.in.flight.requests.per.connection · delivery.timeout.ms · retry.backoff.ms · retry.backoff.max.ms · request.timeout.ms

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