Mandeep Singh
Mandeep Singh

Reputation: 8234

How can I manage a child_process from separate node.js processes?

I want to spawn a child process from a node.js process and after performing certain async operations, I want to pause the process.

Then another Node.js process will be running which needs to resume the process based on some event it will be listening to.

I can't seem to find how can I accomplish this in node.js ?

Upvotes: 0

Views: 72

Answers (1)

Vineet
Vineet

Reputation: 287

You can use Redis Pub/Sub to achieve this.

Refer: http://code.tutsplus.com/tutorials/multi-instance-nodejs-app-in-paas-using-redis-pubsub--cms-22239

Upvotes: 1

Related Questions