Configure Kafka producer acks=all with topic min.insync.replicas for strong durability guarantees

domain: kafka.apache.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create the topic with a replication factor of at least 3 for meaningful fault tolerance
  2. Set the topic-level config min.insync.replicas=2 (with replication factor 3) via kafka-configs.sh or the admin client
  3. Set the producer config acks=all (or acks=-1) so the producer only considers a write successful once it's acknowledged by the full set of in-sync replicas required to satisfy min.insync.replicas
  4. Understand that with RF=3 and min.insync.replicas=2, at least 2 replicas (leader plus one follower) must ack the write, so the cluster tolerates one broker being down or a rolling restart of one replica and still accepts writes
  5. Handle NotEnoughReplicasException / NotEnoughReplicasAfterAppendException in the producer, which is thrown when the number of in-sync replicas falls below min.insync.replicas at write time
  6. Combine with enable.idempotence=true on the producer for idempotent, ordered delivery on top of the durability guarantee

Known gotchas

Related routes

Enable and configure Kafka tiered storage for a topic
kafka · 6 steps · unrated
Configure Kafka broker rack awareness so replicas are spread across availability zones
kafka.apache.org · 6 steps · unrated
Configure Kafka consumer group cooperative sticky rebalancing
kafka.apache.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans