Hystrix main application to a distributed environment for handling service and between services, tools invoked in the case of failure of how to deal with;
It is an intermediate component like a plug disposed between the same services;
The main function:
1, Rapid-Fail
2, service degradation
3, service isolation
4, like real time (near real-time) monitoring
The main problem:
Distributed environment, complex dependencies, some services are not available, the availability of low or poor performance may cause a ripple effect throughout the service environment, reducing the overall quality of service;
Hystrix strategy:
To be able to use services such as plug-in between as flexible, Hystrix all service calls abstracted into Command, use the command mode to handle calls between the service;
In order to achieve fast service failure, internal Hystrix set a lot of class real-time monitoring;
In order to achieve fast response, Hystrix provides caching services (request / gloable);
In order to realize service isolation, MAMMALIA, provides a request packet, a thread spacer / semaphore policy;
How to learn Hystrix:
Hystrix is an open source java program: https://github.com/Netflix/Hystrix/wiki
The best study materials is to see Hystrix of wiki, wiki enrich its data, writing is very standardized, points clear, precise semantics, examples of very well;