Answer the question
In order to leave comments, you need to log in
What library will allow you to easily organize workers for heavy calculations from under node.js?
What library will allow you to most easily organize workers for heavy calculations from under node.js, to free me to the maximum from load balancing, organizing data exchange and pooling worker processes?
Answer the question
In order to leave comments, you need to log in
Just the other day, I needed to run a long computational process "in the background", so I was looking for a simple implementation of workers. I tried everything that Google offers, but in the end I came to child_process.fork
. Nothing really simple and working "out of the box" for this task was found.
Node has a cluster library - it is designed to create workers.
For load balancing, I personally use nginx - I myself create the required number of workers, they are specified in the nginx config, Redis is used to exchange data between workers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question