Spring Cloud Feign客户端调用是否在hystrix命令中执行? [英] Does Spring Cloud Feign client call execute inside hystrix command?

查看:117
本文介绍了Spring Cloud Feign客户端调用是否在hystrix命令中执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下示例配置示例应用程序: http://projects.spring.io/spring -cloud/spring-cloud.html#spring-cloud-feign-inheritance .在本节中, http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-ribbon 据说:

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已使用Ribbon,因此如果您使用@FeignClient,则此 部分也适用

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

这是否也意味着@FeignClient也使用Hystrix?对假冒客户的调用是否在hystrix命令中执行?如果是这样,通过hystrix配置的正确方法是什么?

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?

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

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

推荐答案

有一个公开票证以假冒方式支持hystrix.当前,您需要使用hystrix包装对假冒客户的呼叫.

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

这篇关于Spring Cloud Feign客户端调用是否在hystrix命令中执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆