Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add back-off request #6

Open
muhfaris opened this issue Nov 12, 2023 · 0 comments
Open

feat: add back-off request #6

muhfaris opened this issue Nov 12, 2023 · 0 comments

Comments

@muhfaris
Copy link
Owner

add module to support back-off request

  1. Initial Retry: When a request fails, the client initiates a retry immediately or after a short delay.

  2. 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.

  3. 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.

  4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant