Questions tagged [hystrix]

In a distributed environment, failure of any given service is inevitable. Hystrix is a library designed to control the interactions between these distributed services providing greater latency and fault tolerance.

As of November 2018 Hystrix is officially in maintenance mode. New adaptors are encouraged to seek more modern alternatives, such as resilience4j.

Purpose of Hystrix

  • Give protection from and control over latency and failure from dependencies (typically accessed over network) accessed via 3rd party client libraries.
  • Stop cascading failures in a complex distributed system.
  • Fail fast and rapidly recover.
  • Fallback and gracefully degrade when possible.
  • Enable near real-time monitoring, alerting and operational control.

https://github.com/Netflix/Hystrix/wiki

734 questions
0
votes
1 answer

Spring Cloud Hystrix Dashboard not working with OAuth

I am trying to run a simple Spring app with Hystrix Dashboard. I have also enabled Spring security on this app, as the hystrix.streams I want to monitor are security enabled. When I access the dashboard url, I get redirected to a login page as…
Cian
  • 88
  • 1
  • 5
0
votes
1 answer

What is the impact of libraries that maintain their own threads pool?

I'm using Google Guava and Netflix Hystrix libraries in our project. Each library comes with it is own pool of threads that you can configure. Thats made think of the impact of that. I mean each library is maintaining its own pool of threads and of…
Chiron
  • 20,081
  • 17
  • 81
  • 133
0
votes
1 answer

Hystrix vs MultiThreadedHttpConnectionManager

we have a web page implemented using SpringMVC+JSP. To get the data needed on each page we call an external API. The summary of steps are: - Request arrives to a controller - A call to the API is made to retrieve data - Data is added to the JSP…
acanimal
  • 4,800
  • 3
  • 32
  • 41
0
votes
1 answer

Spring Boot with server.contextPath set vs. URL to hystrix.stream via Eureka Server

I have Eureka Server with Turbine instance running and a few discovery clients that are connected to it. Everything works fine, but if I register a discovery client that has server.contextPath set, it didn't get recognized by InstanceMonitor and…
Szymon Stepniak
  • 40,216
  • 10
  • 104
  • 131
0
votes
3 answers

Issue with hystrix fallback in spring cloud

When I try to fallback using HystrixCommand in spring cloud, the method proxy is not working. The exception thrown in the in the method is not caught by the hystrix command aspect. I am facing this issue with Spring Cloud Hystrix integration. I'm…
Ashok Koyi
  • 5,327
  • 8
  • 41
  • 50
0
votes
1 answer

IllegalStateException with Hystrix

I am new to Hystrix. I am trying to use it with Spring AOP. The following details what I am trying to achieve. There is a "ServiceClass", into which some RestClient class is injected. I am using Spring. Now, I want to use Hystrix together with…
5122014009
  • 3,766
  • 6
  • 24
  • 34
0
votes
1 answer

HystrixCommand interface in hystrix-javanica annotation is missing ThreadPoolProperties

I am trying to use hystrix-javanica for AspectJ annotations for HystrixCommand. I am able to configure the command properties as follows: @HystrixCommand(commandKey = "myCommand", groupKey = "myServiceImpl", threadPoolKey =…
Shiva
  • 95
  • 7
0
votes
1 answer

Use dynamic properties using Dropwizard,Hystrix and Archaius

I am trying to use Dropwizard with Hystrix and Archaius using the yml file from DropWizard.I need to change Archaius property file values dynamically at runtime. How do I do that ? I have looked at the following links and am able to get key value…
Vijay
  • 595
  • 1
  • 13
  • 27
0
votes
0 answers

AppDynamics doesn't monitor calls from Hystrix app

I develop common java web app. I use Hystrix in my app, actually I have a REST client whose methods wrapped in hystrix commands. My web app uses this rest client to communicate with remote server. My web app is configured as described in hystrix…
user1932034
  • 149
  • 2
  • 3
  • 11
-1
votes
1 answer

can I use hystrix to call up a failed request again?

I have a feign client that sends one request to another microservice every 60 seconds. On this controller, I use the HystrixCommand annotation with a user configuration (just experimenting). I also have a fallback method in which I go into when the…
-1
votes
2 answers

Multiple failureRateThreshold for a circuit breaker in resilience4j

I am fairly new to resilience4j. I was wondering whether it is possible to have different failureRateThreshold settings for different kinds of exception under the same circuit breaker config. I am unable to find an example for the same. Any help…
Ritu Das
  • 1
  • 1
-1
votes
2 answers

HystrixCommandAspect Resulting into NoSuchMethodError in plain Java application

I am trying to use Hystrix in my Java Application, its a Non spring java application. Used following Maven Dependencies in POM to enable Hystrix commands : com.netflix.hystrix
Narendra
  • 151
  • 1
  • 12
-1
votes
1 answer

Can we have a generic HystrixCommand subclass from where we can invoke different dependencies?

I'm new to Hystrix. I have a list of dependency calls which I need to wrap using HystrixCommand. Only possible way I found is by creating separate HystricCommand subclass for each dependency call & invoke the dependency within the run method of the…
Manikandan
  • 83
  • 1
  • 7
-2
votes
1 answer

Set data in a channel which is actually set by a mocked function for unit tests

I am trying to write unit tests for a method(methA) which makes a call through hystrix.Go. The external function i'm calling inside Hystrix func()[somefunc] takes channel as parameter and inserts the data in the channel in actual code flow. While…
user304611
  • 297
  • 1
  • 4
  • 14
1 2 3
48
49