<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Thanks for the reply. So the only problem I see with what I want to do and with whats available in RabbitMQ is I will have to time slice and create multiple queues. </div>
<div>For example:</div>
<div>One queue with a timeout of 5 min, the other 10 min. Then according to the delay time just put incoming data into the proper queue.</div>
<div>The down side I can see is that new data that will be thrown in a queue with say a 10 min timeout, will be theoretically processed anywhere between 1-10 mins. I cannot kinda guarantee that the data will be handled only after 10 mins.</div>
<div><br>
</div>
<div>Does this make sense to you?</div>
<div><br>
</div>
<div>Do you create a new queue per request coming in, depending on a the delay?</div>
<div><br>
</div>
<div>AJ</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Laing>, Michael <<a href="mailto:michael.laing@nytimes.com">michael.laing@nytimes.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Discussions about RabbitMQ <<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, March 20, 2014 6:36 PM<br>
<span style="font-weight:bold">To: </span>Discussions about RabbitMQ <<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [rabbitmq-discuss] : Delayed processing of data<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">We currently use TTLs and Dead Letter Exchanges to accomplish this.
<div><br>
</div>
<div>An app we call Route looks at messages and either:</div>
<div>
<ol>
<li>sends them to an exchange called Distribute, or </li><li>declares a queue with a name reflecting the embargo datetime and a DLX of Distribute and sends the message to it with a TTL calculated to release at that datetime.<br>
</li></ol>
<div>This works fine. You can dynamically set a policy to delete the queue.</div>
</div>
<div><br>
</div>
<div>Probably we will move away from this in the next few months simply because we wish to persist as little as possible in rabbitmq. But it is quite simple and functional.</div>
<div><br>
</div>
<div>ml</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Mar 20, 2014 at 2:11 PM, Ajinkya Apte <span dir="ltr">
<<a href="mailto:aapte@zynga.com" target="_blank">aapte@zynga.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hey guys,</div>
<div>I want to delay the processing of some data coming into a queue. The data has delayTime associated with it.</div>
<div><br>
</div>
<div>What I want to do?</div>
<ol>
<li>Data is coming in with a delayTime associated with it. </li><li>Some data can come with the delayTime=5 mintes from now, some data with delayTime=10 and so on. This delayTime can be anything.</li><li>I want to delay the processing of this data. </li></ol>
<div><br>
</div>
<div>Questions?</div>
<ol>
<li>From the documentation seems like using message TTL won't be the way to go, right? </li><li>Will I have to use the 'Dead Letter Exchanges' concept along with multiple retry queues having different timeouts?
</li><li>Any other suggestions?</li></ol>
<div><br>
</div>
<div>Please let me know.</div>
<div>Thanks,</div>
<div><br>
</div>
<div>AJ</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>
</div>
</div>
</div>
</span>
</body>
</html>