3 ms·
I'm not an expert with deploying application servers but shouldn't part of handling lifecycle include the ability for a service to crash and be respawned? Ie.
by Waterluvian 10y ago
I'm not an expert with deploying application servers but shouldn't part of handling lifecycle include the ability for a service to crash and be respawned?
Ie. Be okay if a syntax error crashes your server.
- smokeyj 10y agoYes you should be using a process manager like PM2.
- garysieling 10y agoIf you're comparing to J2EE, ASP.NET, Apache, etc, application servers tend to be big monoliths with lots of features, but Node is much lighter / more modular, so you end up setting that up yourself (that also surprised me)
- phamilton 10y agoIn a "one request per process" model, sure. But if you are handling 1000s of concurrent connections, a syntax error crashing your server means all of those connections error.