Curriculum · Module 04, Rate Limiting and Backpressure
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
Practise this lesson
13 interview questions on load shedding and backpressure, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms