This is a quick tutorial on Hystrix circuit break. This tutorial gives an overview of Hystrix circuit breaker component present in Spring Cloud and how we can implement it in our project.
What is Hystrix Circuit Breaker?
Hystrix circuit breaker follows the circuit breaker pattern. In layman terms, you can visualize it similar to your electrical circuit break present at your home. Firstly, Hystrix allows us to define fallback methods. Secondly, Whenever a method starts throwing errors due to any reason and it has a fallback method defined, Hystrix will invoke the fallback method rather than invoking the main method. That is it will isolate the erroneous method for time being.
TL;DR You can download whole project by clicking following link.
In this tutorial, we will be creating a spring boot application and we will be adding a fallback method using Hystrix.
Continue reading Spring Cloud: Adding Hystrix Circuit Breaker