Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ : Difference between "message-ttl" and "expiration"

Tags:

rabbitmq

What is the real difference between expiration and message-ttl in RabbitMQ?

I've read the documentation (https://www.rabbitmq.com/ttl.html) but still isn't clear.

like image 854
SaSJo Avatar asked Oct 20 '25 18:10

SaSJo


1 Answers

message-ttl is set on a queue. You can bind multiple exchanges to the same queue. All messages which are routed to the queue will get this message-ttl set. expiration is set on a message by the sender. If the message is routed to a queue which has a message-ttl the lower of both values is applied.

like image 188
Georgi Georgiev Avatar answered Oct 22 '25 08:10

Georgi Georgiev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!