How to create a delayed queue in RabbitMQ?

Posted by eandersson on Stack Overflow See other posts from Stack Overflow or by eandersson
Published on 2013-06-09T21:58:47Z Indexed on 2014/06/09 21:25 UTC
Read the original article Hit count: 326

Filed under:
|
|
|
|

What is the easiest way to create a delay (or parking) queue with Python, Pika and RabbitMQ? I have seen an similar questions, but none for Python.

I find this an useful idea when designing applications, as it allows us to throttle messages that needs to be re-queued again.

There are always the possibility that you will receive more messages than you can handle, maybe the HTTP server is slow, or the database is under too much stress.

I also found it very useful when something went wrong in scenarios where there is a zero tolerance to losing messages, and while re-queuing messages that could not be handled may solve that. It can also cause problems where the message will be queued over and over again. Potentially causing performance issues, and log spam.

© Stack Overflow or respective owner

Related posts about python

Related posts about queue