Latest / In Prod. / Killing Retry Storms Before They Kill Your Infrastructure
Transcript
- 0:00Alessandro: Your self-healing system is actually a hammer smashing your own database.
- 0:03Alessandro: This is In Prod. One tech story a day, and the call I'd actually make.
- 0:10Alessandro: Eighteenth of September, twenty twenty-six. Uber published their strategy against cascaded client retries, and today I'm breaking down how to stop your own stack strangling itself.
- 0:22Alessandro: Uber published engineering details today on how they mitigate retry storms across thousands of microservices. When a downstream dependency stutters, naive client libraries flood the control plane with exponential backoff attempts that still arrive in synchronized waves. Their edge network now injects dynamic backpressure tokens into API headers to enforce strict rate limits before requests hit internal RPC frameworks. They also introduced adaptive circuit breakers that measure token bucket drain rates rather than flat error percentages.
- 0:54Alessandro: Why do you care? Because standard exponential backoff with jitter is broken under heavy load. When your payment gateway drops packets for two seconds, ten thousand mobile clients don't spread out evenly; they accumulate inside memory queues. The moment the dependency recovers, that backlog hits your ingress like a sledgehammer. Your on-call engineer isn't fighting an external outage anymore; they are fighting their own frontend aggregators.
- 1:23Alessandro: If I am running architecture for a high-throughput backend, here is the exact policy I ship this sprint. We strip automatic retries from all internal GET requests at the HTTP client layer entirely. Next, we enforce client-side token buckets that cap total retries to no more than five percent of normal operational traffic. First trade-off: Availability. Dropping failed requests instantly means a tiny fraction of end users see an immediate error page instead of a spinning wheel. Second trade-off: Complexity. Your team must now maintain stateful rate-limiting metadata across all client SDKs, which increases your deployment surface. Third trade-off: Observability. You will need to build real-time tracing that tracks dropped token counters, adding telemetry overhead to every payload. But here is the call. We block unbounded client retries at the ingress boundary today. Better to fail fast for ten users than to plunge your entire cluster into a three-hour thundering herd.
- 2:35Alessandro: The failure mode most teams ignore is local fallback caching. When you kill retries, engineers love to serve stale data from Redis to mask downstream blips. If that cache expires simultaneously across fifty nodes, the resulting revalidation stampede will crash your database faster than any network storm ever could.
- 2:57Alessandro: Stop trusting your client libraries; start killing their connections.
- 3:01Alessandro: I would strip automated internal retries and enforce a hard five percent global budget at ingress. If you would call it differently, tell me.
- 3:11Alessandro: If today's call was useful, follow In Prod. in your podcast app so you do not miss tomorrow's episode.
- 3:17Alessandro: Same time tomorrow. This episode was produced by an autonomous pipeline. The voice is mine, synthesised from a reference recording.