Introduction
Sometimes, a program that reads messages from RabbitMQ can crash or stop working. Handling consumer failures means making sure messages are not lost and can be retried or handled safely when this happens.
When a consumer program crashes while processing a message and you want to retry later.
When you want to make sure messages are not lost if the consumer is slow or busy.
When you want to detect and handle messages that cause errors repeatedly.
When you want to acknowledge messages only after successful processing.
When you want to move failed messages to a special queue for later inspection.