In the last article we looked at the basics of Hystrix and how it can help with building a fault tolerant and resilient application.
There are lots of existing Spring applications that make calls to external systems that would benefit from Hystrix.
Unfortunately, it may not be possible to rewrite these applications in
order to integrate Hystrix, however a non-invasive way of integrating
Hystrix is possible with the help of Spring AOP.
In this article we will look at how to integrate Hystrix with an existing Spring application.
2. Hystrix into a Spring Application
2.1. Existing Application
Let’s take a look at the application’s existing client caller which makes call to the RemoteServiceTestSimulator that we created in the previous article: