weighted_rate_limiter

Crates.ioweighted_rate_limiter
lib.rsweighted_rate_limiter
version0.2.0
sourcesrc
created_at2024-04-06 16:23:29.437293
updated_at2024-07-29 11:26:07.477078
descriptionA weighted rate limiter
homepage
repositoryhttps://github.com/BenD0G/weighted_rate_limiter
max_upload_size
id1198393
size45,972
(BenD0G)

documentation

README

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.

Commit count: 21

cargo fmt