liveBook · Manning

Acknowledgment

As explained in Kafka for Architects

An acknowledgment is a confirmation that a message or delivery operation has been received or completed.

An acknowledgment confirms that a Kafka broker has accepted a producer’s message or batch. A producer can wait for that confirmation rather than treating transmission alone as successful delivery. If no acknowledgment arrives before the timeout, it treats the send as failed and retries. section 1.4.2 section 3.1.1

Acknowledgments matter at two points in the delivery path:

  • On production, the broker’s confirmation gives the producer a basis for deciding whether to retry. Client settings balance reliability against performance. section 1.4.2 section 3.0
  • On consumption, Kafka tracks messages read and acknowledged by consumers so a disconnected consumer can resume processing undelivered messages. section 1.4.2

A customer address update

A service publishes an address-change event for independent subscribers. It can await broker acknowledgment of its send; if confirmation never arrives, retrying protects against loss. A retry can also create a duplicate, so critical event designs must consider consumer idempotence alongside producer acknowledgment settings. section 1.4.1 section 1.4.2 section 10.1.3

Figure 1.6 Acknowledgments: once the cluster accepts a message, it sends an acknowledgment to the service. If no acknowledgment arrives within the timeout, the service treats the send as failed and retries.
A white square with black text

Description automatically generated

The diagram shows the acceptance, acknowledgment, timeout, and retry path. section 1.4.2

How Kafka for Architects covers it

How deep it goes
Explains producer and consumer confirmation through failure recovery, but defers detailed client configuration choices.
Examples
Uses a timeout-and-retry diagram and a customer address-change event distributed to independent subscribers.
What it assumes
Introduces the confirmation-and-retry exchange while assuming basic familiarity with producers, brokers, and consumers.
What you can do after
Operate/configure it by considering producer acknowledgment settings alongside data criticality, replication, and consumer offset commits.
How it connects
Connects to producer retries, broker replication, consumer recovery, idempotence, and offset-committing strategies.

Also explained in

Compare how 4 books explain acknowledgment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.