Building an application with Hystrix

Netflix provides an implementation of the circuit breaker pattern in their library called Hystrix. That library has also been included as a default implementation of the circuit breaker for Spring Cloud. Hystrix has some other interesting features, and should also be treated as a comprehensive tool for dealing with latency and fault tolerance for distributed systems. What is important is that if the circuit breaker is opened, Hystrix redirects all calls to the specified fallback method. The fallback method is designed to provide a generic response without any dependency on a network, usually read from an in-memory cache or just implemented as static logic. If it becomes necessary to perform a network call, ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.