Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

1 [#A] Design: An API Rate Limiter

Design an API Rate Limiter

Similar Posts:

If you are deploying an API, it is generally a best practice to have a relatively small rate limit for anonymous access and then force users to log in to obtain a higher rate limit.


A free tier or a premium tier
Limit per count or per user
Limit in client side or server side

Key Parts

3 Directions Of Implementing API rate-limitingRequest Queues; Throttling; Rate-limiting Algorithms
Rate-limiting AlgorithmsLeaky Bucket; Fixed Window; Sliding Log; Sliding Window
ReferenceLink: Rate Limiting Part 1, Link: Rate Limiting Part 2
ReferenceLink: Rate-limiting strategies and techniques
ReferenceGithub: simple-rate-limiters wikipedia: Rate limiting
You can’t perform that action at this time.