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

RateLimiter + Retry Mechanism #4

Open
KSemenenko opened this issue Mar 12, 2023 · 0 comments
Open

RateLimiter + Retry Mechanism #4

KSemenenko opened this issue Mar 12, 2023 · 0 comments

Comments

@KSemenenko
Copy link
Member

Rate Limiter:

  1. A rate limiter is a mechanism that helps to limit the number of requests that can be sent to a server in a given time period.
  2. The rate limiter should allow you to specify a maximum number of requests that can be sent within a certain time period, such as 10 requests per minute.
  3. When the rate limit is reached, any further requests should be queued and sent when the rate limit allows.
  4. The rate limiter should also provide feedback to the user when a request is being queued or rejected due to exceeding the rate limit.

Retry Mechanism:

  1. A retry mechanism is a mechanism that helps to retry a request in case of failure, such as a network error or a server error.
  2. The retry mechanism should allow you to specify a maximum number of retries and a retry interval, such as retrying up to 3 times with a 5-second interval between retries.
  3. The retry mechanism should also allow you to specify the status codes that should trigger a retry, such as 500 Internal Server Error.
  4. The retry mechanism should provide feedback to the user when a retry is being attempted, and when retries have been exhausted.
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