[rabbitmq-discuss] Message presence notification
tonygarnockjones+rabbitmq at gmail.com
Thu Feb 23 13:44:05 GMT 2012
On 23 February 2012 07:15, Cermak, Marek <Marek.Cermak at honeywell.com> wrote:
> > Why not just send two messages? One to a real queue, and another one,
> > with no payload, to a queue called 'notifications'.
> It indeed does, but it would be useful in case there is only one producer
> (or not many of them). We can have lot of producers and that would bring
> tons of messages in notification queue (in the worst case one for every
> message in the 'real' queue).
> Another issue would be sending of such notification messages since
> producers are not willing to be changed ;-)
How about one process that polls (using passive queue.declare) the main
queue every n seconds? When the message count changes (hmm, what if
consumers are keeping it at zero) it can send a small notification. That
way the producers don't have to be changed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss