-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added support for blocking channel->wait #414
base: master
Are you sure you want to change the base?
Conversation
@arep During development of Consumer I tried with setting nonblocking to |
That might be, but it would be nice to have the option to use it anyway. For me at least it is important that the messages are processed as quickly as possible, and then I must use blocking call. |
+1. It's very important option to use if you want to have high MPS |
Hi @arep, is this still something you would like added to the library? |
Might be better in the connection config. |
Yes. We are using this feature in production and it has worked great. |
Well, i've been trying to push same solution (#296) in late of 2019 :) |
@arep do you have some links / docs explaining the perf value of doing this? |
We are using rabbitmq to do RPC calls from the webserver to a service that runs database querys. The reason is that some queries can take a long time, 5-60 sec, while most is completed within milliseconds. On one of our setups there are around 150 queries pr/sec. Hope that clarifies the use case. |
Understood, so it's a queue with low traffic but where the latency of processing the job matters. I'll look into this a bit more. |
Using blocking call can speed up the latency for the queue processing significantly.