- Token bucket rate limiting algorithm
- Leaking bucket rate limiting algorithm
- Fixed window counter rate limiting algorithm
- Sliding window log rate limiting algorithm
- Sliding window counter rate limiting algorithm
Storing the counters of all the algorithms
- Using database is not a good idea due to slowness of disk access.
- In-memory cache makes sense because it is fast and supports time-based expiration strategy. Eg: Redis
