-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javanica: Dynamic thread pool key, based on parameters #350
Comments
No, there is no such ability. If I got you correctly you need to generate thread pools in runtime with keys based on command parameters, but I my opinion it can lead to many thread pool instances, did you think about that ? Curious, why you need that ability, as variant you can create different methods, annotate them using @HystrixCommand annotation and invoke certain method based on parameters of root method. For example:
But I'm not sure that this will work within same class i.e. if 'getBalance' and 'getGTBankBalance' defined in the same class |
Closing due to inactivity. If there is still interest in this, please reopen |
With hystrix-javanica, is there a way to define the hystrix thread pool dynamically, based on the Hystrix Command parameters?
To clarify:
In the example below, I'd like to use a different thread pool for each different bank value.
Example:
A possible approach would be to define a threadPoolKeyMethod with the same parameters as the hystrix command, similar to the fallbackMethod, which provides a key to use.
Ideas?
The text was updated successfully, but these errors were encountered: