I have been following RabbitMQ tutorials to add publisher and consumer to NodeJS. But the documentation and general tutorials on internet lacks to give proper production setup for using RabbitMQ client with Nodejs Cluster setup.
From RabbitMQ tutorial channel.consume()
starts a consumer. Does this consumer starts in the same thread as Nodejs is running? If I run 4 Nodejs child processes that means it will created 4 consumers, right?
What would be the correct way of starting Nodejs app that only runs RabbitMQ workers by taking worker count from environment variable?