by bluepizza · 1y ago · 0 comments
Otherwise, some situations simply don't warrant a full shutdown, and it might be okay to run the application in degraded mode.
Yes but what is worse is silently corrupting the data or the state because of running in buggy state.
If you don't know what the state of your app is, how do you prevent data corruption or logical errors in further execution?
There are a lot of patterns for this. Its perfectly fine and often desirable to scope the blast radius of an error short of crashing everything.
OSes shouldn't crash because a process had an error. Servers shouldn't crash because a request had an error. Missing textures shouldn't crash your game. Cars shouldn't crash because the infotainment system had an error.
Even worse, you might be in an unknown state because someone is trying to exploit a vulnerability.