throttler
throttler copied to clipboard
use `sliding window` algorithm for rate limiting
Is there an existing issue that is already proposing this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe it
it seems to me that in such a critical module there is no place to use setTimeout
Describe the solution you'd like
implementation of the sliding window
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
using algorithm that does not require a lot of memory and without using setTimeout