liveBook · Manning

Acknowledgment

As explained in Akka in Action, Second Edition

An acknowledgment is a message or signal confirming that a sent message or operation has been received or processed.

An acknowledgment is a reply confirming that an asynchronous message was received or processed. Fire-and-forget delivery gives the sender no such confirmation, so the receiver must send one when confirmation matters. section 1.6.2 section 3.2.1

Use acknowledgments to distinguish observable outcomes from merely attempted sends:

  • A successful reply provides evidence that the destination responded, but it does not make fire-and-forget delivery reliable. section 1.6.2 section 3.2.1
  • A timeout indicates that no response arrived within the waiting period; the worker may have failed, replied too late, or become unreachable. section 3.2.1
  • A message sent after the recipient stops is forwarded to dead letters rather than acknowledged by that recipient. section 3.2.1

Conversation and worker replies

A Conversation actor sends work asynchronously to a Mentions actor and continues. If it needs confirmation, Mentions sends an acknowledgment. In a manager–worker flow, a worker reply confirms completion; a missing reply produces a timeout, and later messages can appear in dead letters. section 1.6.2 section 3.2.1

Figure 3.6 Ephemeral intermediate actor lifespan and duties after a timeout
CH03_F06_Abraham2

Trace the intermediate actor's success, timeout, and post-timeout message behavior. section 3.2.1

How Akka in Action, Second Edition covers it

How deep it goes
Contrasts confirmation with fire-and-forget delivery and traces timeouts, worker failure, and dead letters.
Examples
Uses Conversation–Mentions communication and manager–worker processing with successful replies, timeouts, and dead letters.
What it assumes
Assumes asynchronous actor messaging and explains why senders need receiver replies for confirmation.
What you can do after
Diagnose actor interactions by distinguishing replies, timeouts, and dead-lettered messages.
How it connects
Connects actor model, asynchronous messaging, message delivery, timeouts, and dead letters.

Also explained in

Compare how 4 books explain acknowledgment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Akka in Action, Second Edition. The section links point to the parts of the book it draws on.