System Design: Rate Limiter
Let's understand the basic details to design a rate limiter.
What is a rate limiter?
Rate limiter, as the name suggests, puts a limit on the number of requests a service fulfills. It throttles those requests that cross the predefined limit. For example, a client using a particular service’s API that is configured to allow 500 requests per minute would block further incoming requests for the client if the number of requests the client makes exceeds that limit.
Why do we need a rate-limiter?
A rate limiter is generally used as a defensive layer for services to avoid their excessive usage-whether intended or unintended. It also protects services against abusive behaviors targeting the application layer like
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy