I am using Rabbit MQ for my application. Sometimes I have to stop my customers due to maintenance. Thus, thousands of messages are expected in the queue. After rebooting my consumers, the message delivery speed is high (500-600 messages per second). At the same time, one of my consumers cannot process messages and break up the server.
In the future I will change the consumer code, but now I need a fast soluton.
So, is there a way to slow down the delivery speed? I tried the basicQos method, but that did not work.
Note. I use Java for consumers.
source share