Repository navigation
Should backend services retry failed requests automatically? #6924
Replies: 1 comment
|
A useful default is to make retry policy explicit at the boundary that calls each dependency, then check that an SDK or gateway isn't independently multiplying those attempts. Two layers making three attempts each can produce nine calls. Put an overall deadline and attempt limit around the operation, not just a timeout on each attempt. Retry only failures the dependency documents as transient, such as some timeouts, 429s or 5xx responses; honor In Go, pass |
Uh oh!
There was an error while loading. Please reload this page.
Should backend services automatically retry failed requests, or should retries be left to the caller?
Retries are commonly used to handle temporary failures in distributed systems. However, they can also introduce unexpected problems, especially when multiple services retry the same request.
For example:
I'd be interested in hearing how people handle retries in production systems, particularly in Go services.
Where should retry logic live, and when should we avoid retrying altogether?
All reactions