Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Hystrix be used without Eureka/ Ribbon or other Netflix OSS modules

We have an infrastructure with our own API gateway, service discovery and load balancing. However for resiliency purposes I need to use Hystrix.

  1. With spring cloud netflix, can Hystrix (i.e. The circuit breaker annotation) be used without Eureka/ Ribbon or other Netflix OSS modules?
  2. Are there any dependency to Eureka/ Ribbon / Zuul for circuit breaker dashboard (i.e. turbine and stream aggregator) ?
  3. Can circuit breaker annotation be used in a non spring-boot application?
like image 594
Fahim Farook Avatar asked Oct 31 '15 18:10

Fahim Farook


People also ask

Which dependencies are required to use hystrix in a Springboot application?

First, we need to add the Spring Cloud Starter Hystrix dependency in our build configuration file. Now, add the @EnableHystrix annotation into your main Spring Boot application class file. The @EnableHystrix annotation is used to enable the Hystrix functionalities into your Spring Boot application.

What can I use instead of Hystrix?

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

Is hystrix removed from spring cloud?

Hystrix has been removed from Spring Cloud Netflix and it was the only implementation using this annotation. This annotation has been deprecated as of the 3.0. 1 release. @EnableDiscoveryClient is no longer needed, discovery client implementations are enabled as long as an implementation is on the classpath.


1 Answers

Spring Cloud Hystrix can be used without ribbon or eureka, just use spring-cloud-starter-hystrix. The hystrix dashboard can be used by directly going to each instances hystrix.stream one at a time. Hystrix can be used without spring boot if you use the Netflix package directly without using Spring Cloud.

like image 192
spencergibb Avatar answered Oct 13 '22 10:10

spencergibb