[rabbitmq-discuss] Exclusive Producers?

Matthias Radestock matthias at rabbitmq.com
Tue Feb 18 10:27:42 GMT 2014


On 18/02/14 10:18, Simon MacMullen wrote:
> On 18/02/2014 2:06AM, Tarun Mistry wrote:
>> Using Rabbit speak, I feel like I need something called an "exclusive
>> producer".
>
> Yes, that sounds right. Sadly there's not really such a thing as a
> "producer" in the sense of a client having agreed that it can produce
> messages - there are just clients that may or may not publish messages.
> So there's an asymmetry with consumers there.

Moreover, producers are not associated with single queues - messages get 
published to exchanges and may end up in zero or more queues.

>> Do I need to fudge this by introducing a second queue and having all the
>> processes connect to this using the "exclusive consumer" pattern, and
>> then use this to determine who can control the main queue?
>
> So that's probably your best bet. I can't think of anything better,
> anyway. It's a bit ugly, but should be workable.

There *is* a better way. See Alvaro's reply.

Matthias.


More information about the rabbitmq-discuss mailing list