Hi Dhaneesh,<br><br>I got most-of-the-way through writing up a blog post describing how to do this before I found I&#39;d been handily beaten to the punch: Doug Barth&#39;s post at <a href="http://dougbarth.github.com/2011/07/01/approximating-priority-with-rabbitmq.html">http://dougbarth.github.com/2011/07/01/approximating-priority-with-rabbitmq.html</a> does a good job of explaining one solid way of achieving basic message prioritisation.<br>
<br>The key insight is to <i>make sure higher-priority messages never get stuck behind lower-priority messages</i>. This manifests in a few ways:<br><ul><li>the creation of multiple queues, avoiding getting stuck behind low-priority messages in a single queue<br>
</li><li>the creation of multiple channels (or even connections!), avoiding getting stuck behind messages travelling on a single TCP link</li><li>the creation of multiple in-memory queue objects on the client side, avoiding gettings stuck behind messages in a single in-memory queue object</li>
<li>careful attention to the approach taken to removing messages from the in-memory queues: every time a message is needed, check the highest-priority queue first.<br></li></ul>Basically, provide ways for messages to overtake each other as required, and then always check the fast-path first.<br>
<br>Regards,<br>� Tony<br><br><br><div class="gmail_quote">On 28 December 2011 01:58, Dhaneesh Radhakrishnan <span dir="ltr">&lt;<a href="mailto:dhaneesh@hifx.co.in">dhaneesh@hifx.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span>Hi</span></div><span><div><span><br></span></div>We are implementing RabbitMQ queues for an application that has to�asynchronously�handle a number of jobs</span><div><span><br></span></div>

<div><font color="#222222" face="arial, sans-serif">we need to know whether rabbitmq support the priority queue</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><span>Any pointers for more information about it would be highly appreciated.</span></div>


<div><span><br></span></div><div><div>Thanks and Regards</div><div>Dhaneesh R</div></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Tony Garnock-Jones<br><a href="mailto:tonygarnockjones@gmail.com" target="_blank">tonygarnockjones@gmail.com</a><br><a href="http://homepages.kcbbs.gen.nz/tonyg/" target="_blank">http://homepages.kcbbs.gen.nz/tonyg/</a><br>