Search code examples
spring-cloudnetflixnetflix-eurekahystrixturbine

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?

Solution

  • 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.