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 ?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.