AlgoMaster Logo

Producer Acknowledgments

High Priority9 min readUpdated November 11, 2026

When a Kafka producer sends a record, how does it know whether the record was successfully stored?

Consider an e-commerce application publishing an ORDER_CREATED event. The producer sends the event to a Kafka broker, but before receiving a response, the broker crashes.

Was the event stored? Did Kafka replicate it to another broker? Should the producer consider the operation successful?

The answers depend on how Kafka acknowledges writes.

Kafka producers use a configuration called acks to control how many replicas must acknowledge a record before the producer considers the write successful.

This setting directly affects data durability, latency, and how the application behaves when brokers fail.

In this chapter, we'll explore the three acknowledgment levels, understand how they interact with replication, and learn how to choose the right configuration for reliable event publishing.

Premium Content

Subscribe to unlock full access to this content and more premium articles.