2011/7/9 Demiss Zike <span dir="ltr">&lt;<a href="mailto:habtdemis@gmail.com">habtdemis@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Can you point me to the right direction as to how I can write a message using RabbitMQ to multiple queues without having to open a connection for each message?</blockquote></div><br>Demiss,<br><br>In AMQP model messages are not written to queues. They are published to exchanges that route them to queues according to rules called &quot;bindings&quot;. Different exchange types employ different routing rules. To route a message to multiple queues, take a look at fanout and topic exchanges. Regardless of what exchange type you choose, AMQP connections are stateful and typically long-lived: there is no need to open multiple connection for simple scenarios.<br>

<br>Have a look at these tutorials:<br><br><a href="http://www.rabbitmq.com/tutorials/tutorial-three-python.html">http://www.rabbitmq.com/tutorials/tutorial-three-python.html</a><br><a href="http://www.rabbitmq.com/tutorials/tutorial-five-python.html">http://www.rabbitmq.com/tutorials/tutorial-five-python.html</a><br>

-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br><br>