Design Retry Budgets to Prevent Retry Storms Between Microservices
Last updated: November 29, 2026
Quick Overview
Design a retry policy and enforcement mechanism for an internal RPC framework so that when a backend degrades, client retries do not multiply load and turn a partial outage into a full one.
0
0
0 solved
Design a retry policy and enforcement mechanism for an internal RPC framework so that when a backend degrades, client retries do not multiply load and turn a partial outage into a full one.
Google's internal RPC stack and SRE practices make retry discipline a recurring interview topic. The interviewer wants to see you quantify retry amplification across layers and propose budgets, backoff, and hedging rules that are enforced by the framework rather than by each team.
What the Interviewer Expects
- Show how retries amplify load across a call chain
- Propose per-client retry budgets as a fraction of successful requests
- Use exponential backoff with jitter and respect deadlines
- Distinguish retryable errors from non-retryable ones
- Discuss hedged requests and when they are safe
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do hedged requests differ from retries, and how do you cap them?
- Which layer in a five-hop chain should retry?
- How do retries interact with non-idempotent writes?
- How would you roll this out across thousands of services?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Applies to every client in the RPC library by default, with per-service overrides.
- Under a failure where a backend rejects 50 percent of requests, total load on it should rise by at most about 10 ...
High-Level Design
The RPC client library includes a retry controller per (client, target service). It classifies each failure, checks the budget, computes backoff, and either retries or returns the error. Service o...