A
A
Andrey Mensky2014-11-26 17:39:07
Clustering
Andrey Mensky, 2014-11-26 17:39:07

Modular application on node.js?

Good time.
There was a question of implementation of the similar application. Let's say we have a master process that monitors the work of modules, in case of a fall, it resumes their work and actually writes what is needed to the log.
The first module processes requests by express, the other collects system information (running processes, memory and processor load). The third does process requests on a separate port.
All these modules are closely related. By what means to scatter these modules into separate processes and teach them to communicate with each other (well, in addition to sockets)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Condensed milk-chan, 2014-11-26
@men232

ZeroMQ or RabbitMQ, alternatively you can use pub/sub in Redis. You can use forever to automatically elevate an application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question