Skip to content

RateLimiter + Retry Mechanism #4

@KSemenenko

Description

@KSemenenko

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions