Configuring Hystrix in your application
We will cover Spring Cloud Netflix Hystix with an example we discussed in the previous chapters. We will use the same example and implement the circuit-breaker pattern, which creates a strategy against cascading failure at lower levels of services in a distributed system. We will configure Hystrix in our application of customer and Account microservices, as we discussed in the previous chapters:
Accountmicroservice: This microservice will give some basic functionality to theAccountentity. We will call thisAccountservice fromcustomerservice to understand circuit-breaker. It will run on port6060in localhost.Customermicroservice: This is also a REST-based microservice where we will implement the circuit-breaker using Hystrix. TheAccountmicroservice will be invoked from thisCustomermicroservice and we will see the fallback path once theAccountservice is unavailable. It will run on port6161in localhost.
Hystrix is monitoring methods that...