Saturday, 9 May 2020

Why are child processes useful? Could anyone provide use cases for when it would be correct to use one of the child process methods in node like fork, spawn, exec & execFile ?

I'm largely self taught. I understand how to create a REST API, write some auth logic and create web pages based off of templating with handlebars.However, I'm trying to understand why I'd want to use child processes? I've read into the docs and I understand what each of the child process methods do.So my question has been asked to specifically understand what use cases merit the use of child processes? If you would be kind enough to provide a real app example of the following child process methods then I'd appreciate it so much:spawnexecexecFilefork

Submitted May 09, 2020 at 07:06PM by sonjpaul

No comments:

Post a Comment