[rabbitmq-discuss] Durable exclusive queues

CyBergRind CBR cybergrind at gmail.com
Mon Oct 11 22:09:30 BST 2010


Sorry, didn't see your reply =)
txAMQP takes all parameters that defined in spec.

On Mon, Oct 11, 2010 at 9:00 PM, Alexandru Scvorţov
<alexandru at rabbitmq.com>wrote:

> Hi Brennan,
>
> I don't think exclusive queues are quite what you expect them to be.
> An exclusive queue can only be accessed by the channel that created it.
> A durable queue is one that survives a broker restart.  Since the
> connection and channel will be closed on a broker restart, a durable
> exclusive queue would become completely unaccessible.
>
> What you probably want is exclusive consumers.  If a consumer sets the
> exclusive bit in the basic.consume method, only that consumer is
> allowed to consume from the queue.  Using this, you can ensure that only
> one consumer consumes from any queue at any time.
>
> I'm not familiar with txAMQP, but have a look at basic.consume.  There
> should (fingers crossed) be an 'exclusive' parameter.
>
> Cheers,
> Alex
>
> On Mon, Oct 11, 2010 at 01:35:31PM -0400, Brennan Sellner wrote:
> > Hi all,
> >
> > Does anyone have a preferred mechanism for creating what amounts to a
> > durable, exclusive queue?  We need durable queues, and want to ensure
> > that only one client subscribes to each queue at a time.  I'm not seeing
> > an AMQP way to do this, since exclusive and durable are mutually
> > exclusive: am I missing something?
> >
> > Alternatively, I could hack around this if there were a way to retrieve
> > the number of clients subscribed to a given queue, but again I haven't
> > been able to find any way to get that information.
> >
> > We're using Rabbit 2.1.0, with txAMQP 0.3.
> >
> > Thanks,
> >
> > -Brennan
> >
> >
> >
> > _______________________________________________
> > rabbitmq-discuss mailing list
> > rabbitmq-discuss at lists.rabbitmq.com
> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20101012/c7d6eec6/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list