The Brand New Way to do Fault Handling in Polly V8

  Рет қаралды 18,729

Milan Jovanović

Milan Jovanović

Күн бұрын

Пікірлер: 62
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@pepega8572
@pepega8572 6 ай бұрын
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)
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Glad it was helpful! :)
@nepalxplorer
@nepalxplorer Жыл бұрын
The Performance Improvement is literally impressive (mainly 0 allocation)
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
They did a great job 😁
@מתןשולמן
@מתןשולמן Жыл бұрын
great video, Milan. Your explanations are always top-notch. Thank you and keep up the good work!
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
Glad you like them!
@kodindoyannick5328
@kodindoyannick5328 2 ай бұрын
Amazing content! Thanks Milan for your sharing.
@MilanJovanovicTech
@MilanJovanovicTech 2 ай бұрын
My pleasure!
@richardaubin1951
@richardaubin1951 Жыл бұрын
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 5 ай бұрын
@@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 5 ай бұрын
I am switching to this ASAP. Thanks for sharing.
@MilanJovanovicTech
@MilanJovanovicTech 5 ай бұрын
Check out this: www.milanjovanovic.tech/blog/building-resilient-cloud-applications-with-dotnet
@Sammy2100
@Sammy2100 5 ай бұрын
@@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 Жыл бұрын
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 Жыл бұрын
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 3 ай бұрын
excellent work.
@MilanJovanovicTech
@MilanJovanovicTech 3 ай бұрын
Many thanks!
@vikas4483
@vikas4483 Жыл бұрын
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: kzbin.info/www/bejne/fmSok5mipb2Jo9E
@vikas4483
@vikas4483 Жыл бұрын
@@MilanJovanovicTech Thanks 🙏
@PelFox
@PelFox Жыл бұрын
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.
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
Yes, you can still use the Polly extensions package
@baranacikgoz
@baranacikgoz Жыл бұрын
Impressive video.
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
Thank you very much!
@tiagosantos2136
@tiagosantos2136 6 ай бұрын
In a clean architecture, where is the best place to put resilience strategies? in endpoints, applicatio layer, infra?
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Probably infra
@josefromspace
@josefromspace 7 ай бұрын
Great video, thank you very much.
@MilanJovanovicTech
@MilanJovanovicTech 7 ай бұрын
You are welcome!
@PKMuhammedSaeed
@PKMuhammedSaeed 6 ай бұрын
Please make a video on latest Microsoft.Extensions.Resilience library
@MilanJovanovicTech
@MilanJovanovicTech 6 ай бұрын
Good suggestion
@claudiovalerio7253
@claudiovalerio7253 Жыл бұрын
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
@squadwuschel
@squadwuschel Жыл бұрын
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 Жыл бұрын
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
@MsbowElite
@MsbowElite 10 ай бұрын
Please create a video building Unit test for http clients and retry policies.
@MilanJovanovicTech
@MilanJovanovicTech 10 ай бұрын
Good idea
@antondoit
@antondoit 9 ай бұрын
Great
@MilanJovanovicTech
@MilanJovanovicTech 9 ай бұрын
Thank you!
@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 Жыл бұрын
It's a demo damn it... Of course you will use constants 😁
@santoshr4212
@santoshr4212 2 ай бұрын
over confusing. Static version was lot easier
@MilanJovanovicTech
@MilanJovanovicTech 2 ай бұрын
They did it for the other optimizations they get from the new approach
@AlexDresko
@AlexDresko 2 ай бұрын
Easier != Better
@aakashamatya3580
@aakashamatya3580 11 ай бұрын
The syntax has become too verbose.
@MilanJovanovicTech
@MilanJovanovicTech 11 ай бұрын
Yes. We'll see where they take it.
@ronaldschutte7948
@ronaldschutte7948 Жыл бұрын
Way to complicated
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
Not much different. We'll see where they go from here.
@techpc5453
@techpc5453 Жыл бұрын
@MilanJovanovicTech
@MilanJovanovicTech Жыл бұрын
👋
Request Response Messaging Pattern with MassTransit
17:48
Milan Jovanović
Рет қаралды 15 М.
Middleware Pattern For HttpClient With Delegating Handlers
17:07
Milan Jovanović
Рет қаралды 15 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 81 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 43 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 14 МЛН
The Best Way to Add Health Checks in Any .NET App
12:31
Nick Chapsas
Рет қаралды 92 М.
The RIGHT Way To Use HttpClient In .NET
11:46
Milan Jovanović
Рет қаралды 60 М.
Make Your HttpClient Resilient - Circuit Breaker, Retry, Timeout
19:23
Milan Jovanović
Рет қаралды 1,4 М.
The Easiest Way to Create PDFs in .NET
9:47
Nick Chapsas
Рет қаралды 120 М.
Adding Filtering, Sorting And Pagination To a REST API | .NET 7
24:02
Milan Jovanović
Рет қаралды 57 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 67 М.
Sam Altman Stunned As Company "LEAKS" GPT-5 Details Early...
15:02
Fix Your Controllers By Refactoring To Minimal APIs
14:56
Milan Jovanović
Рет қаралды 42 М.
How To Build Loosely Coupled Microservices With MassTransit
23:01
Milan Jovanović
Рет қаралды 36 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 81 МЛН