Venkatesan Rethinam
Venkatesan Rethinam

Reputation: 153

How to dequeue messages from RabbitMQ in a scheduled time

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

Answers (1)

pinepain
pinepain

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

Related Questions