You need to implement graceful degradation for an e-commerce product page.
IntermediateScenarioReleases & Reliability Patterns
Answer
Situation read → Identify what is essential (product info, price, add to cart) vs optional (recommendations, reviews).
What I'd do →
- Classify dependencies as hard or soft.
- For soft ones, set short timeouts and render the page without them on failure.
- For prices, serve cached values with a freshness limit if the pricing service is down.
- Add feature flags to disable expensive components under load.
- Test with chaos experiments.
Why → Users can still buy even if some features are missing.
Interview tip → Talk about hard vs soft dependencies.
More on Releases & Reliability Patterns
A canary at 10% shows a 0.3% higher error rate than stable. Promote or roll back?IntermediateA downstream service is slow, and your service's retries are making it worse.IntermediateYou need to roll out a risky database schema change with zero downtime.AdvancedA feature flag was turned on for 100% of users and caused errors. How do you handle it and prevent recurrence?BeginnerYour service calls five dependencies sequentially, and total latency is too high.IntermediateA third-party API you depend on has rate limits, and you're hitting them during peaks.Beginner