What is the difference between rate limiting and load shedding?
IntermediateConceptRelease Engineering & Reliability Patterns
Answer
- Rate limiting caps how many requests a client, API key or tenant can make (for example 100 requests per second per key), returning 429. It enforces fairness and protects against abuse or bugs in one client.
- Load shedding drops excess work when the service itself is near capacity, regardless of who sent it, returning 503 quickly, ideally dropping low-priority requests first.
Both keep the service within capacity so it can serve the remaining requests within SLO, instead of everyone timing out.
More on Release Engineering & Reliability Patterns
Why are releases the biggest source of incidents, and what does SRE do about it?BeginnerWhat is a canary release?BeginnerWhat is progressive delivery?IntermediateShow an Argo Rollouts canary with a Prometheus analysis.AdvancedBlue-green vs canary: when do you choose each?IntermediateWhat are feature flags and how do they improve reliability?Beginner