Throttles Service
A configurable rate limiting service for Rust applications, providing IP-based request throttling with cache-backed storage.
Features
- 🚦 IP-based request throttling
- ⏱️ Configurable time windows
- 🔢 Multiple limit tiers
- 💾 Cache-backed storage (memory or persistent)
- ⚡ Optional async support
Installation
Add to your Cargo.toml:
[]
= "0.1"
Usage
Basic Example
use Duration;
use ThrottlesService;
use Cache;
API Reference
Full documentation is available on docs.rs.
Contributing
Contributions are welcome! Please open an issue or submit a PR for:
- New features
- Performance improvements
- Bug fixes
License
Dual-licensed under MIT or Apache 2.0 at your option.