Search DistillSys

Find a concept

Type at least two characters to search lessons, designs, papers, and interview prep.

Reliabilityintermediate5 min read

Load Shedding

Reject lower-value work early so critical operations remain healthy during overload.

2–5 minute refresher
Mental model

Finite safe capacity → admit valuable work → reject before saturation

30second
refresher
Load shedding rejects, defers, samples, or degrades work when demand exceeds safe capacity. Admission decisions happen before expensive resources are consumed.

What problem does it solve?

Once a service is saturated, latency rises, callers time out and retry, queues grow, and useful throughput can collapse.

How it works

  1. Identify the saturation signal and safe concurrency envelope.
  2. Classify requests by priority, cost, deadline, and tenant.
  3. Reject early with a retryable or degraded response.
  4. Reserve capacity for critical operations and recovery probes.
  5. Ramp admission back gradually after pressure falls.
Decision guide

Key trade-offs

ChoiceWhat you gainWhat it costs
Early rejectionPreserve latency and throughputVisible errors
Priority queuesProtect critical journeysStarvation risk
Graceful degradationRetain partial valueMore product states to operate
What happens if?

Every caller retries rejected work immediately

Shedding becomes a synchronized retry storm. Return backoff guidance, apply jitter and retry budgets, and make overload responses explicit enough that clients do not treat them as ordinary transient errors.

Where it appears

  • API admission control
  • Database connection pools
  • Search result degradation
  • Brownout patterns
Senior interview modeWhere should load shedding happen?Show answer
As early as possible where request cost, priority, and system saturation are known—before queues, database connections, or downstream calls are consumed.
#overload#admission control#priorities#degradation