Reputation: 153
I am using RabbitMQ messaging service to send messages. I want to dequeue the messages that are sent on a scheduled basis and stop dequeuing the messages after 2 minutes, so that I can dequeue them on the next scheduled time.
Thanks, R. Venkatesan
Upvotes: 0
Views: 739
Reputation: 12859
Looks like Time-To-Live Extensions is what you want. Setting per-queue ttl for 2 minutes will dead-letter messages that was published more than 2 minutes ago.
Upvotes: 3