reliabilityincident.io ↗

Interning at incident.io: Rate Limiting, Resiliently

incident.io's rate limiter failed open whenever Valkey went down. The fix shipped gate by gate, low-traffic first, and still turned up a bug: limit × pod count.

incident.io · · 10m read

Circle, cream card and pill in amber, teal and charcoal

Why we picked it · the editor's summary

incident.io's rate limiter failed open when its Valkey store went down, so a Valkey outage meant no rate limiting at all. Anthony, an intern, gave each pod an in-memory top-k of the busiest gates so it could enforce limits on its own. It shipped to low-risk gates first, then busier ones, then the high-cardinality gates; before it became the default, the team took Valkey down in staging and sent 1,000 requests a second at a test gate. A few weeks later they found the cost: every pod enforced the full limit, so the real limit was limit times pod count, fixed by dividing by the live pod count. If you add a local fallback to a shared limiter, test the arithmetic across replicas, not only the failover.

Read on incident.io ↗

Comments

Loading comments…