What is the difference between the node js child process and clusters?
Child Process | Clusters |
---|---|
It is a module of Node.js containing sets of properties and functions helping developers throughout the forking process. | These can be easily spun using Node's child_process module and can communicate with each other using a messaging system. |
It occurs when you have two or more node instances running with one master process routing. | It spawns a new script or executable on the system. |
BY Best Interview Question ON 21 Feb 2021