Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
look up pictures on top,we have a require for hystrix , the pm want us to separate the code of hystrix and the code of business. we think a solution for this require and i think this is a good extension for hystrix . but we can't achieve it.
desc:
add annotation @HystrixClass on service or dao . this annotation value is hystrix instance
class. relate dao or service with hystrix instance class.
add hystrix instance class .and add method that with same name to service or dao class method. add @HystrixMethod on this method.this's mean witch method you need hystrix.
desc:
forgive me for terrible English!