[rabbitmq-discuss] How check for existing queue consumer

Simon MacMullen simon at rabbitmq.com
Wed Feb 12 15:06:35 GMT 2014

On 12/02/14 15:04, Alvaro Videla wrote:
> If you need to have just one consumer per queue, then declare the
> queue as exclusive.

Note that exclusive *queues* and exclusive *consumers* are two different 

An exclusive *queue* can only be accessed by the connection that created it.

An exclusive *consumer* prevents anyone else from consuming from the queue.

Exclusive consumers are less well known than exclusive queues, so it's 
important not to get them mixed up.

Cheers, Simon

Simon MacMullen
RabbitMQ, Pivotal

More information about the rabbitmq-discuss mailing list