AdaptiveLoadShedding
/adaptive-load-shedding Tier 3
Priority-tiered load shedding based on live system stats (CPU percentage + goroutine count). Lower-priority traffic is dropped earlier than critical traffic. The server actively sheds load to preserve stability instead of failing slowly.
Signature
action contractfunc AdaptiveLoadShedding[Req, Res any](stats SystemStats, cfg LoadShedConfig, p Priority) Middleware[Req, Res]