Monday 25 March 2019

What are the use cases for "child_process" ?

API doc mentions the following: "It is important to keep in mind that spawned Node.js child processes are independent of the parent with exception of the IPC communication channel that is established between the two. Each process has its own memory, with their own V8 instances. Because of the additional resource allocations required, spawning a large number of child Node.js processes is not recommended."If I use child processes, then based on the number of requests, multiple child processes will be spawned. So what is the exact use case for the child_process module? When have you actually implemented it at your company or in your application?

Submitted March 25, 2019 at 07:54PM by shri29

No comments:

Post a Comment