Expand description
Backpressure — limits concurrent active sessions.
When the coordinator reaches max_active_sessions, new session
creation requests are rejected with BackpressureError::AtCapacity.
This protects against memory exhaustion under load.
Existing sessions continue to be processed; only new ones are rejected until capacity frees up.
Structs§
- Active
Slot - RAII guard for an acquired backpressure slot. When dropped, the slot is automatically released.
- Backpressure
Config - Configuration for backpressure.
- Backpressure
Gate - Backpressure gate — tracks active sessions and enforces the limit.
Enums§
- Backpressure
Error - Errors from backpressure enforcement.