RabbitMQ the message broker following AMQP protocol

Asynchronous tasks are everywhere in web applications, to handle long-running tasks or to manage failures and retries of other tasks. Since I discovered RabbitMQ, I've used it on many projects, some simple, others with a more complex setup. I also manage the server. On this page, I share my experience through these blog posts.

Control the number of retries of a message with x-death header in RabbitMQ

Sometimes the processing of a message causes an error. In this case, it is common to move this message to another queue to try to process it later. All this, can be automated in RabbitMQ with the DLX / DLK option and the application of a TTL. But be careful not to create an infinite loop of attempted treatment, in this article I will introduce x-death header to control the number of retries.