'How threading works with Hystrix and Spring Boot?
Is this how hystrix works?
- Caller (tomcat) thread calls @HystrixCommand method.
- Called method is executed in a separate thread (from Hystrix specific thread pool). Caller (tomcat) thread goes in waiting state.
- In case of timeout, Hystrix will interrupt its thread and call fallback method (if there is any).
- Control goes back to caller (tomcat) thread.
Is this explanation correct? Also, I don't understand, who interrupts Hystrix thread and calls fallback method? From threads' perspective, how Hystrix maintains/monitors stats (e.g. in a specific window, how many requests failed etc)? At any point of time, how many Hystrix threads are active?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
