πŸͺ TechCookies
HomeDSASystem DesignMy Progress
Free
Log inStart free
TechCookies β€” Practice Β· Learn Β· PrepareTechCookies β€” Practice Β· Learn Β· Prepare
ConceptsPracticeSD challengesPricingPrivacyTermsContact
Β© 2026 TechCookies
πŸ“šGraceful Degradation and FallbacksFree
6 sections
~30 min total
23 quick quizzes
4 SD challenges linked
0 of 6 doneΒ·~25 min left
Conceptsβ€ΊGraceful Degradation and Fallbacksβ€ΊWhat Is Graceful Degradation?
0 / 6
0%
6 sections~30 min
1
What Is Graceful Degradation?
Provide partial functionality when failures occur rather than failing completely or showing error pages
ReadQuiz
~5 min
β‹―
Serving Stale Data vs Failing Hard
Decide whether to serve outdated cached data or fail with error when primary source unavailable
ReadQuizCode
~5 min
β‹―
Fallback Content: Cached Responses, Defaults, Read-Only Mode
Implement layered fallbacks using caches, sensible defaults, and read-only mode during degradation
ReadQuizCode
~5 min
β‹―
Feature Flags as a Degradation Control Plane
Use runtime toggles to switch between live and degraded paths instantly without code deployment
ReadQuizCode
~5 min
β‹―
Relevant System Design Questions
Apply degradation patterns to real-world scenarios like high-traffic sports APIs and critical services
ReadQuizCode
~5 min
β‹―
Practice test
23 questions
~8 min
Section 1 of 6ReadQuick quiz
What Is Graceful Degradation?
Provide partial functionality when failures occur rather than failing completely or showing error pages
~5 min read
3 quick quizzes

Graceful degradation means your system provides partial functionality when something goes wrong, rather than failing completely. Think of it like a car losing one headlight β€” it is not ideal, but you can still drive. Compare that to the engine dying β€” you cannot move at all.

Two ends of the spectrum:

ApproachWhat Happens on FailureUser Experience
Fail HardSystem returns an error or crashesUser sees an error page or gets no response
Graceful DegradationSystem serves reduced functionalityUser gets partial or stale data, but can still use the app

Simple analogy:

Imagine a coffee shop. If the espresso machine breaks:

  • Fail hard: Close the entire shop. No coffee for anyone.
  • Graceful degradation: Offer drip coffee and tea. Not perfect, but customers are served.

β˜‘ Quick check 1/3
Which scenario best exemplifies graceful degradation?
AE-commerce site shows product list from cache when price service fails
BPayment gateway returns 500 error immediately when database is unavailable
CNews app closes entirely when network is slow
DUser profile page displays HTTP 503 Service Unavailable error
Answer the quiz to continue
Notes
πŸ”
Loading…