Kyle Hotchkiss
Kyle Hotchkiss

Reputation: 11112

Best method for Node.JS forking?

I'm writing a trajectory predictor in Node.JS. You may think it's a funny language to write one in, but it's actually working great. Now, I want to be able to start the predictor from a web interface in Node.JS.

The actual predictor process takes about 5 minutes to run. So to spawn it from the Node web process, I don't want the web process waiting for the child process to finish. What is the best method of forking, in Node.JS, to allow for spawning and releasing a process like this?

Upvotes: 1

Views: 148

Answers (1)

JohnnyHK
JohnnyHK

Reputation: 312095

Use the built-in child_process node module: http://nodejs.org/api/child_process.html

Upvotes: 1

Related Questions