Bird
0
0

Netflix wants to add a new microservice that depends on multiple existing services. What design pattern should be used to avoid cascading failures?

hard📝 Trade-off Q9 of 15
Microservices - Real-World Architecture Case Studies
Netflix wants to add a new microservice that depends on multiple existing services. What design pattern should be used to avoid cascading failures?
AUse Hystrix circuit breakers with fallback methods
BDirect synchronous calls without fallback
CDisable Eureka to reduce overhead
DUse a single monolithic service instead
Step-by-Step Solution
Solution:
  1. Step 1: Understand cascading failure risks

    Calling multiple services synchronously can cause failures to cascade if one service fails.
  2. Step 2: Apply Hystrix pattern

    Hystrix circuit breakers with fallback methods prevent cascading failures by isolating faults and providing alternatives.
  3. Final Answer:

    Use Hystrix circuit breakers with fallback methods -> Option A
  4. Quick Check:

    Cascading failure prevention = Hystrix with fallback [OK]
Quick Trick: Circuit breakers with fallback stop failure chains [OK]
Common Mistakes:
  • Making direct calls without fallback
  • Disabling service registry
  • Switching to monolith instead of microservices

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes