<div dir="ltr">Adding back rabbitmq-discuss to the loop.<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 3:26 PM, Lawrence Freil <span dir="ltr">&lt;<a href="mailto:lef@apago.com" target="_blank">lef@apago.com</a>&gt;</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">Alvaro,<br>
<br>
I should have stated &#39;consumer&#39; instead of &#39;queue&#39;. The docs (and my testing indicates that it does work this way) states:<br>
<br>
Direct exchanges are often used to distribute tasks between multiple workers (instances of the same application) in a round robin manner. When doing so, it is important to understand that, in AMQP 0-9-1, messages are load balanced between consumers and not between queues.</blockquote>
<div><br></div><div>The exchanges will route messages to queues based on the routing key used when publishing the message and the routing key used to bind the queue(s) to the exchange. Depending on the exchange is how that routing key will be used during routing. So one message could end up in more than one queue.</div>
<div><br></div><div>Once the message reached one queue (note that the message could have been delivered to more than one queue), then the messages on a particular queue will be round-robin&#39;ed across consumers.</div><div>
<br></div><div>For more details take a look here:�<a href="http://www.rabbitmq.com/tutorials/amqp-concepts.html">http://www.rabbitmq.com/tutorials/amqp-concepts.html</a></div><div><br></div><div>Regards,</div><div><br></div>
<div>Alvaro</div><div><br></div><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 class="">
<div class="h5"><br>
<br>
<br>
<br>
<br>
On Oct 30 2013, Alvaro Videla wrote:<br>
<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">
On Wed, Oct 30, 2013 at 2:54 PM, Lawrence Freil &lt;<a href="mailto:lef@apago.com" target="_blank">lef@apago.com</a>&gt; wrote:<br>
<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">
In addition it needs to act as a direct exchange in that only one queue<br>
should receive a message<br>
</blockquote>
<br>
<br>
BTW, on the direct exchange, every queue that is bound with a particular<br>
routing key will receive the message. An exchange that routes messages to<br>
one queue is the default exchange (aka anon exchange).<br>
<br>
</blockquote>
<br></div></div><span class=""><font color="#888888">
-- <br>
Lawrence Freil<br>
<a href="mailto:lef@apago.com" target="_blank">lef@apago.com</a><br>
<a href="tel:770-619-1884" value="+17706191884" target="_blank">770-619-1884</a><br>
</font></span></blockquote></div><br></div></div>