[rabbitmq-discuss] Queues and auto_delete

Matthias Radestock matthias at lshift.net
Thu Nov 12 05:05:34 GMT 2009


Garrett,

Matthias Radestock wrote:
> Garrett Smith wrote:
>> I only want a single consumer from the queue, but the queue needs to
>> stick around to collected messages even when the consumer is
>> disconnected.
> 
> Exclusivity is on a per-connection basis. It sounds like you want a
> notion of exclusivity based on consumer identity. That is not directly
> supported by AMQP

Actually, AMQP (and RabbitMQ) *does* support this. When a consumer does 
a 'basic.consume' with the 'exclusive' flag set to true, then any other 
consumer attempting to consume from the same queue will get an error 
until the exclusive consumer has disappeared (through basic.cancel, 
channel/connection closure, client/network failure, etc).


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list