Spring Boot Microservices Tutorial - Part 9 - Circuit Breaker with Resilience4J

Sdílet
Vložit
  • čas přidán 29. 05. 2024
  • In this Spring Boot 3 Microservices tutorial series, we will learn how to build microservices using Spring Boot and Spring Cloud.
    This is part 9 of the series, in this part, we will cover:
    - What is Circuit Breaker Pattern ?
    - Why to use Circuit Breaker ?
    - How to implement Circuit Breaker pattern using Resilience4J and Spring Cloud Circuit Breaker
    - Implement Circuit Breaker Pattern in API Gateway and Order Service
    - Learn how to implement Timeout and Retry patterns

Komentáře • 19

  • @ProgrammingTechie
    @ProgrammingTechie  Před měsícem +2

    Link to the written tutorial: programmingtechie.com/2024/05/26/spring-boot-microservices-tutorial-part-6/

  • @prasanthsanjeevi2563
    @prasanthsanjeevi2563 Před měsícem +2

    Finally!!! Tons of thanks

  • @islamahmed3270
    @islamahmed3270 Před 27 dny

    can you make a video about integerating service discovery with gateway mvc ?

  • @sairajnaikdhure1112
    @sairajnaikdhure1112 Před 23 dny

    My all services are UP but then also fallback is getting called. I just created separate RestControllers for all service fallbacks and I also passing their URI correctly.
    Any solution?
    My Application.yml configurations for resilience4j :
    # Actuator endpoints
    management:
    health:
    circuitbreakers:
    enabled: true
    endpoints:
    web:
    exposure:
    include:
    - "*"
    endpoint:
    health:
    show-details: always
    # Resilinece4j Properties
    resilience4j:
    circuitbreaker:
    configs:
    default:
    registerHealthIndicator: true
    slidingWindowType: COUNT_BASED
    slidingWindowSize: 10
    failureRateThreshold: 50
    waitDurationInOpenState: 5s
    permittedNumberOfCallsInHalfOpenState: 3
    automaticTransitionFromOpenToHalfOpenEnabled: true
    minimumNumberOfCalls: 5
    timelimiter:
    configs:
    default:
    timeoutDuration: 3s
    retry:
    configs:
    default:
    maxAttempts: 3
    waitDuration: 2s

  • @Krishnadevaraya1
    @Krishnadevaraya1 Před měsícem +2

    Please upload videos speedly

  • @aadiraj6126
    @aadiraj6126 Před měsícem +2

    Sai, No doubt your video contains quality but if you want real deal in CZcams, Pls add angular as frontend as well. May be it attracts masses due to output are visible in screen, or may be demand of full stack is on high. And videos are coming too late to adhere.. speed up buddy. I know you're working fellow & editing takes time, but you've potential to become one of the top project based youtuber.

    • @aadiraj6126
      @aadiraj6126 Před měsícem

      I see it as missed opportunity, only if I'd that much talent like yours 😅

  • @rishiraj2548
    @rishiraj2548 Před měsícem

    Good evening

  • @e11y1985
    @e11y1985 Před měsícem

    Let say I run more than one product services. How the gateway knows how many product services are actually available?

  • @rishiraj2548
    @rishiraj2548 Před měsícem +1

    21:05
    Either of the two should be sufficient (logically thinking), I guess:
    resilience4j.circuitbreaker.configs.default.failureRateThreshold=50
    resilience4j.circuitbreaker.configs.default.minimum-number-of-calls=5
    Then why the circuit breaker configuration requires these both to be specified along with:
    resilience4j.circuitbreaker.configs.default.slidingWindowSize=10
    I mean:
    What would be the behaviour of the setup when:
    minimum-number-of-calls=6,
    failureRateThreshold=40, and
    slidingWindowSize=10
    ??

  • @prasanthsanjeevi2563
    @prasanthsanjeevi2563 Před měsícem

    Please release next video

  • @liwen7252
    @liwen7252 Před 10 dny

    One question, please? Do we still need this Circuit Breaker if we already have service discovery? thanks.