Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private Mono<ResponseEntity> getUserFallback() {
// You can fetch the value from cache here when the service is down, if the
// fallback method also cause any exception the circuit breaker will go in
// open state accordingly after multiple failed requests(Please check
// configurations for that).
return Mono.just(ResponseEntity.ok(User.builder().id("1").name("Deepak").build()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.