Answer the question
In order to leave comments, you need to log in
What is the correct way to make a delay in rabbitmq?
I create an order in my project and I need to send it to a third-party api in an hour. Now I'm sending an order to the delay_orders queue that has the x-message-ttl and x-dead-letter-exchange parameters set, which sends orders to the main orders queue with a delay. I found this solution from the article https://habr.com/en/post/338950/. Is this the correct solution or can it be done in a different way? I found the extension https://github.com/rabbitmq/rabbitmq-delayed-messa... but I didn't understand how to install it and it's experimental
Answer the question
In order to leave comments, you need to log in
The specified solution, in principle, is working (I have met this in my practice), but it is likely that a specialized plugin will work more efficiently (but I won’t say for sure, just an assumption).
The plugin is "under supervision" of the official developers, so there shouldn't be any problems with it. Instructions for installing plugins , the assembled plugin is, for example, here (in the zip archive, the .ez file that RabbitMQ understands).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question