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

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии •

  • @ProgrammingTechie
    @ProgrammingTechie  6 месяцев назад +2

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

  • @prasanthsanjeevi2563
    @prasanthsanjeevi2563 6 месяцев назад +2

    Finally!!! Tons of thanks

  • @rishiraj2548
    @rishiraj2548 5 месяцев назад

    Resilience4j is a lightweight fault tolerance library inspired by Netflix Hystrix, but designed for functional programming.
    Resilience4j provides higher-order functions (decorators) to enhance any functional interface, lambda expression or method reference with a Circuit Breaker, Rate Limiter, Retry or Bulkhead. You can stack more than one decorator on any functional interface, lambda expression or method reference. The advantage is that you have the choice to select the decorators you need and nothing else.

  • @karmabender
    @karmabender 3 месяца назад

    awesome brother please keep creating such videos

  • @manaspurohit3123
    @manaspurohit3123 3 месяца назад +2

    What is the point of configuring circuit breaker in order-service. As you haven't shown practical use of it, I am little confused, can you please tell me that?
    Like I want to see circuit breaker is open or not in the case when order-service calls stopped inventory-service.

  • @jeniferjayaraj7834
    @jeniferjayaraj7834 3 месяца назад

    Hi Sai. Thanks for the course. Fallback method is not getting called in my InventoryClient. After adding spring starter AOP dependencies only it works. JFYR

  • @AmitDobal
    @AmitDobal 5 месяцев назад

    HI Sai, in earlier video you have used the Feign client. But in this video the implementation is of RestClient

    • @spandanbhol6049
      @spandanbhol6049 5 месяцев назад

      Hi. Yes, but in the video of Part 8 (the one before this vid) he has refactored the code to use Rest Client.

  • @nawwintphyu1873
    @nawwintphyu1873 4 месяца назад

    Thank you so much!

  • @rishiraj2548
    @rishiraj2548 6 месяцев назад +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
    ??

  • @Aayu-t2p
    @Aayu-t2p 14 дней назад +1

    'org. springframework. boot. web. client. ClientHttpRequestFactorySettings' is deprecated since version 3.4.0 and marked for removal

  • @islamahmed3270
    @islamahmed3270 6 месяцев назад

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

  • @techlead_ashu
    @techlead_ashu 6 дней назад

    Hey, so even when order service fails more than 5 times, i tried for more than 10 also, circuit is NOT breaking!
    i'm assuming it's coz order service anyway throws 500 .... when checkStock returns false!

  • @hacisimsek2543
    @hacisimsek2543 3 месяца назад

    Thank you for everything! Could you please share your theme?

  • @liwen7252
    @liwen7252 5 месяцев назад

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

    • @ProgrammingTechie
      @ProgrammingTechie  5 месяцев назад

      They are 2 different patterns, not related

    • @liwen7252
      @liwen7252 5 месяцев назад

      @@ProgrammingTechie Thank you.

  • @sairajnaikdhure1112
    @sairajnaikdhure1112 6 месяцев назад

    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

  • @e11y1985
    @e11y1985 6 месяцев назад

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

    • @AmitDobal
      @AmitDobal 5 месяцев назад

      Through service discovery

  • @aadiraj6126
    @aadiraj6126 6 месяцев назад +2

    Sai, No doubt your video contains quality but if you want real deal in RUclips, 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 6 месяцев назад

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

  • @Krishnadevaraya1
    @Krishnadevaraya1 6 месяцев назад +2

    Please upload videos speedly

  • @rishiraj2548
    @rishiraj2548 6 месяцев назад

    Good evening

  • @karmabender
    @karmabender 3 месяца назад

    You haven't used service registry

  • @prasanthsanjeevi2563
    @prasanthsanjeevi2563 6 месяцев назад

    Please release next video