We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5d496d commit 6d990fdCopy full SHA for 6d990fd
1 file changed
apps/commerce-api/src/main/resources/application.yml
@@ -24,6 +24,31 @@ spring:
24
- logging.yml
25
- monitoring.yml
26
27
+resilience4j:
28
+ # Retry
29
+ retry:
30
+ instances:
31
+ pgRetry:
32
+ max-attempts: 3
33
+ wait-duration: 1000ms
34
+ retry-exceptions:
35
+ - java.io.IOException
36
+ - java.util.concurrent.TimeoutException
37
+ - java.net.ConnectException
38
+
39
+ # CircuitBreaker
40
+ circuitbreaker:
41
+ configs:
42
+ default:
43
+ register-health-indicator: true
44
45
+ simpleCircuitBreakerConfig:
46
+ sliding-window-type: COUNT_BASED
47
+ sliding-window-size: 10
48
+ failure-rate-threshold: 50
49
+ wait-duration-in-open-state: 10s
50
+ permitted-number-of-calls-in-half-open-state: 3
51
52
springdoc:
53
use-fqn: true
54
swagger-ui:
0 commit comments