Your service calls five dependencies sequentially, and total latency is too high.
IntermediateScenarioReleases & Reliability Patterns
Answer
Situation read → Sequential calls add up latency, and each adds failure probability.
What I'd do →
- Identify calls that can run in parallel and do them concurrently.
- Cache results of slow or rarely changing calls.
- Make non-critical calls async or optional with short timeouts and fallbacks.
- Set per-call timeouts within the overall deadline.
Why → Parallelism and caching reduce latency; soft dependencies reduce failure impact.
Interview tip → Mention that total timeout must exceed the sum only for sequential calls.
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?BeginnerA third-party API you depend on has rate limits, and you're hitting them during peaks.BeginnerA canary deploy passed analysis, but the full rollout caused errors at 100%.Advanced