2 ms·
How do you break Node.js? And if you break it how much it is broken? With mod_php even if you kill or freeze single apache process your app is still up and run
by scotty79 17y ago
How do you break Node.js? And if you break it how much it is broken?
With mod_php even if you kill or freeze single apache process your app is still up and running for other users. What happens if Node.js crashes or hoards resources?
- simonw 17y agoOff the top of my head: run several Node instances (one per core would maximise potential performance) and load balance between them. Have the load balancer / some other monitoring script periodically check each instance to see if it's hung and remove from load balancer, kill and restart it when that happens.