tower-rate-limit-redis

Crates.iotower-rate-limit-redis
lib.rstower-rate-limit-redis
version1.0.0
created_at2025-09-24 09:25:31.276494+00
updated_at2025-09-24 09:25:31.276494+00
descriptionA rate-limiting middleware for Tower that uses Redis as the data store
homepage
repositoryhttps://sr.ht/~liliace/tower-rate-limit-redis/
max_upload_size
id1852844
size98,930
Coco (cocoliliace)

documentation

README

tower-rate-limit-redis

crates.io Documentation

A rate-limiting middleware for Tower that uses Redis as the data store.

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 crate

  • 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