[rabbitmq-discuss] how can i make a message to be consumed at a later time
dialtone at gmail.com
Sun Jul 5 19:41:20 BST 2009
On Jul 5, 2009, at 10:09 AM, Qingyan(Evan) Liu wrote:
> Sorry i'm fresh to rabbitmq. I wanna to use it like a timer, for
> example, producer publishes a message called 'bomb', what i want is to
> consume(explode) the 'bomb' after 5 minutes. Can i implement such case
> by means of rabbitmq? And how?
This is one of the things I'm "fighting" with right now. I think the
to implement this, as it would be with TTL, is to include a timestamp
execution inside the message, let's say "run at 2009-07-10 9:10:10"
then when the message is received instead of executing it right away
you just wait until the timer goes off. If you are using qos prefetch
can increase the prefetch by one while you wait, if you are not you
care and it will work correctly.
Valentino Volonghi aka Dialtone
Now running MacOS X 10.5
Home Page: http://www.twisted.it
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090705/4d95e473/attachment.pgp
More information about the rabbitmq-discuss