This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
public class UserRegistrationController { | |
@PostMapping("/register/seller") | |
public String registerAsSeller(@RequestBody SellerDto sellerDto) { | |
return UserRegistrationResilience4j.registerSeller(sellerDto); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resilience4j.circuitbreaker: | |
instances: | |
service1: | |
registerHealthIndicator: true | |
ringBufferSizeInClosedState: 5 | |
ringBufferSizeInHalfOpenState: 3 | |
waitDurationInOpenState: 10s | |
failureRateThreshold: 50 | |
recordExceptions: | |
- org.springframework.web.client.ResourceAccessException |
NewerOlder