Questions tagged [resilience4j]

Resilience4j is lightweight alternative to Netflix Hystrix.

Resilience4j is a lightweight, easy-to-use fault tolerance library inspired by Netflix Hystrix, but designed for Java 8 and functional programming. Lightweight, because the library only uses Vavr (formerly Javaslang), which does not have any other external library dependencies. Netflix Hystrix, in contrast, has a compile dependency to Archaius which has many more external library dependencies such as Guava and Apache Commons Configuration. With Resilience4j you don’t have to go all-in, you can pick what you need.

Resilience provides several core modules and add-on modules:

Core modules:

resilience4j-circuitbreaker: Circuit breaking

resilience4j-ratelimiter: Rate limiting

resilience4j-bulkhead: Bulkheading

resilience4j-retry: Automatic retrying (sync and async)

resilience4j-cache: Response caching

resilience4j-timelimiter: Timeout handling

Add-on modules

resilience4j-metrics: Dropwizard Metrics exporter

resilience4j-prometheus: Prometheus Metrics exporter

resilience4j-spring-boot: Spring Boot Starter

resilience4j-ratpack: Ratpack Starter

resilience4j-retrofit: Retrofit Call Adapter Factories

resilience4j-vertx: Vertx Future decorator

resilience4j-consumer: Circular Buffer Event consumer
336 questions
0
votes
2 answers

How to use resilience4j on calling method?

I tried to use spring retry for Circuit breaking and retry as below and it is working as expected but issue is unable to configure "maxAttempts/openTimeout/resetTimeout" as env variables (error is should be constants). My question is how use…
Raman
  • 35
  • 1
  • 7
0
votes
0 answers

Prometheus metrics servlet doesn't show any metrics

I am using resilience4j circuitbreakers and am having trouble exporting the metrics with the prometheus servlet client. I am deploying to a jbossas7 server, but my /metrics endpoint doesn't show anything. Anyone any ideas? I am injecting the…
bobK
  • 704
  • 2
  • 7
  • 24
-1
votes
1 answer

PromQL to find the mean response time of a downstream service

What would be the correct PromQL to find the mean latency of the downstream calls. We are using the given promQL to find the p99 of the downstream service: histogram_quantile(0.99,…
tusharRawat
  • 719
  • 10
  • 24
-1
votes
1 answer

Difficulty using Resilience4j

I'm trying to use resilience4j with springboot 3 in my application. but it doesn't arrive in the fallback method, can someone tell me what's wrong? I tried to follow the official documentation, and I had no success, Based on the code snippets, can…
Feh
  • 3
  • 2
-1
votes
2 answers

How to call the @RateLimiter annotation inside an @Aspect class

Im trying to implement the Resilience logic inside an aspect class similar to how it has been done for logging. Below is a snippet of code that I have been trying but it doesnt work. @Pointcut("within(com.example.demo.*)") public void…
tritpi
  • 11
  • 2
-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 2 3
22
23