Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hystrix Command Objects : new vs singleton

Is it correct to create HystrixCommand object implementations as Singleton? If it does, is it going to hold the thread till it finishes execution and won't create anymore?

like image 222
Divs Avatar asked Nov 16 '16 07:11

Divs


1 Answers

No, they are executed only once. They are stateful with input arguments, response value or error and request log. (c) Hystrix github

like image 180
Ivan Avatar answered Sep 29 '22 07:09

Ivan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!