MICROSERVICES ARCHITECTURE | CIRCUIT BREAKING | PART - 8

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ • 33

  • @sridevi-jp3ic
    @sridevi-jp3ic 3 місяці тому

    Excellent teaching, each topic is crystal clear

  • @kumarc4853
    @kumarc4853 3 роки тому +7

    got an offer from linkedin today, thank you very much for great content sir

  • @PiotrLeszczynski-ou1rk
    @PiotrLeszczynski-ou1rk Рік тому

    Love it how well you are able to explain complex topics.

  • @UntamedRogueMavrick
    @UntamedRogueMavrick 3 роки тому +4

    Thanks for educating a millions of engineers like us. Salute to you sir ...

  • @bazejczuk8972
    @bazejczuk8972 Рік тому

    Thanks a lot! Nice explanations!

  • @NA-so5by
    @NA-so5by 5 років тому +4

    Glad to see your session again

  • @attackonalphal1940
    @attackonalphal1940 4 роки тому +2

    I want to give a thumbs up to every of your videos!

  • @xenky0
    @xenky0 Рік тому

    Awesome explaination

  • @Дима-ч3у3х
    @Дима-ч3у3х 3 роки тому

    Thank you! All clear and easy to understand!

  • @neeharkhannu6289
    @neeharkhannu6289 3 роки тому

    Saviour 😎🔥

  • @MunniDivya
    @MunniDivya 4 роки тому

    thanks for the info

  • @yididimelk7643
    @yididimelk7643 3 роки тому

    finally i understand

  • @aishurajas2507
    @aishurajas2507 4 роки тому

    Thank you

  • @bharateshchivate
    @bharateshchivate 2 роки тому

    Thanks for the video.Can I request you to show all the concepts you explain through code snippet or share thecode that has this technique implemented.

  • @faizanfareed9076
    @faizanfareed9076 4 роки тому

    Star 🌟

  • @b3arwithm3
    @b3arwithm3 4 роки тому +2

    I don't quite get option 1 cached response. If there is a cache in front of MS3, isn't it then the normal happy case? whether MS3 is up or down, we would hit the cache first and only hits MS3 if there is a cache miss. Further the cache typically only has a subset number of responses thus you won't be able to guarantee a successful call by going to the cache.

  • @rishabhnitc
    @rishabhnitc 2 роки тому +1

    Can anyone explain why the cached response is a valid benefit of CB ? My key doubt is if the cached response was appropriate then why was the call made in the first place

  • @shivchittora
    @shivchittora 3 роки тому

    Thanks for the good video. I have question. In case of service is not available how do we handle incoming request ? Do we keep any pending action timer for which we will be buffering request and later will process them or system will discard them directly by providing configured error response.

  • @sumantamondal1975
    @sumantamondal1975 3 роки тому

    we can think it as a reverse proxy ..right?

  • @morebowmore
    @morebowmore 4 роки тому

    I like your videos, very well structured and informative.
    To make it even better, please improve the audio quality.

  • @surendrareddy4038
    @surendrareddy4038 3 роки тому

    What happens if ms2 fails and ms1 & ms3 are running state. Will ms1 directly make calls to ms3 using CB?

  • @saurabhmarpadge7498
    @saurabhmarpadge7498 4 роки тому

    So circuit breakers are mostly used in synchronous calls only?

  • @manikandanbalasubramani3172
    @manikandanbalasubramani3172 4 роки тому

    The error from the service 3 is handled by using try catch block ,then why we are using circuit breaker?
    eagerly waiting for your reply bro

    • @kome566
      @kome566 4 роки тому +1

      The point of the circuit breaker is to avoid making another request to service 3 if it has returned an error recently to let it recover.

    • @manikandanbalasubramani3172
      @manikandanbalasubramani3172 4 роки тому

      @@kome566
      Thank you bro!

  • @b3arwithm3
    @b3arwithm3 4 роки тому +1

    option 2 isn't a circuit breaker pattern. This is smart load balancing if you have stand by services.

  • @sanjeevdiitm
    @sanjeevdiitm 4 роки тому

    cache will be very small, most of the requests will fail only.

  • @sagartyagi2450
    @sagartyagi2450 3 роки тому +1

    I think we don't need a circuit breaker, these things can be implemented using a reverse proxy or just in the service itself.

    • @kumarc4853
      @kumarc4853 3 роки тому

      the mechanism is called circuit breaking, can be implemented in the service or on a reverse proxy

  • @kdakan
    @kdakan Рік тому

    This is a poor explanation of circuit breaker pattern. The problem it solves is not the 5 times retry of service call to MS3. This same retry policy is also in effect on the other services in the chain, so when MS3 fails, MS2 will return an error and MS1 will retry calling MS2 for 5 times, and each call to MS2 will retry the call to MS3 5 times. Overall, MS3 will be called 25 times, MS2 will be called 5 times, so the failure of MS3 will cause a cascading exponential increase of calls, which will slow down the system. Circuit breaker prevents this from happening. If the retry policy is N times, and there are M services making chained calls, a faulting service at the end of the chain causes number of calls in the order of N to the power of M, this is for each call on the first service in the chain, which, when repeated, is enough to take the whole system down. Circuit breaker prevents these cascading failed calls from taking down the system.

  • @marsillusion
    @marsillusion 4 роки тому +3

    Thanks for the video! But dude, you talk too much it took almost 5 minutes to explain the problem...

    • @tantricghost
      @tantricghost 4 роки тому +7

      I thought he explained it really well. Faster would have been too fast.
      Thanks Naren! Please keep these videos coming. We really appreciate it.