-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Processing Concurrency #1
Comments
I prefer to keep the module simple and not introduce a concurrent mechanism builtin, which may not be of everybodies liking. Instead it should be safe to run as many instances of a queue in the same, or different threads and processes. I wrote an example on the README using the cluster module, it works just nice. |
I agree! |
@manast |
@yhpark not sure the overhead is so large even with hundreds of redis clients, it should be designed to handle thousands and thousands of concurrent connections. If you can write a test that shows these problems I can take a look at it :). You can read threads in node: https://github.com/xk/node-threads-a-gogo |
@manast Well even if overhead is not visible immediately it'll definitely consume more cpu/memory. I'm not sure if code complexity issue is more serious than performance or small footprint. |
yes, code complexity is a big issue, making it atomic and robust as it is right now is already quite difficult... |
Support for processing multiple jobs at the same time would be nice!
As a workaround, is it safe to run multiple instances with the same database?
The text was updated successfully, but these errors were encountered: