Re:Managing two million web servers
by gcr on Sunday March 13, 2016 @09:45PM
(#11280526)
How is that different than just throwing an uncaught exception? Most web toolkits will catch that, log it, and 500 the client for you.
[ Parent
| on HN ]
Re:Managing two million web servers
by statictype on Sunday March 13, 2016 @11:28PM
(#11280870)
Your web service is stateless - for those cases it's fine.
However with this model, you are offloading all your state to another layer - likely the database layer.
With Erlang (or rather, the Actor model), you can build state-full pieces of code that are also resilient to crashes that cascade across the entire system, by having a standard pattern of restarting individual actors from a known clean state through a clean supervisor hierarchy.