Version: 6.X
Retry Handling
In Error Handling, we already found out that requests can fail. We provide a way to automatically retry requests via retry handlers. Note that, by default, no retries are performed.
IRetryHandler
only needs one function:
#
SimpleRetryHandlerA SimpleRetryHandler
is included, which contains the following retry logic:
- Retries the (configurable) status codes: 500, 502, 503 and 429.
RetryAfter
- Specifies the delay between retried calls.RetryTimes
- Specifies the maxiumum amount of performed retries per call.TooManyRequestsConsumesARetry
- Whether a failure of type "Too Many Requests" should use up one of the retry attempts.