tower-rate-limit-redis

Crates.iotower-rate-limit-redis
lib.rstower-rate-limit-redis
version1.0.2
created_at2025-09-24 09:25:31.276494+00
updated_at2025-10-06 15:31:58.848127+00
descriptionA Redis-backed rate-limiting middleware for Tower using redis-rs
homepage
repositoryhttps://sr.ht/~liliace/tower-rate-limit-redis/
max_upload_size
id1852844
size98,832
Coco (cocoliliace)

documentation

README

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.

Commit count: 0

cargo fmt