ratelimit

Crates.ioratelimit
lib.rsratelimit
version0.9.1
sourcesrc
created_at2015-10-02 17:47:18.892403
updated_at2024-04-15 17:51:04.167651
descriptionA simple ratelimiter that can be shared between threads
homepagehttps://github.com/pelikan-io/rustcommon/ratelimit
repositoryhttps://github.com/pelikan-io/rustcommon
max_upload_size
id3145
size32,691
Pelikan Publishers (github:pelikan-io:pelikan-publishers)

documentation

README

ratelimit

A simple ratelimiter that can be shared between threads.

Overview

This crate provides a ratelimiter that is based around a token bucket. It can be used in cases where you need to control the rate of some actions or where you may need to use admission control.

Usage

The API documentation of this library can be found at docs.rs/ratelimit.

Features

  • Simple token bucket ratelimiter for ratelimiting and admission control
  • Thread-safe so it can be used as a global ratelimiter for multi-threaded programs
  • Allows runtime reconfiguration that can be used to alter the effective ratelimit or other aspects of its behavior

License

Licensed under either of

at your option.

Support

Create a new issue on GitHub.

Authors

A full list of contributors can be found on GitHub.

Commit count: 218

cargo fmt