<html><head></head><body bgcolor="#FFFFFF"><div>Or why not just have the slow connection consume from the queues, but not ack when it receives a message? It could could use epoll/select to see if there is data to read of the messages are very large</div><div><br>-- <div>Ask Solem</div></div><div><br>On Feb 23, 2012, at 1:44 PM, Tony Garnock-Jones <<a href="mailto:tonygarnockjones+rabbitmq@gmail.com">tonygarnockjones+rabbitmq@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>On 23 February 2012 07:15, Cermak, Marek <span dir="ltr"><<a href="mailto:Marek.Cermak@honeywell.com">Marek.Cermak@honeywell.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Why not just send two messages? One to a real queue, and another one,<br>
> with no payload, to a queue called 'notifications'.<br>
<br>
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).<br>
Another issue would be sending of such notification messages since producers are not willing to be changed ;-)<br></blockquote><div><br>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.<br>
<br>Tony<br><br>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br><span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></body></html>