[rabbitmq-discuss] Possibilities of RabbitMq pluggin
Michael Klishin
mklishin at gopivotal.com
Thu Mar 27 11:23:23 GMT 2014
On 27 March 2014 at 15:06:42, De Jaeghere, Patrice PDJ (pdejaeghere at beckman.com) wrote:
> > 2) Other need: When a queue has not anymore consumers , and if
> this queue is not persistent , is-it possible to develop a RabbitMQ
> pluggin which moves all messages of this queue in a dead-letter
> queue just before its deletion.
The following might work: a separate app/thread/etc could check the number of
consumers on a queue and purge it, then all messages in the ready state
should be dead-lettered. To check a number of consumers on queue, declare it
(e.g. as passive) and check the returned value, QueueDeclareOk#ConsumerCount.
Also see [1].
1. http://rabbitmq.com/dlx.html
--
MK
Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss
mailing list