Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question