Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Hystrix's support for Feign

To begin with, I would like to reiterate that Hystrix is enabled by default for the application when using a Feign library, but only for the older versions of Spring Cloud. According to the documentation for the newest version of Spring Cloud, we should set the feign.hystrix.enabled property to true, which forces Feign to wrap all methods with a circuit breaker.

Prior to the Spring Cloud Dalston release, if Hystrix was on the classpath, Feign would have wrapped all methods in a circuit breaker by default. This default behavior was changed in Spring Cloud Dalston in favor of an opt-in approach.

When using Hystrix together with a Feign client, the simplest way to provide configuration properties previously set with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content