Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resilience4j:
- circuitbreaker:
- configs:
- defecto:
- sliding-window-size: 6
- failure-rate-threshold: 50
- wait-duration-in-open-state: 20s
- permitted-number-of-calls-in-half-open-state: 4
- slow-call-rate-threshold: 50
- slow-call-duration-threshold: 2s
- instances:
- cursos:
- base-config: defecto
- timelimiter:
- configs:
- defecto:
- timeout-duration: 2s
- instances:
- cursos:
- base-config: defecto
- spring:
- cloud:
- gateway:
- routes:
- - id: servicio-cursos
- uri: lb://servicio-cursos
- predicates:
- - Path=/api/cursos/**
- filters:
- - name: CircuitBreaker
- args:
- name: cursos
- statusCodes: 500
- fallbackUri: forward:/api/ventas/ver/8/cantidad/5
- - StripPrefix=2
- - id: servicio-venta
- uri: lb://servicio-venta
- predicates:
- - Path=/api/ventas/**
- filters:
- - StripPrefix=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement