Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Spring Cloud Feign client call execute inside hystrix command?

I'm configuring a sample application using this example: http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-feign-inheritance. In this section http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-ribbon it is said that:

Feign already uses Ribbon, so if you are using @FeignClient then this section also applies

Does that mean that @FeignClient uses Hystrix too? Does the call to feign client execute inside hystrix command? if so, what is the proper way to pass hystrix configuration?

There are samples that wrap calls to feign client with @HystrixCommand. Is it a correct way?

like image 897
antonkonovchenko Avatar asked Nov 10 '22 05:11

antonkonovchenko


1 Answers

There is an open ticket to support hystrix with feign. Currently, you need to wrap calls to feign clients with hystrix.

like image 162
spencergibb Avatar answered Dec 21 '22 17:12

spencergibb