3 ms·
> it’s very effective to add this information to the error context: is it a permanent failure (eg validation) or a retryable error The discussion was specifica
by clarry 7y ago
> it’s very effective to add this information to the error context: is it a permanent failure (eg validation) or a retryable error
The discussion was specifically about UNKNOWN errors, i.e. you sent a message but never got a reply back. You don't know whether it was a validation failure or temporary hiccup. For all you know, it's possible the message was received and processed correctly but the response never made it back.
How to handle these unknowns is always going to be case by case. Some combination of retry and give up works for most cases, but there is no silver bullet and usually you have to think hard about the consequences of 1) retrying 2) giving up thinking the request failed even though it actually (silently) succeeded.