[rabbitmq-discuss] Setting Per Message TTL?

Emile Joubert emile at rabbitmq.com
Fri Mar 30 10:20:52 BST 2012


Hi James,

On 30/03/12 06:15, James Carr wrote:
> I know how to set message TTL on a queue by queue basis, but is it
> possible to set the message TTL on a message basis?

No - this would have made it necessary for the broker to expire and
remove messages in the middle of the queue, which is difficult to do
efficiently.

If your producers and consumers share a time source then producers could
add a timestamp to messages and consumers could simply ignore expired
messages.


-Emile




More information about the rabbitmq-discuss mailing list