logoalt Hacker News

dns_sneklast Sunday at 7:34 AM1 replyview on HN

> in which case the whole program may finally crash.

This may happen if you let it, but it's basically never the desired outcome. If you were handling a user request, it should stop by returning a HTTP 500 to the client, or if you were processing a background job of some sort, it should stop with a watchdog process marking the job as a failure, not with the entire system crashing.


Replies

Muromeclast Sunday at 11:31 AM

returning HTTP 500 as early as possible is an example of "let it crash" approach outside of Erlang.

show 1 reply