increasing threads in client
Hi Brother,
we use EasyNetQ to publish message every 5 minutes in client, If RabbitMQ highwater mark(either disk space or memory) is reached, RabbitMQ Server will refuse any client incoming message, which will cause client application threads count to increase to more than thousands. how to solve this problem? is is possible to pre-check highwater mark in client before publish message? thank you!
Hi, I am not a contributor of easynetq and I know this is an old issue. Did you give the Blocked event in the Advanced bus a try?
how do i get the blocked event? is there a way to register that event so client application can be notified when blocked event is raised?
Does this code help? `var rabbitBus = RabbitHutch.CreateBus(connectionString);
rabbitBus.Advanced.Blocked += (sender, args) => { consoleLogger.Error("BusConnection Blocked! {reason}", args.Reason); };`
It seems that #1056 will help to not increase threads, but anyway we should consider how to deal with blocked event.
This issue seems to be outdated. If it still persists or anyone has any suggestions how blocked event should be handled - feel free to reopen.