tower-rate-limit-fred
A Redis-backed rate-limiting middleware for Tower using Fred.
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 9 subsequent ports.
Similar crates
- tower-rate-limit-redis: the same crate but with redis-rs instead of Fred
- 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.