Overload Protection

Keep a service producing useful work at twice its capacity instead of collapsing. Find the first resource to saturate, cap in-flight work at the entrance with Little's law (throughput times latency, not a default pool of 200 threads), bound queues by waiting time and drop requests older than the caller's deadline, reject fast with 503 and Retry-After, shed by priority class, and plan for metastable failure where backlog keeps the system down. Proven by an open-loop step test at 1x, 1.5x, 2x and 5x. Use whenever someone says "latency spikes and never recovers after the burst", "the queue grows and everything times out", "add load shedding" or "falls over when traffic doubles". Not for sizing for a peak (capacity-planning), caller-side behaviour (timeout-and-retry-budget), consumer backpressure (event-driven-reliability), per-caller quotas (rate-limiter-design).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit f8e8ce90f4

Frequently asked questions

npx get-skill add greenblacked/overload-protection