Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring env, should I still use Hystrix on new project

Seems that hystrix is near end of life and that netflix stack is now a bit deprecated. We're building a stack for a brand new project and we need a circuit breaker, our default choice would have been hystrix as it is well known and appreciated by the team.

Today hystrix is fully integrated in spring cloud, is there any plan to remove it soon ?

like image 582
Seb Avatar asked May 18 '20 07:05

Seb


People also ask

Is hystrix outdated?

It is officially deprecated. As a replacement to Hystrix, Resilience4J is introduced.

What has replaced Hystrix?

Akka, Envoy, Istio, Zuul, and Polly are the most popular alternatives and competitors to Hystrix.

Is Resilience4J better than Hystrix?

According to my research Resilience4j is a robust option than hystrix .

Why do we need Hystrix?

The Hystrix framework library helps to control the interaction between services by providing fault tolerance and latency tolerance. It improves overall resilience of the system by isolating the failing services and stopping the cascading effect of failures.


2 Answers

Spring Cloud Circuit breaker provides an abstraction across different circuit breaker implementations. It provides a consistent API to use in your applications allowing you the developer to choose the circuit breaker implementation that best fits your needs for your app.

Supported Implementations

  • Netfix Hystrix

  • Resilience4J

  • Sentinel

  • Spring Retry

The main benefit of using this is you have option to choose different circuit breaker libraries. Migration from one to other pain point is less.

There is nice documentation and sample code on official website

like image 182
Arvind Kumar Avatar answered Nov 15 '22 05:11

Arvind Kumar


Definitely not. Spring Cloud Hystrix is in maintenance mode and will not be available any more starting from the 2020.0.0 release train (support removed with this commit). Resilience4J is a good replacement.

like image 35
OlgaMaciaszek Avatar answered Nov 15 '22 05:11

OlgaMaciaszek