Cách tạo delay queue
https://ivanyu.me/blog/2015/02/16/delayed-message-delivery-in-rabbitmq/
We will need several queue arguments, which will be set on its declaration:
x-message-ttl
– the number of milliseconds for a message to stay consumed in a queue.x-dead-letter-exchange
andx-dead-letter-routing-key
– an exchange and routing key where message will be send after the expiration.x-expires
– the number of milliseconds for a queue to be unused before it will be deleted.
Comments
Post a Comment