Rate limiting (reject with 429)
Count requests per client and reject those over the limit.
Strengths
- Rejection is cheap and stops abuse at the edge.
- HTTP 429 with Retry-After is a standard contract.[1] RFC 6585: Additional HTTP Status Codes, Primary, Not yet verified by an editor
Weaknesses
- Clients see errors during bursts.
Choose it when
- Untrusted traffic, abuse protection, published per-plan limits.[3] Rate Limiting pattern, Secondary, Not yet verified by an editor
Limitations
- Doesn’t smooth load for legitimate bursts by itself.