BolEnglishLearn · Play · Win
Login

🛡️ System Design · System Building Blocks

🛡️

Fault Tolerance

Building BlockAdvancedModule 3

Continue or degrade safely when part of the system fails.

A single dependency should not unnecessarily take down everything.

💡 In practice

If recommendations fail, the shopping cart can still work.

🖼️ CONCEPT PICTURE
A picture to help remember Fault Tolerance
If recommendations fail, the shopping cart can still work.

💡 Like a house with its lights on a separate fuse from the oven: if the oven trips, you are not left in the dark.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

In any real system, parts will fail: networks drop, services crash, databases slow down. Fault tolerance means a failure in one piece turns into a small, contained problem instead of a total outage. It is the difference between losing one feature for a moment and losing the whole product.

🛠️ How to achieve it

1
Isolate dependencies
Keep a failure in one service from spreading, so the rest of the system keeps running.
2
Degrade gracefully
When a non-critical feature fails, hide or skip it instead of crashing the whole page.
3
Set timeouts and retries
Give calls a time limit and retry sensibly, so a slow service does not hang everything.
4
Have a fallback
Provide a safe default, like a cached or empty result, when a dependency is unavailable.

⚠️ Signs of trouble

  • •One failing service takes the entire application down.
  • •A slow dependency makes every request hang.
  • •There is no fallback when a service is unavailable.
  • •A retry storm makes a struggling service fail even harder.
⚠️ Common mistake: Letting a non-critical dependency crash the whole page when it fails. Isolate it and degrade gracefully with a timeout and a safe fallback.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. What does fault tolerance aim to do?

    Answer: Keep working or degrade safely when a part fails

    Failures are inevitable, so the goal is to contain them rather than let them become total outages.

  2. 2. The recommendations service fails. What is the fault-tolerant result?

    Answer: The shopping cart still works without recommendations

    A non-critical feature failing should be contained so the core experience keeps working.

  3. 3. Why set timeouts on calls to other services?

    Answer: So a slow service does not make every request hang

    A timeout caps the wait, so one struggling dependency cannot freeze the whole system.

🔑 Key terms

Graceful degradation
Losing a feature safely instead of the whole system.
Timeout
A limit on how long to wait for a response.
Fallback
A safe default used when a dependency is down.
Circuit breaker
A guard that stops calling a failing service for a while.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →