<p>For the first item in our deployed system we used the xmessagettl option when the queue is created.� Messages expire after a certain amount of time. <a href="http://www.rabbitmq.com/extensions.html">http://www.rabbitmq.com/extensions.html</a></p>

<p>For the second one I would do it in the client and I don&#39;t know if rabbit supports it.� Example in our system there are 10 consumer machines reading from the same queue,� it goes quick when every node can filter out messages, if you have to parse through the contents of the message.</p>

<div class="gmail_quote">On Nov 16, 2011 6:13 PM, &quot;Andrew Esler&quot; &lt;<a href="mailto:aj.esler@gmail.com" target="_blank">aj.esler@gmail.com</a>&gt; wrote:<br type="attribution"></div>