CONTAINER · IN API GATEWAY
Rate-limit store
Per-client rate-limit counters
Rate-limit store
A Redis instance that holds per-client request counters for the Rate limiter.
- Data: one counter per client and time window, with a TTL equal to the window. Nothing else is stored here.
- Durability: none needed. If Redis restarts, counters reset and clients briefly get a full quota again. That is an accepted trade-off.
- Failure mode: if Redis is unreachable, the limiter fails open and lets requests through, so an outage of the store never takes the API down.
It is separate from the User Service's Session cache, so a burst of rate-limit writes cannot evict sessions.
Edit ./docs/containers/rate_limit_store.md to change this text.