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 fault tolerance purposes, I need to use Hystrix.

  • With cloudy netflix spring, is it possible to use Hystrix (i.e. circuit breaker annotation) without Eureka / Ribbon or other Netflix OSS modules?
  • Is there any dependency on Eureka / Ribbon / Zuul for the switch dashboard (i.e. turbine and flow aggregator)?
  • Is it possible to use circuit breaker annotation in spring-boot app?
+5
source share
2 answers

Spring Cloud Hystrix can be used without ribbon or eureka, just use spring-cloud-starter-hystrix . The hystrix panel can be used to directly access each instance of hystrix.stream , one at a time. Hystrix can be used without spring loading if you use the Netflix package directly without using spring Cloud.

+6
source
  • Yes
  • I don’t know, run it and see if it pulls addictions.
  • Yes, if it is used with spring, and you declare all the necessary beans that spring are loaded, otherwise instances are created. Otherwise, no (more in the FAQ - Can annotations be used?

I would advise you to work a bit on Google before posting such questions, since this is at the edge of the tool request, which is not a suitable question for SO.

-1
source

Source: https://habr.com/ru/post/1234928/


All Articles