Try
↑ ↓ move↵ openesc close

Curriculum · Module 04, Rate Limiting and Backpressure

Lesson 2 · 7 topics · 38 min · Intermediate · 0/7 done

Load shedding and backpressure

A server with more work than capacity either sheds load or collapses. Which queue policies keep it useful, and how it tells callers to slow down.

What each topic covers

  • When demand passes capacity, a queue turns the extra load into delay, and delay turns finished work into wasted work.
  • Unbounded, bounded, deadline-aware and adaptive LIFO queues, and how a server tells callers to slow down.
  • Push one server to 1.5 times capacity under four queue policies and watch goodput, queue delay and the collapse.
  • Measured goodput under overload, how queue size and client timeout can undo a bound, and what each policy gives up.
  • Tag every request with a criticality, drop the lowest class first, and use hysteresis so shedding does not flap.
  • Adaptive throttling lets each client estimate how much a backend is accepting and refuse the rest locally, before it costs the backend anything.
  • Three checks on a busy but useless server, an oversized queue bound and Retry-After, plus the papers behind shedding.

Topics

  1. 1A full server gets worse, not just slower4 min
  2. 2Four queues and four signals6 min
  3. 3Overload one server four ways7 min
  4. 4A queue bound is only as good as its timeout6 min
  5. 5Deciding who gets shed first6 min
  6. 6Let the client throttle itself5 min
  7. 7Reading an overloaded dashboard4 min

Practise this lesson

13 interview questions on load shedding and backpressure, with worked answers and sources.

Practise these

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms