harshraj22 / harshraj22/Dis-Sim

Improve Subscription Based Rate Limiter

Open
#62 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
10
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Current implementation (sliding logs) stores the timestamps for each requests. This would eat up a lot of memory if the window length is large and so is the number of allowed requests per window length.

Consider using better algorithms like token bucket approach and leaky bucket approach

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.