<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal">I have a customer who I’m delivering content to via a Message Queue. </p><p class="MsoNormal"> </p><p class="MsoNormal">
The queue has a per-message TTL of one hour. This means that at any given time they should have around 3000 messages.</p><p class="MsoNormal"> </p><p class="MsoNormal">A few minutes ago I noticed that they had 90,000 un-acked messages in their queue. I presume that this is because that a message which has been delivered and is waiting acknowledgement cannot be “expired”. That sort of makes sense.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">I notified the customer, they reset something and now they have 90,000 messages ready for delivery.</p><p class="MsoNormal"> </p><p class="MsoNormal">How should messages behave when they have been NAK’d. Does the clock get reset every time a message is NAK’d?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">This document <a href="http://www.rabbitmq.com/extensions.html#queue-ttl">http://www.rabbitmq.com/extensions.html#queue-ttl</a> says that requeued messages preserve their original expiry time, but does that apply to NAK’d messages?</p>
<p class="MsoNormal"> </p><p class="MsoNormal">If there’s no way for me to prevent messages from building up using a TTL, is there a way for me to prevent client’s from ack/nak on a particular queue?</p><p class="MsoNormal">
</p><p class="MsoNormal">Thanks!</p><p class="MsoNormal"><span style="font-size:8.0pt"> </span></p><p class="MsoNormal"><span style="font-size:8.0pt">-Dave</span></p></div></body></html>