What is load shedding, and why is rejecting a request early better than queueing it?
Sketch your own answer first, then compare it with the one below.
A strong answer
Load shedding means refusing or dropping some requests on purpose when demand is above capacity, so that the ones you accept still finish in time.
A queue turns excess load into delay. Each request waits behind all the ones before it, and past a point the wait is longer than the caller is willing to stay. The server then spends its time finishing requests that nobody is waiting for. It is busy and useful to no one.
Rejecting early does three things. The caller learns at once and can back off or try elsewhere. The server spends almost nothing on the rejected request. And the requests it did accept are not delayed by a long queue.
What gets shed is a policy choice: the newest requests, the least important ones, or those that can no longer meet their deadline. Shedding does not create capacity. It only chooses how gracefully you fail.
Sources
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (2016). Site Reliability Engineering, chapter 22, Addressing Cascading Failures.