O'Reilly logo

Spring in Action, Fifth Edition by Craig Walls

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Handling failure and latency

This chapter covers

  • Introducing the circuit breaker pattern
  • Handling failure and latency with Hystrix
  • Monitoring circuit breakers
  • Aggregating circuit breaker metrics

15.1. Understanding circuit breakers

The circuit breaker pattern, as made popular in Release It!, 2nd edition, by Michael Nygard (Pragmatic Bookshelf, 2018) addresses the reality that the code we write will fail. What’s important is that when it fails, it fails gracefully. This powerful pattern is even more significant in the context of microservices, where it’s important to avoid letting failures cascade across a distributed call stack.

The idea of the circuit breaker pattern is relatively simple and is quite similar to a real-world electrical ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required