Software Design

Kafka Producer acks=all Mechanics

UML Sequence Diagrams · made in Skemio

Sequence diagram showing Producer sending a record to Leader Broker, which replicates to Follower Broker before returning an ACK.
Sequence diagram showing Producer sending a record to Leader Broker, which replicates to Follower Broker before returning an ACK.

What it shows

  • Producer blocks until the leader writes record and awaits replica copies
  • Leader commits to local log and replicates record to in-sync replicas (ISR)
  • ACK is returned only when min.insync.replicas condition is fully met

The takeaway

Pair producer acks=all with min.insync.replicas=2 to guarantee durable, zero-data-loss publishing.

More uml sequence diagrams