3 ms·
Right, but often you should punt your retry logic. You already need to handle process crash at high level, so you already want some kind of restart/backoff in y
by lmm 5y ago
Right, but often you should punt your retry logic. You already need to handle process crash at high level, so you already want some kind of restart/backoff in your supervisor. Unless there's something specific that you want to do differently for this particular kind of failure, having separate retry/backoff logic for each kind of failure is just clutter.
- jolux 5y agoYou should definitely handle the crash at a high level, but that’s not the same as punting on it!
- lmm 5y agoNot putting any explicit handling for failed requests and instead allowing the current process to crash, knowing that the supervisor's handling will do the right thing in that case, isn't that punting it? I'm not fluent in American but doesn't punting pretty much mean kicking something far away?
- jolux 5y agoIt means giving up, more or less. The default handling that a supervisor provides is probably not sufficient for a looping failure, was the point.