delivery.timeout.ms — Kafka Producer Configuration
An upper bound on the time to report success or failure after a call to send() returns. This limits the total time that a record will be delayed prior to sending, the time to await acknowledgement from the broker (if expected), and the time allowed for retriable send failures
Description
An upper bound on the time to report success or failure after a call to send() returns. This limits the total time that a record will be delayed prior to sending, the time to await acknowledgement from the broker (if expected), and the time allowed for retriable send failures. The producer may report failure to send a record earlier than this config if either an unrecoverable error is encountered, the retries have been exhausted, or the record is added to a batch which reached an earlier delivery expiration deadline. The value of this config should be greater than or equal to the sum of request.timeout.ms and linger.ms.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Producer | 2.1 | 120000 |
| Producer | 2.2 | 120000 |
| Producer | 2.3 | 120000 |
| Producer | 2.4 | 120000 |
| Producer | 2.5 | 120000 |
| Producer | 2.6 | 120000 (2 minutes) |
| Producer | 2.7 | 120000 (2 minutes) |
| Producer | 2.8 | 120000 (2 minutes) |
| Producer | 3.0 | 120000 (2 minutes) |
| Producer | 3.1 | 120000 (2 minutes) |
| Producer | 3.2 | 120000 (2 minutes) |
| Producer | 3.3 | 120000 (2 minutes) |
| Producer | 3.4 | 120000 (2 minutes) |
| Producer | 3.5 | 120000 (2 minutes) |
| Producer | 3.6 | 120000 (2 minutes) |
| Producer | 3.7 | 120000 (2 minutes) |
| Producer | 3.8 | 120000 (2 minutes) |
| Producer | 3.9 | 120000 (2 minutes) |
| Producer | 4.0 | 120000 (2 minutes) |
| Producer | 4.1 | 120000 (2 minutes) |
| Producer | 4.2 | 120000 (2 minutes) |
| Producer | 4.3 | 120000 (2 minutes) |
| Producer | 4.4 | 120000 (2 minutes) |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| producer / throughput | 300000 | Bounds the delivery attempt window after send() returns, including batching, acknowledgement waits and retryable failures. Tradeoff: A longer window delays final failure reporting and can hold buffered records longer. It must be at least request.timeout.ms + linger.ms in Java. Reference · 2026-10-27 |
| producer / latency | 10000 | Bounds the delivery attempt window after send() returns, including batching, acknowledgement waits and retryable failures. Tradeoff: A longer window delays final failure reporting and can hold buffered records longer. It must be at least request.timeout.ms + linger.ms in Java. Reference · 2026-10-27 |
| producer / durability | 300000 | Bounds the delivery attempt window after send() returns, including batching, acknowledgement waits and retryable failures. Tradeoff: A longer window delays final failure reporting and can hold buffered records longer. It must be at least request.timeout.ms + linger.ms in Java. Reference · 2026-10-27 |
Related Configs
retries · retry.backoff.ms · retry.backoff.max.ms · request.timeout.ms · max.block.ms · linger.ms · acks · transaction.timeout.ms · buffer.memory