Reputation: 8234
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
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