Spring Boot Microservices Project Example - Part 6 | Resilience4J Circuit Breaker

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

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

  • @shambhavit4045
    @shambhavit4045 2 месяца назад +1

    Thank you for covering everything needed with such simple and clear explanation! Helped me a lot to understand everything under microservices, never found any course as simple as this one.

  • @exploreWorldMe1984
    @exploreWorldMe1984 Год назад +2

    Thanks! wonderful tutorial... keep up the good work

  • @defrankline
    @defrankline 2 года назад +4

    Thanks bro! your tutorial are simple to follow and cover what its needed!

  • @natnaelsisay1424
    @natnaelsisay1424 Месяц назад

    Thank you for this amazing video

  • @vaishnavepranav7394
    @vaishnavepranav7394 Год назад +1

    Thanks for the wonderful tuorial .

  • @diggydavro1588
    @diggydavro1588 2 года назад +1

    Great tutorial 👌 easy to follow keepnthe good work

  • @hoangtv3949
    @hoangtv3949 2 года назад +1

    Very useful

  • @toto_frs620
    @toto_frs620 2 года назад +1

    I love your videos. Well done!

  • @adityamankar9543
    @adityamankar9543 2 года назад +3

    Thank you for these amazing tutorials. Can you please add a video demonstrating the deployment process for microservices?

    • @defrankline
      @defrankline 2 года назад +4

      i second this. at the end lets deploy this app using say docker, kubernetes

    • @deanclancy6448
      @deanclancy6448 2 года назад

      Yes please🙏🙏

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад +5

      It's already in plan to integrate the project to Kubernetes.

  • @techlead_ashu
    @techlead_ashu 9 месяцев назад

    Thank you so much :) _/\_ Highly appreciated!

  • @vietnguyenba4680
    @vietnguyenba4680 2 года назад

    Thanks, bro! You can share videos about managing transactions in a microservice system.

  • @kevinm.1597
    @kevinm.1597 2 года назад +2

    Thank you for this tutorial!
    but i am facing an issue right now TimeLimiter is not throwing the TimeoutException

    • @KK-wu2fq
      @KK-wu2fq Год назад

      Programming Techie any idea why?

    • @KK-wu2fq
      @KK-wu2fq Год назад

      ive been doing CB stuff on service, i moved all to controler and there it throws exception for timelimiter :)

    • @osasereuhunmwangho5293
      @osasereuhunmwangho5293 Год назад

      @@KK-wu2fqHello. I am facing the same issue. I want to keep the logic stuff in the service and the controller stuff strictly in the controller. Do i have to move my logic to the controller before a timelimiter exception is thrown. Did you find a way around it?

    • @osasereuhunmwangho5293
      @osasereuhunmwangho5293 Год назад +1

      I have found a way around it. I simply moved the @TimeLimter annotation to the controller. The circuit breaker annotation remains in the service. The service returns a type of String while the controller returns a CompletableFuture

  • @osasereuhunmwangho5293
    @osasereuhunmwangho5293 Год назад +1

    Hello Programming Techie.
    I am facing an issue with the time-out exception. I want to keep the logic stuff in the service and the controller stuff strictly in the controller. Do I have to move my logic to the controller before a time-limiter exception is thrown? I don't think so.
    The annotations i.e. CircuitBreaker, TimeLimiter are in the service layer. I am returning a type of CompletableFuture in the service layer also. The controller attached to it is also returning a type of CompletableFuture.
    The error observed when I run in postman is that, TimeLimiter annotation ought to return a type of CompletionStage which means the service should have a return type of CompletionStage instead of CompletableFuture.
    Once this is done, I have tried using a return type of CompletionStage in the controller too. On the other hand, I have used a return type of CompletableFuture and I simply cast the response of the service to CompletionStage.
    Either way, the time-out exception is not being thrown when I try to send in Postman. All it does is wait for as long as the thread.sleep is set in the inventory service. After which, the order is then successfully placed.
    Please what is the way around it?

    • @osasereuhunmwangho5293
      @osasereuhunmwangho5293 Год назад +1

      I have found a way around it. I simply moved the @TimeLimter annotation to the controller. The circuit breaker annotation remains in the service. The service returns a type of String while the controller returns a CompletableFuture

    • @NoOne-mg6ti
      @NoOne-mg6ti 9 месяцев назад

      @@osasereuhunmwangho5293 I'm also having the same problem. Can you show me your code on handling this problem?

  • @huythongnguyen1565
    @huythongnguyen1565 9 дней назад

    hi sir , i begin learning of your course , so i dont know begin with chapter ? . I see two course in spring microservice . one of it is project example . please reply me

  • @nonamespls3468
    @nonamespls3468 10 месяцев назад

    why didn't the fallback work when timeout was thrown?

  • @QuickInterviewPrep
    @QuickInterviewPrep 10 месяцев назад

    Great tutorial :). can we implement circuit breaker in gateway?
    Or As my UI is calling gateway and gateway is calling my service, should i implement in UI(say react)

    • @ProgrammingTechie
      @ProgrammingTechie  10 месяцев назад +1

      Yes you can also implement it in the gateway

    • @QuickInterviewPrep
      @QuickInterviewPrep 10 месяцев назад

      @@ProgrammingTechie Not sure if we can implement it in gateway as gateway is just routing not making rest call. Did i understand correctly? In your example you implemented it method that is calling rest endpoint

  • @az910
    @az910 2 года назад +2

    Thank you 🙏
    When you will share the next part ? Haha 😁

    • @ProgrammingTechie
      @ProgrammingTechie  2 года назад +7

      On Tuesday :)

    • @az910
      @az910 2 года назад +3

      I appreciate what you do for us

    • @manojkumar8358
      @manojkumar8358 Год назад

      @@ProgrammingTechie Please tell on how to add junit test case for fallback method

  • @razataggarwal7365
    @razataggarwal7365 2 года назад

    Circuit Breaker annotation doesn't work for java 1.8
    but why ?

  • @ognjenbarovic1756
    @ognjenbarovic1756 Год назад +1

    Is it just me or orderRepository still saves order after timeout?

    • @baranemreturkmen9497
      @baranemreturkmen9497 Год назад

      Yeah me too. And I don't understand why

    • @baranemreturkmen9497
      @baranemreturkmen9497 Год назад

      In my problem I relaized that I didn't invoke my placeOrder method which in OrderService class, with resilience4j time limiter. Maybe you did same mistake with me.

    • @aamirshaikh1389
      @aamirshaikh1389 9 месяцев назад

      I'm currently dealing with a similar problem, and I'd appreciate it if you could share more details on how you resolved the issue? @@baranemreturkmen9497

  • @bautistaquesada4436
    @bautistaquesada4436 7 месяцев назад

    Hey! can someone help me please im having this issue An expected CSRF token cannot be found, when im trying to do a post in localhost:8080/api/order, i dont know how to solve it
    my application.properties of my discovery server is the same as the video. so i dont understand what is happening

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

      Please cross check the code against the GitHub repo

    • @bautistaquesada4436
      @bautistaquesada4436 7 месяцев назад

      @@ProgrammingTechie Hi! yes i double check with the repo and the problem persist.

  • @yogeez123
    @yogeez123 Год назад

    If you are using Gateway and service to service communication should be done through gateway, I believe

    • @ProgrammingTechie
      @ProgrammingTechie  Год назад

      Gateway acts as an entrypoint of a request into our system, from there the request is routed through other services, internal service to service communication is not done through API Gateway.

  • @abhinandankumar4255
    @abhinandankumar4255 2 года назад +1

    next video please