-
Notifications
You must be signed in to change notification settings - Fork 9
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
reader consume too slow #100
Comments
I suppose this happens due to Feel free to send a PR with As a naive implementation we could call |
Actually, I'm not very familiar with asynchronous programming. I feel that ansq is already the easiest to use asynchronous nsq package in python so far. But if the consumption efficiency of ansq is so weak, basically, I can't use it in production environment. |
Temporary workaround is to increase manually RDY via: for conn in reader.connnections:
await conn.rdy(2500)
See the releases page for details.
Thanks anyway for the issue. Much appreciated. I'll try to come up with a naive solution later on my spare time. |
Thanks for your work. Good luck! |
Here's what i've found in some of my tests:
The higher RDY does indeed imply higher throughput, though, mind it got saturated at RDY ~ 64-128. Of course the actual point of saturation will depend on the scenario. |
@magniff nice demonstration! Yeah, RDY is a key concept that tunes the performance and throughput of a client, see docs.
|
@atugushev I don't know what's wrong, but I can't install ansq with "pip install 'git+https://github.com/atugushev/ansq@set-max-in-flight#egg=ansq'" |
@rxy1212 what's the error? |
But general packages installed with pip work well |
@rxy1212 does |
@atugushev I got this output
|
@rxy1212 seems like you need a VPN. |
I just do nothing but consume the message, and I find I can only consume about 30 messages per second. Do I miss some configs in the reader?
The text was updated successfully, but these errors were encountered: