Lesson 22 of 30
Any real system fails partially, sometimes. The system design question isn't whether a dependency will fail — it's whether the rest of the app keeps working, and how gracefully, when it does.
13 min read
Every option explains itself — why the right one is right, and why each wrong one is wrong. Miss one and it comes back later on a spaced-repetition schedule.
Question 1 of 3
A dependency starts failing intermittently. Why is exponential backoff a better retry strategy than retrying immediately at full speed?
Hints without spoilers, and a plain explanation of why a wrong answer was wrong — answered only from this lesson. Free account, no card.
Sign up freeWhat interviewers actually ask about this, and what a strong answer has to cover.
A strong answer covers
Likely follow-ups
A frontend system design answer that only covers the happy path is an incomplete answer. Interviewers listen for whether a candidate treats failure as a first-class part of the design, not an afterthought bolted on at the end. Three patterns cover most of what a frontend system needs to say here:
One widget on a dashboard fetches from an analytics service that's currently degraded. A naive implementation retries on every render and every user interaction, throws an unhandled error that crashes the whole page, and gives the user zero explanation. A resilient design: wrap the widget in an error boundary so a failure there shows "Analytics unavailable" in that one card while the rest of the dashboard keeps rendering normally; retry the fetch with exponential backoff a bounded number of times; and if failures keep happening past a threshold, trip a simple client-side circuit breaker — stop issuing new requests to that endpoint for, say, 60 seconds, and show a static "temporarily unavailable" state instead of silently retrying forever.
Almost any "design X" prompt eventually gets the follow-up "what happens if that API call fails?" — naming retry-with-backoff, scoped graceful degradation, and a simple circuit-breaker cooldown together is the concrete, complete answer.