Spring Cloud Feign 客户端调用是否在 hystrix 命令中执行?

Does Spring Cloud Feign client call execute inside hystrix command?

我正在使用此示例配置示例应用程序: 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据说:

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

这是否意味着@FeignClient 也使用 Hystrix?对 feign client 的调用是否在 hystrix 命令中执行?如果是这样,传递 hystrix 配置的正确方法是什么?

有一些示例使用@HystrixCommand 包装对伪装客户端的调用。这是正确的方法吗?

有一个 open ticket 支持 hystrix 和 feign。目前,您需要使用 hystrix 包装调用以假装客户端。

请使用信号量隔离:

hystrix:
  command:
    default:
      execution:
        isolation:
          strategy: SEMAPHORE