npm install restify request
cd app1
nodemon app1.js
# another window
cd app2
nodemon app2.js
# another window
curl "http://localhost:9944/api/serve/999" # 999 will hang app1
2 node server processes acting as a watchdog for each other, uses nodemon to trigger restarts when hung
JavaScript
npm install restify request
cd app1
nodemon app1.js
# another window
cd app2
nodemon app2.js
# another window
curl "http://localhost:9944/api/serve/999" # 999 will hang app1