-
Notifications
You must be signed in to change notification settings - Fork 1
Description
add module to support back-off request
-
Initial Retry: When a request fails, the client initiates a retry immediately or after a short delay.
-
Exponential Increase: If the retry fails again, the client increases the waiting time before the next retry exponentially. For example, the client might wait 1 second after the first failure, then 2 seconds after the second failure, 4 seconds after the third failure, and so on.
-
Maximum Backoff Time: There is usually a maximum limit to the backoff time. After reaching this limit, subsequent retries may use the maximum backoff time.
-
Jitter: Some implementations also include jitter to add a random factor to the waiting time, which helps avoid synchronization effects when multiple clients are retrying simultaneously.