Crate throttle

source ·
Expand description

This crate implements a throttling API based on a generic cell rate algorithm. The implementation uses an in-memory store, but can be adjusted in the future to support using a redis-cell equipped redis server to share the throttles among multiple machines.

Modules§

Structs§

Enums§

Functions§

  • It is very important for key to be used with the same limit, period and max_burst values in order to produce meaningful results.