A
A
aplic2013-12-13 22:09:45
Node.js
aplic, 2013-12-13 22:09:45

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

3 answer(s)
A
Alexander Zubakov, 2013-12-14
@aplic

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.

K
KRDark, 2013-12-14
@KRDark

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.

A
aplic, 2013-12-14
@aplic

When using Redis and cluster, you will have to mess around with data transfer and organizing and managing a pool of workers. All this can be written, I have examples, but I want some kind of ready-made library that provides a simple interface.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question