M
M
Maxim2016-10-14 17:14:56
RabbitMQ
Maxim, 2016-10-14 17:14:56

How to make messages stale in a RabbitMQ queue?

Hello!
Tell me, please, how to make the accumulated messages in the queue decay?
I have a queue into which messages fly and the handler, for example, does not have time to process and they begin to accumulate. After a certain time (~5c), the messages in the queue are no longer relevant and they need to be transferred to another queue (just to estimate the number of rotten messages), I don’t understand how to do this using rebbit tools?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-10-14
@ua6xh

You can set the lifetime using www.rabbitmq.com/ttl.html (the easiest way is to hang up a policy).
So that the rotten message is not just deleted, but gets into another queue, you can use this www.rabbitmq.com/dlx.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question