<div class="gmail_extra">Thanks for that brilliant idea. I didn&#39;t know aboud these extensions.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards, Ostin.<br><br><div class="gmail_quote">27 ������ 2012��. 13:03 ������������ Steve Powell <span dir="ltr">&lt;<a href="mailto:steve@rabbitmq.com" target="_blank">steve@rabbitmq.com</a>&gt;</span> �������:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ostin,<br>
It is not clear to me what you are &#39;watching&#39; these queues for, but if<br>
you want to retrieve the message from the queues after a certain time,<br>
then why not investigate Dead Letter Exchanges(DLX) and queue message<br>
expiry?<br>
<br>
If the moderator&#39;s private queues have an expiry time (TTL) on them,<br>
then messages that have been on the queue for that time will be deleted<br>
-- if there is a DeadLetterExchange associated with the queues, the<br>
deleted message will be re-published to the new exchange. You can<br>
arrange for the DLX to route the message to a queue of your choice --<br>
the monitor process need only listen on this queue.<br>
<br>
Be sure to code the moderator carefully (so as not to drop a message<br>
while moving it) using publisher confirms and acks.<br>
<br>
See<br>
(<a href="http://www.rabbitmq.com/extensions.html/#dead-letter-exchanges" target="_blank">http://www.rabbitmq.com/extensions.html/#dead-letter-exchanges</a>)<br>
and<br>
(<a href="http://www.rabbitmq.com/extensions.html/#queue-ttl" target="_blank">http://www.rabbitmq.com/extensions.html/#queue-ttl</a>)<br>
for more information.<br>
<br>
Steve Powell<br>
<a href="mailto:steve@rabbitmq.com">steve@rabbitmq.com</a><br>
[wrk: +44-2380-111-528] [mob: +44-7815-838-558]<br>
<div><div class="h5"><br>
On 21 Apr 2012, at 00:46, Alexey Ostin wrote:<br>
<br>
&gt; Let me show one more example.<br>
&gt;<br>
&gt; I&#39;ve got some moderation queue. Whenever a moderator locks message (or several messages) for moderation, it moves from main queue to personal moderator&#39;s queue. Just to perform some long time lock (It can be minute or hour, thus I can&#39;t use ack/nack to hold message in main queue). The goal is to monitor all moderators queues as well as main one. The problem is that I do not know all moderator&#39;s queues and I can&#39;t just monitor some fixed list because it regenerates dynamically.<br>

&gt;<br>
&gt; I&#39;ve just thought about using separate exchange for moderator&#39;s queues. It can help with monitoring, I&#39;d watch over whole exchange.<br>
&gt; But it is still interesting whether I can publish message to several queues and consume it from them all at once. Sounds like gibberish.<br>
&gt;<br>
&gt; To be honest I&#39;ve got one more problem to solve - it is to automatically release these locks (put a message from moderator&#39;s queue back to main) by timeout, but it should be other conversation I think :)<br>

&gt;<br>
&gt; Best regards, Ostin.<br>
&gt;<br>
&gt; 20 ������ 2012 �. 21:00 ������������ Simon MacMullen &lt;<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>&gt; �������:<br>
&gt; On 20/04/12 17:27, ostin wrote:<br>
&gt; Example application with topic exchange:<br>
&gt; I push a message to server1.app1 queue and an other one to<br>
&gt; server1.app2 queue. I monitor server1 queue to determine count of<br>
&gt; processing messages on server 1. After app1 ends processing message it<br>
&gt; shold be deleted from both queues: from app1 to prevent duplicate<br>
&gt; processing, from server1 to have valid stats for monitoring. I assume<br>
&gt; that there can be many applications with random names, so I cant<br>
&gt; monitor just count of messages in app* queues.<br>
&gt;<br>
&gt; If you want to make sure that a given message is only ever consumed from server1.app1 OR server1.app2, why not have only a single queue and have both applications consume from it?<br>
&gt;<br>
&gt; Cheers, Simon<br>
&gt;<br>
&gt; --<br>
&gt; Simon MacMullen<br>
&gt; RabbitMQ, VMware<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br>
</blockquote></div><br></div>