[rabbitmq-discuss] Exclusive Producers?

Alvaro Videla videlalvaro at gmail.com
Tue Feb 18 12:05:49 GMT 2014


On Tue, Feb 18, 2014 at 11:37 AM, Michael Klishin
<mklishin at gopivotal.com> wrote:
> On 18 Feb 2014, at 14:31, Gordon Sim <gsim at redhat.com> wrote:
>> What I often do in cases like that is have the second queue as you suggest, but instead of using an 'exclusive consumer' lock on it, just have a single message in it.
> It's worth mentioning that it is possible to enforce the single message limit:
> http://www.rabbitmq.com/maxlength.html

I'm not sure this will help, because "Queue length is a measure that
takes into account ready messages, ignoring unacknowledged messages
and message size."

So unacked messages, which is what this technique is issuing, won't
prevent someone from publishing a new message, thus allowing a second
producer to grab that message and start producing when it shouldn't.



More information about the rabbitmq-discuss mailing list