To abort or to return an error: why not both?
When building fault-tolerant services, reliably and consistently handling errors is a top priority. Errors will always happen in production, are usually transient and your service should be able to survive an error spike; defining an SLO will give you the error budget you need to work with them.
But how should you handle errors, really? More specifically, in case a method in your code returns an error / throws an exception, what is the “correct” way to handle it? I’ve worked in places where every error was logged and relied on alerts to get the developer’s attention. Aborting (crashing) the service on startup if any of the required dependencies aren’t available is also a possibility, though in a job interview arguing for this was cited as a cause of me not getting an offer.
Work Dad Dev