tower-rate-limit-redis 1.0.2

A Redis-backed rate-limiting middleware for Tower using redis-rs
Documentation

tower-rate-limit-redis

crates.io Documentation

A Redis-backed rate-limiting middleware for Tower using redis-rs.

Development setup

podman is required to spawn Redis servers for tests, which run on the port set by the STARTING_REDIS_PORT environment variable and the 16 subsequent ports.

Similar crates

  • tower-rate-limit-fred: the same crate but with Fred instead of redis-rs
  • tower-governor: uses the same algorithm but stores data in application memory. You might prefer this if your application runs on a single node.

License

This project is licensed under MPL-2.0, except for scripts/rate_limit.lua, which is licensed under MIT.