Expand description
Limit resolution: derive a key’s {rate, burst} from the JWT itself or from
an external service, on top of the static config profiles.
The resolution chain is jwt → service → rule profile → default. JWT
resolution is synchronous (the validated claims ride on the request). Service
resolution never blocks the request path: a lookup is cached and refreshed in
the background (stale-while-revalidate), so a request either uses a cached
limit or falls through to the static profile while the fetch happens.
Structs§
- JwtLimits
- Compiled JWT-based limit resolution: the claim names to read from the token.
- Limit
Service - External limit-resolution service with an async, non-blocking cache.