Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wenqiglantz/e8dbf4bd7ac4bdb00bfee41294f56ff2 to your computer and use it in GitHub Desktop.
Save wenqiglantz/e8dbf4bd7ac4bdb00bfee41294f56ff2 to your computer and use it in GitHub Desktop.
@Bean
public Customizer<ReactiveResilience4JCircuitBreakerFactory> customerServiceCusomtizer() {
return factory -> {
factory.configure(builder -> builder
.timeLimiterConfig(TimeLimiterConfig.custom().timeoutDuration(Duration.ofSeconds(2)).build())
.circuitBreakerConfig(CircuitBreakerConfig.ofDefaults()), "customer-service");
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment