<div dir="ltr"><div>On Fri, Jul 26, 2013 at 11:18 PM, Matthias Radestock�<span dir="ltr">&lt;<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>&gt;</span>�wrote:<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><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">Queue A, no TTL, DLX=Exchange B (with Queue B bound to it).<br>
Queue B, ttl of (x) seconds, DLX= Exchange A (with Queue A bound to it).<br><br>When we NAck the mesage from Queue A, we set requeue=false.<br></blockquote><br></div>Yep, that makes perfect sense and should work well.<font color="#888888"><br>
</font></blockquote></div><div><br></div><div><br></div><div>I&#39;ll give the using-deadletter-exchange with NAck approach a go.�</div><div><br></div><div><br></div><div><br></div><div>On Sat, Jul 27, 2013 at 1:49 AM, Tom Anderson�<span dir="ltr">&lt;<a href="mailto:tom.anderson@timgroup.com" target="_blank">tom.anderson@timgroup.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"><div bgcolor="#FFFFFF" text="#000000"><div class="im"><br>
</div>Implemented exactly as described there, it yields an infinite loop for unprocessable messages. You might therefore also want to keep a count of the number of processing attempts in a header on the message, and more thoroughly reject messages which reach some maximum number of attempts. I think you could do the final rejection by setting a routing key on the message when you reject it for the last time, and having exchange B be a direct exchange which routes to either queue B or some final deadletter queue.<br>
</div></blockquote><div><br></div><div>�</div></div><div>Yep, we&#39;ve got other ways to deal with permanent failures/poison messages.�</div><div>This is purely to deal with transient problems where we might need to try several times.�</div>
<div><br></div><div><br></div><div>Thanks for the feedback and discussion everyone.�</div><div>Cheers</div><div class="gmail_extra"><br></div></div>