The Brand New Way to do Fault Handling in Polly V8

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

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

  • @MilanJovanovicTech
    @MilanJovanovicTech  Год назад +3

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

  • @pepega8572
    @pepega8572 9 месяцев назад +1

    Bro, your content is amazing. This is the second time I've needed to figure out how to use new library, and you help me with this. Thanks!) Keep doing this way)

  • @sanampakuwal
    @sanampakuwal Год назад +8

    The Performance Improvement is literally impressive (mainly 0 allocation)

  • @מתןשולמן
    @מתןשולמן Год назад +3

    great video, Milan. Your explanations are always top-notch. Thank you and keep up the good work!

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

    Amazing content! Thanks Milan for your sharing.

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

    I've been playing around with this new version for a few hours now, and it's much easier to grasp then the previous version. Could you have a go at a video on the Dynamic Reload functionality? I think it would be good to see that in action for concurrent rate limit, retry and circuit breaker options.

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

      Will take a look at it!

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

      @@MilanJovanovicTech I just found this video, a circuit breaker would be awesome, especially in a microservice architecture, when for example you have a lot of messages to process and you are relying on an external API that can fail, so instead of only retrying we should stop trying for a specific time. Looking forward to this content in the next video ;)
      BTW another useful video. Thank you!

  • @Sammy2100
    @Sammy2100 8 месяцев назад

    I am switching to this ASAP. Thanks for sharing.

    • @MilanJovanovicTech
      @MilanJovanovicTech  8 месяцев назад +1

      Check out this: www.milanjovanovic.tech/blog/building-resilient-cloud-applications-with-dotnet

    • @Sammy2100
      @Sammy2100 8 месяцев назад

      @@MilanJovanovicTech yes, I got this email notification and found this video from it.
      i have updated my .net8 code using this and its awesome. Thanks.

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

    Interesting new concept of the library. Gonna look how the new http extensions package looks like, in most cases I prefer adding policies (strategies) when registering http client as factory in DI.
    The important thing to mention: Polly v8 doesn't need a Wrap to combine policies, it combines them automatically. And othe order is FIFO instead of FILO in Wrap policy in v7

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

      I'll have to check for wrapping. The one test I did I got some strange behavior in the end.

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

      @@MilanJovanovicTech I read about wrapping on the official site

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

    As I was introduced to this kind of technique for the first time by this video, I just wonder what is the performance benefit over try-catch.

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

      The benefit is fault handling and recovering from the exception - not necessarily the performance

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

    excellent work.

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

    Could you please make a video on best practices with sample examples on exception handling in mvc core applications

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

      Check this out for the time being: ruclips.net/video/H3EbflpXVmo/видео.html

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

      @@MilanJovanovicTech Thanks 🙏

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

    Impressive video.

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

    Can you still hook it into service container for HttpClient? That's how I've generally used it to handle 5xx errors for all added clients.

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

    In a clean architecture, where is the best place to put resilience strategies? in endpoints, applicatio layer, infra?

  • @josefromspace
    @josefromspace 11 месяцев назад

    Great video, thank you very much.

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

    How about unit Testing an Mocking the new Poly plicies in your code?

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

      since it supports DI and is fully based on instances now, I think it makes it even easier to prep and test the policies honestly :0

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

      Isn't it easier than with a static class?

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

      @@MilanJovanovicTech Question is: should you even mock the policies? I'd say no. Because in reality you want to test the scenario where the code fails for which you use the polly pipelines

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

    Great

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

    Please make a video on latest
    Microsoft.Extensions.Resilience library

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

    Please create a video building Unit test for http clients and retry policies.

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

    Is it just me or the new builder stuff seems a step back?
    I mean, it probably would benefit some complex policy composition, but for simpler policies seems to be an awful lot of additional code needed to have the same result.
    Performance improvements are impressive, though...

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

      I don't mind it, since you probably define these policies in one place and reuse them

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

    Using magic strings is always something that worries me.
    "How many refs does your di-pipeline-provider have / is it used at all?". [Ctrl]+[Shift]+[F] to the rescue 😖
    "Great, no compile errors" ... Runtime steps in and alerts you about a typo in your magic string 🎉

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

      It's a demo damn it... Of course you will use constants 😁

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

    The syntax has become too verbose.

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

    over confusing. Static version was lot easier

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

      They did it for the other optimizations they get from the new approach

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

      Easier != Better

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

    Way to complicated

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