conduktor.io ↗

acks — Kafka Producer Configuration

The number of acknowledgments the producer requires the leader to have received before considering a request complete. This controls the durability of records that are sent

Description

The number of acknowledgments the producer requires the leader to have received before considering a request complete. This controls the durability of records that are sent. The following settings are allowed:acks=0 If set to zero then the producer will not wait for any acknowledgment from the server at all. The record will be immediately added to the socket buffer and considered sent. No guarantee can be made that the server has received the record in this case, and the retries configuration will not take effect (as the client won't generally know of any failures). The offset given back for each record will always be set to -1.acks=1 This will mean the leader will write the record to its local log but will respond without awaiting full acknowledgement from all followers. In this case should the leader fail immediately after acknowledging the record but before the followers have replicated it then the record will be lost.acks=all This means the leader will wait for the full set of in-sync replicas to acknowledge the record. This guarantees that the record will not be lost as long as at least one in-sync replica remains alive. This is the strongest available guarantee. This is equivalent to the acks=-1 setting.Note that enabling idempotence requires this config value to be 'all'. If conflicting configurations are set and idempotence is not explicitly enabled, idempotence is disabled.Type:stringDefault:allValid Values:[all, -1, 0, 1]Importance:low

Default Values by Kafka Version

ComponentKafka version lineDocumented default
Producer0.8.11
Producer0.8.21
Producer0.9.01
Producer0.10.01
Producer0.10.11
Producer0.10.21
Producer0.11.01
Producer1.01
Producer1.11
Producer2.01
Producer2.11
Producer2.21
Producer2.31
Producer2.41
Producer2.51
Producer2.61
Producer2.71
Producer2.81
Producer3.0all
Producer3.1all
Producer3.2all
Producer3.3all
Producer3.4all
Producer3.5all
Producer3.6all
Producer3.7all
Producer3.8all
Producer3.9all
Producer4.0all
Producer4.1all
Producer4.2all
Producer4.3all
Producer4.4all

Tuning Recommendation

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

ProfileProposalRationale and tradeoff
producer / throughputallWith acks=all, successful writes require the relevant in-sync replica acknowledgements and the configured minimum ISR.

Tradeoff: Durability depends on replication, ISR and failure conditions. acks=1 can lose acknowledged writes after leader failure and conflicts with explicitly enabled idempotence.

Reference · 2026-10-27
producer / latencyallWith acks=all, successful writes require the relevant in-sync replica acknowledgements and the configured minimum ISR.

Tradeoff: Durability depends on replication, ISR and failure conditions. acks=1 can lose acknowledged writes after leader failure and conflicts with explicitly enabled idempotence.

Reference · 2026-10-27
producer / durabilityallWith acks=all, successful writes require the relevant in-sync replica acknowledgements and the configured minimum ISR.

Tradeoff: Durability depends on replication, ISR and failure conditions. acks=1 can lose acknowledged writes after leader failure and conflicts with explicitly enabled idempotence.

Reference · 2026-10-27

Related Configs

enable.idempotence · retries · max.in.flight.requests.per.connection · min.insync.replicas · delivery.timeout.ms · transactional.id

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