Integration / RabbitMQ Interview Questions
What are the types of acknowledgments in RabbitMQ?
RabbitMQ uses two independent acknowledgment mechanisms, one on the publishing side and one on the consuming side.
| Publisher-side | Consumer-side |
| Publisher confirms - broker tells the producer a message was safely received. | Consumer acks - consumer tells the broker a message was processed. |
| Async, non-blocking, tracked by delivery tag. | Can be automatic (fire-and-forget) or manual via basic.ack. |
| Nack sent if the message could not be routed/persisted. | basic.nack / basic.reject can requeue or dead-letter a failed message. |
Using both together - durable queues, persistent messages, publisher confirms, and manual consumer acks - is the standard recipe for not losing messages.
More Related questions...