Sneakers concurrency from RabbitMQ consumer perspective #439
Open
Description
Sneaker seems to be excellent gem for RabbitMQ but I am having trouble grasping its abstraction written over RabbitMQ consumer.
In RabbitMQ you can create as many consumer with set amount of prefetch. I have done this in Nodejs where I'll create certain number of consumers on certain machines. Same things appear to be little complicated in rails with workers and threads and worker classes.
From what I understand, each worker class will have its thread pool, say 10 as configured globally. Say I have 20 worker classes and 4 number of per-cpu worker configured in Sneaker configuration.
So
- how many consumers will be running at any point of time?
- Will there be 20 classes* 10 threads per class = 200 threads?
- What does 4 worker per-cpu process represent?
Can anyone please elaborate on this? Thanks in advance.
Metadata
Assignees
Labels
No labels