<div dir="ltr">I was referring to the rabbit priorities, in my scenario i have a process consumer.exe that connects to rabbit and consumes messages from a queue, suppose i launch this process 5 times, i end up with 5 consumers for the queue, if i specify the same priority for all of them they will end up receiving the messages in round robin, because that's the way rabbit distributes them.<div>

What i'm looking for is a way to tell rabbit to forget about round robin and just send the message to the first process in it's list that's available for processing</div></div><div class="gmail_extra"><br><br>

<div class="gmail_quote">On Tue, Dec 3, 2013 at 11:31 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

These are not OS priorities - the priority is set by an argument to the basic.consume method. Multiple consumers within the same OS process can have different priorities.<br>
<br>
Cheers, Simon<div class="im"><br>
<br>
On 03/12/13 11:27, Luis Rasc�o wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
If i understood correctly multiple consumers with the same high priority<br>
will receive the messages in round-robin.<br>
This is easier if the processes were different binaries, they are in<br>
fact the same binary, to use priorities i would have to attribute higher<br>
priorities as i launch the multiple instances of the binary, is there<br>
some other way?<br>
<br>
<br>
<br>
On Tue, Dec 3, 2013 at 11:23 AM, Simon MacMullen <<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a><br></div><div class="im">
<mailto:<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>>> wrote:<br>
<br>
� � Is this what you are looking for?<br>
<br></div>
� � <a href="http://www.rabbitmq.com/__consumer-priority.html" target="_blank">http://www.rabbitmq.com/__<u></u>consumer-priority.html</a><div class="im"><br>
� � <<a href="http://www.rabbitmq.com/consumer-priority.html" target="_blank">http://www.rabbitmq.com/<u></u>consumer-priority.html</a>><br>
<br>
� � Cheers, Simon<br>
<br>
� � On 03/12/13 11:19, Luis Rasc�o wrote:<br>
<br>
� � � � Hi all,<br>
� � � � Supose you have 3 processes consuming messages from a queue, i<br>
� � � � guess by<br>
� � � � default the messages will be distributed to the consumers in a<br>
� � � � round-robin fashion (p1, p2, p3, p1, etc). Is there a way to<br>
� � � � change this<br>
� � � � distribution policy so that always the first free process<br>
� � � � handles the<br>
� � � � message? For example if p1 is always available then it would<br>
� � � � handle all<br>
� � � � the queued messages.<br>
� � � � thanks in advance<br>
<br>
<br></div>
� � � � ______________________________<u></u>___________________<br>
� � � � rabbitmq-discuss mailing list<br>
� � � � rabbitmq-discuss@lists.__<a href="http://rabbitmq.com" target="_blank">rabbi<u></u>tmq.com</a><br>
� � � � <mailto:<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@<u></u>lists.rabbitmq.com</a>><br>
� � � � <a href="https://lists.rabbitmq.com/__cgi-bin/mailman/listinfo/__rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/__<u></u>cgi-bin/mailman/listinfo/__<u></u>rabbitmq-discuss</a><div class="im"><br>
� � � � <<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a>><br>
<br>
<br>
<br>
� � --<br>
� � Simon MacMullen<br>
� � RabbitMQ, Pivotal<br>
<br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</div></div></blockquote></div><br></div>