Skip to content

BenD0G/weighted_rate_limiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weighted Rate Limiter

Some API's have usage limits where different endpoints or actions have different costs - this is often implemented as the caller having a certain amount of weight that they are allowed to use per a given time period. This crate allows you to implement a rate limiter that enforces these limits - more specifically by queueing up futures that will be executed when the weight becomes available.

See docs.rs for usage.

To Note

This crate is very new, and has not been thoroughly tested.

About

A weighted rate-limiter implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages