Fallback chain in hystrix

Viewed 753

I am planning to use the hystrix command to make remote http call (httpclient). If the call fails for whatever reason, i want to fallback on another http call lets say I do it in fallbackMethod1(). If fallback http call also fail I want to fallback to static response fallbackMethod2(). How can I achieve it?

One way I can think of is to call another Hystrix command from fallbackMethod1 and have fallbackMethod2() as fallback in that command. Not sure if it's right way. My major concern is performance I may get 10k request per minute in my caller service.

1 Answers
Related