stops to consume message

35 views
Skip to first unread message

Andy Tseng

unread,
Nov 20, 2019, 5:13:22 AM11/20/19
to rabbitmq-discuss
We are using three consumers to subscribe same queue. But If one of them consumer is very busy, I want to ask it to stop to receive message and let the other two consumer to get the other messages util the busy consumer is ok and then start to get message again. It's it's possible ?

Stuart Johnston

unread,
Feb 11, 2020, 11:14:27 AM2/11/20
to rabbitmq-discuss

The logic has to be in the consumers code
Start off with a prefetch count of 50 , every time the consumer reads off a number of message deduct the amount from the prefetch count for the next batch of messages

The 50 number will be up to what your expect volumes are.

I read in v3.8 there is a standby consumer function which might be worth having a look at.....

 
Also I dont see what the issue is with having a busy consumer you would have to clarify exactly what you mean by that statement 

Also detail what version of rabbitMQ you are using.

Yogesh Karale

unread,
Dec 3, 2020, 4:48:10 AM12/3/20
to rabbitmq-discuss
You can check if you want to disable certain credentials to specific user/users.
I think you can write a small script that will control admin using CLI. I am writing this based on what I visualised . your specific need might be bit different 
But I see the line of solution is the same.

Reply all
Reply to author
Forward
0 new messages