Circuit breakers, bulkheads and fallbacks
The recommendations service slows to a crawl. Within minutes checkout stops too, though it barely needs recommendations. Nothing in checkout broke. Its threads were all stuck waiting. How does one slow part sink everything, and how do you build walls against it?
In this lesson you'll learn to
- Explain how one slow dependency causes a cascading failure by tying up shared resources.
- Use bulkheads to give each dependency its own limited share of threads and connections.
- Explain a circuit breaker's closed, open and half-open states and how it decides to trip.
- Choose simple fallbacks and know when failing is better than a fallback.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.