A simple python version of hystrix.
from hystrix import addHystrix
@addHystrix(groupKey='group1',key='key1',failback=func)
def callHello():
pass
- CIRCUIT_OPEN : All requests will be allowed
- CIRCUIT__HALF_OPEN : request will be allowed once
- CIRCUIT_CLOSE : All requests is rejected.
State transitions:
OPEN --> CLOSE --> HALF_OPEN --> CLOSE/OPEN