Standalone conceptMechanismChapter III · Operations · Building block 11 of 17

Load Shedding

Incoming work can exceed sustainable processing capacity.

  1. Overload signalOverload signal: Utilization signals scarce capacity.
  2. SelectionSelection: Work is admitted or dropped by priority.
  3. ProtectionProtection: Remaining capacity stays available for core work.

Context

Why this is important

Preserve core capacity during overload.

Preserve core capacity during overload.

Shop example · Mapping

Load Shedding: inspect the decision

The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. Under heavy shop load, the search platform approaches its tested limit. The entry point rejects extra preview queries with a clear overload response, while order confirmation and payment status retain priority. The API ends waiting optional requests early instead of holding them in an unbounded queue. Dashboards measure rejection rate, latency, and successful core orders. As the queue drains, the system resumes accepting previews.

This is how you read the picture

  1. Overload signal Overload signal
  2. Selection Selection
  3. Protection Protection
Load Shedding: inspect the decision
ConceptMeaningReview question
Overload signalUtilization signals scarce capacity.Which work is rejected first under overload?
SelectionWork is admitted or dropped by priority.Where should the overload threshold be determined?
ProtectionRemaining capacity stays available for core work.What consequence must the team check for shed work?
Die Auswahlregel sollte Geschäftspriorität, bereits belegte Arbeit und Wiederholungsverhalten berücksichtigen. Eine Ablehnung ist sichtbar und möglichst steuerbar; sonst erzeugen Clients mit sofortigen Wiederholungen neue Last. Use the questions in the second column to test this scenario.

Benefits & limitations

Helps if:

  • Preserve core capacity during overload.
  • Check overload thresholds and priorities at the ingress boundary.

Boundaries

  • Incorrect priorities can shed valuable work.
  • Shedding at the wrong ingress point can lose paid work or amplify retries.

In practice

  1. Derive the rejection threshold from the tested search-platform capacity and define which preview requests are shed first as the queue grows.
  2. Generate load above the threshold and check that rejection happens early at ingress while order confirmation and payment status still receive responses.
  3. Measure queue length, rejection rate, core orders, and recovery together; verify previews return only after sustained relief.
Read the detailed explanation

Load shedding drops or rejects work when a system reaches sustainable capacity. It protects remaining resources by filtering lower-priority requests early.

The selection rule should consider business priority, work already in flight, and retry behavior. Rejection should be visible and, where possible, actionable; otherwise clients may add fresh load through immediate retries.

The shop example uses the existing shared database and seven modules. Any added service or deployment model is a hypothetical extension. Under heavy shop load, the search platform approaches its tested limit. The entry point rejects extra preview queries with a clear overload response, while order confirmation and payment status retain priority. The API ends waiting optional requests early instead of holding them in an unbounded queue. Dashboards measure rejection rate, latency, and successful core orders. As the queue drains, the system resumes accepting previews. rate limit load shedding and rate limiting help compare this decision with adjacent concerns.

Check your understanding

Test yourself in three stages

  1. ReadingCheck in the picture

    Which work is rejected first under overload?

    View the solution with justification

    Preview queries; order confirmations keep higher priority.

  2. ApplyingTransferred to a new situation

    Where should the overload threshold be determined?

    View the solution with justification

    At the bottleneck or ingress point before queues continue to grow.

  3. EvaluateWeighing an alternative

    What consequence must the team check for shed work?

    View the solution with justification

    Retries, user messaging, and possible loss of already accepted work.

Continue on the learning path

Next in Runtime & operations: Rate Limiting.

17 Building blocks

Continue withRate Limiting