<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">Something along those lines, yes. Note that this is borderline hackish.</div><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Also keep in mind to always CC the RabbitMQ discuss list.</div><div class="" style="font-family:arial,sans-serif;font-size:13px"></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 1:20 PM, rails <span dir="ltr"><<a href="mailto:stammailbox@gmail.com" target="_blank">stammailbox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>@Alvaro, </div>I already have a DLE but I can't see how it can assist me in working on bulks. Do you mean I can subscribe to a queue in the DLE and than when a message arrives - start to consume from the original queue that was filled? and then move the message back from DLE to the queue? maybe I failed to understand... </div>
<div class=""><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 1, 2014 at 6:18 PM, Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div>I'd guess this could be attempted using queue length: <a href="http://www.rabbitmq.com/maxlength.html" target="_blank">http://www.rabbitmq.com/maxlength.html</a> and setting up a separate dead letter queue for that 5000th message.<div>


<br></div><div>Regards,</div><div><br></div><div>Alvaro</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, Jun 1, 2014 at 3:37 PM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div>On 1 June 2014 at 17:34:11, rails (<a href="mailto:stammailbox@gmail.com" target="_blank">stammailbox@gmail.com</a>) wrote:<br>



> > 1. What is the best practice to get the number of messages in a<br>
> queue.<br>
> I know I can get it via queue.getMessageCount()<br>
<br>
</div>Do a queue.declare (possibly with passive = true), check # of messages ready from<br>
queue.declare-ok. You can also query queue stats using HTTP API.<br>
<div><br>
> What is the best way if I want to react only when X messages arrive? <br>
<br>
</div>Add a consumer and process deliveries in batches  in your own code.<br>
<div><br>
> 2. And more important - can I get the number of messages in a queue<br>
> via push?<br>
<br>
</div>There is no such feature in RabbitMQ. You have to periodically check the counter.<br>
--<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br></div></div>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<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>
</blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>