Differentiate between spawn() and fork() methods in Node.js?

The child_process.spawn() method spawns the child process asynchronously, without blocking the Node.js event loop.

child_process.fork(): spawns a new Node.js process and invokes a specified module with an IPC communication channel established that allows sending messages between parent and child.

Comments

Popular posts from this blog

Which node logger did you use in your project?

What test framework did you use to test your nodejs applications