afredlyj / mynote

idea and note
1 stars 0 forks source link

Hystrix相关 #22

Open afredlyj opened 8 years ago

afredlyj commented 8 years ago

https://ahus1.github.io/hystrix-examples/manual.html

afredlyj commented 8 years ago

https://github.com/Netflix/Hystrix/wiki/How-it-Works#flow7

Hystrix reports successes, failures, rejections, and timeouts to the circuit breaker, which maintains a rolling set of counters that calculate statistics.

It uses these stats to determine when the circuit should “trip,” at which point it short-circuits any subsequent requests until a recovery period elapses, upon which it closes the circuit again after first checking certain health checks.