Netflix / Hystrix

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.
23.98k stars 4.7k forks source link

A require for hystrix #1957

Open dai19470 opened 4 years ago

dai19470 commented 4 years ago

image image 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:

  1. add annotation @HystrixClass on service or dao . this annotation value is hystrix instance class. relate dao or service with hystrix instance class.
    1. 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.

forgive me for terrible English!