Netflix hystrix and spring integration

I have a spring integration project that sends data to various sources through a gateway and also fetches data from databases and updates specific tables.

It works fine, so many moments of failure, and I would like to wrap calls to these gateways with the Netflix Hystrix platform and display the Hystrix DashBoard.

All ideas and suggestions are greatly appreciated.

thank

+3


source to share


1 answer


You can find all the information you need on the Hystrix GitHub repository page here . The documentation for the toolbar is in the same place, but in the master branch here

There are several ways to use the framework, but more often than not, you wrap your service / call inside an object HystrixCommand

and fill in the run()

and methods fallback()

. You can find an example here



As far as the control panel is concerned, you need to build a project and you can use it out of the box; that is, if you don't want to go deeper into your configuration. You will then be able to access it through your web explorer and trace the calls from the services (services) that are wrapped in Hystrix by entering their URL on the dashboard home page.
You can find additional documentation about the control panel on the Hystrix wiki .

0


source







All Articles