Advertisement
ADL_Rodrigo_Silva

Untitled

Oct 25th, 2022
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.04 KB | None | 0 0
  1. resilience4j:
  2.   circuitbreaker:
  3.     configs:
  4.       defecto:
  5.         sliding-window-size: 6
  6.         failure-rate-threshold: 50
  7.         wait-duration-in-open-state: 20s
  8.         permitted-number-of-calls-in-half-open-state: 4
  9.         slow-call-rate-threshold: 50
  10.         slow-call-duration-threshold: 2s
  11.     instances:
  12.       cursos:
  13.         base-config: defecto
  14.   timelimiter:
  15.     configs:
  16.       defecto:
  17.         timeout-duration: 2s
  18.     instances:
  19.       cursos:
  20.         base-config: defecto
  21.  
  22. spring:
  23.   cloud:
  24.     gateway:
  25.       routes:
  26.       - id: servicio-cursos
  27.         uri: lb://servicio-cursos
  28.         predicates:
  29.          - Path=/api/cursos/**
  30.         filters:
  31.           - name: CircuitBreaker
  32.             args:
  33.               name: cursos
  34.               statusCodes: 500
  35.               fallbackUri: forward:/api/ventas/ver/8/cantidad/5
  36.           - StripPrefix=2
  37.       - id: servicio-venta
  38.         uri: lb://servicio-venta
  39.         predicates:
  40.          - Path=/api/ventas/**
  41.         filters:
  42.          - StripPrefix=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement