Skip to content
Theory · NATS JetStream · lesson 4 of 8

Acks and redelivery

An instance of a service took an order from a consumer and crashed before processing it. The order must not be lost: the stream keeps it, and the consumer has to hand it out again. So the consumer waits for the client's answer on every message it hands out, and this answer is called an acknowledgement. When no acknowledgement comes, the consumer hands the message out once more.

In this lesson

  • Ack policy
  • Redelivery after AckWait
  • MaxDeliver
  • Kinds of acknowledgement
  • BackOff
  • Common mistake
  • Key points