I have configured the spring aspect for hystrixcommand and it works fine ( Open and Close circuit )
During my testing , what I observed is that when the circuit is open , the normal flow is still invoked and on the event FAILURE , the fall back is invoked.
What i understand from the documentation is that , when the circuit is open , the normal flow will be checked only once in five seconds ( default ) . I tried manually setting the value to 20 seconds , but still did not work
@HystrixCommand(commandProperties = {
@HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "20000")
},
fallbackMethod = "fallbackCall")
Where do i set this configuration ? i do not want the error service to be invoked every time and then go to the fallback.