salvo-rate-limiter
Installation
SKILL.md
Salvo Rate Limiting
[dependencies]
salvo = { version = "0.94.0", features = ["rate-limiter"] }
Components
A RateLimiter combines four pieces:
| Component | Purpose | Built-ins |
|---|---|---|
RateIssuer |
Identify client | RemoteIpIssuer, TrustedProxyIssuer |
RateGuard |
Limiting algorithm | FixedGuard (needs BasicQuota), SlidingGuard (needs CelledQuota) |
RateStore |
Persist state | MokaStore |
QuotaGetter |
Lookup quota for key | any Clone Quota, or custom impl |