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

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

本文介绍了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:

这是否也意味着@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命令中执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 23:44