R
R
Rostislav2018-05-14 10:35:40
Node.js
Rostislav, 2018-05-14 10:35:40

How to separate a separate function into a managed process?

Let's say there is some asynchronous function in a Node.js server application. It is required to allocate it to a managed process so that it is possible to manage the process with requests for routes like /start, /stop, /pause , and the like. How to implement such a moment correctly and with what tools?
Is this approach correct at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profaller, 2018-05-14
@profaller

https://nodejs.org/docs/latest/api/child_process.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question