I need to set Time-To-Live (TTL) and expiration for a RabbitMQ queue. I am using the RabbitMQ client in Ballerina to interact with RabbitMQ. However, I couldn't find clear documentation or examples of how to achieve this. Are there any specific ways in the Ballerina RabbitMQ client that I should be using for this purpose?
Setting Time-To-Live and Expiration for RabbitMQ Queue in Ballerina Using RabbitMQ Client
65 views Asked by Azeem Muzammil At
1
You can use the
arguments
field of the RabbitMQ QueueConfig to provide any additional configurations (apart from the standard configs defined in the same record) when declaring a queue.Here's a complete code sample which demonstrates the aforementioned approach.