Skip to content
Theory · RabbitMQ consumers · lesson 1 of 8

ack, nack and reject

Three answers to letters from a queue: ack removes the letter, requeue puts it back on the shelf with a mark, reject drops it in the bin

A RabbitMQ consumer failed to process a message: the database did not answer, or the body arrived as garbage. In the chapter on delivery guarantees the consumer quietly exited in this case. That is a poor answer: the broker learns about the failure only when the connection closes.

In this lesson

  • Delivery tag
  • Three consumer answers
  • Requeue
  • Common mistake
  • Key points