Тёмный

The Brand New Way to do Fault Handling in Polly V8 

Milan Jovanović
Подписаться 99 тыс.
Просмотров 18 тыс.
0% 0

Опубликовано:

 

4 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@MilanJovanovicTech
@MilanJovanovicTech 11 месяцев назад
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@sanampakuwal
@sanampakuwal 11 месяцев назад
The Performance Improvement is literally impressive (mainly 0 allocation)
@MilanJovanovicTech
@MilanJovanovicTech 11 месяцев назад
They did a great job 😁
@pepega8572
@pepega8572 4 месяца назад
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 4 месяца назад
Glad it was helpful! :)
@kodindoyannick5328
@kodindoyannick5328 17 дней назад
Amazing content! Thanks Milan for your sharing.
@MilanJovanovicTech
@MilanJovanovicTech 16 дней назад
My pleasure!
@antonmartyniuk
@antonmartyniuk 11 месяцев назад
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 11 месяцев назад
I'll have to check for wrapping. The one test I did I got some strange behavior in the end.
@antonmartyniuk
@antonmartyniuk 11 месяцев назад
@@MilanJovanovicTech I read about wrapping on the official site
@user-vb5pg3pm3z
@user-vb5pg3pm3z 11 месяцев назад
great video, Milan. Your explanations are always top-notch. Thank you and keep up the good work!
@MilanJovanovicTech
@MilanJovanovicTech 11 месяцев назад
Glad you like them!
@richardaubin1951
@richardaubin1951 10 месяцев назад
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 10 месяцев назад
Will take a look at it!
@tjagusz
@tjagusz 4 месяца назад
@@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 3 месяца назад
I am switching to this ASAP. Thanks for sharing.
@MilanJovanovicTech
@MilanJovanovicTech 3 месяца назад
Check out this: www.milanjovanovic.tech/blog/building-resilient-cloud-applications-with-dotnet
@Sammy2100
@Sammy2100 3 месяца назад
@@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.
@yasirirfan5262
@yasirirfan5262 Месяц назад
excellent work.
@MilanJovanovicTech
@MilanJovanovicTech Месяц назад
Many thanks!
@vikas4483
@vikas4483 10 месяцев назад
Could you please make a video on best practices with sample examples on exception handling in mvc core applications
@MilanJovanovicTech
@MilanJovanovicTech 10 месяцев назад
Check this out for the time being: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-H3EbflpXVmo.html
@vikas4483
@vikas4483 10 месяцев назад
@@MilanJovanovicTech Thanks 🙏
@okcharles7
@okcharles7 11 месяцев назад
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 11 месяцев назад
The benefit is fault handling and recovering from the exception - not necessarily the performance
@PKMuhammedSaeed
@PKMuhammedSaeed 5 месяцев назад
Please make a video on latest Microsoft.Extensions.Resilience library
@MilanJovanovicTech
@MilanJovanovicTech 5 месяцев назад
Good suggestion
@baranacikgoz
@baranacikgoz 11 месяцев назад
Impressive video.
@MilanJovanovicTech
@MilanJovanovicTech 11 месяцев назад
Thank you very much!
@josefromspace
@josefromspace 6 месяцев назад
Great video, thank you very much.
@MilanJovanovicTech
@MilanJovanovicTech 6 месяцев назад
You are welcome!
@PelFox
@PelFox 11 месяцев назад
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 11 месяцев назад
Yes, you can still use the Polly extensions package
@tiagosantos2136
@tiagosantos2136 4 месяца назад
In a clean architecture, where is the best place to put resilience strategies? in endpoints, applicatio layer, infra?
@MilanJovanovicTech
@MilanJovanovicTech 4 месяца назад
Probably infra
@antondoit
@antondoit 7 месяцев назад
Great
@MilanJovanovicTech
@MilanJovanovicTech 7 месяцев назад
Thank you!
@claudiovalerio7253
@claudiovalerio7253 10 месяцев назад
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 10 месяцев назад
I don't mind it, since you probably define these policies in one place and reuse them
@MsbowElite
@MsbowElite 8 месяцев назад
Please create a video building Unit test for http clients and retry policies.
@MilanJovanovicTech
@MilanJovanovicTech 8 месяцев назад
Good idea
@exeC13
@exeC13 11 месяцев назад
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 11 месяцев назад
It's a demo damn it... Of course you will use constants 😁
@xxXAsuraXxx
@xxXAsuraXxx 7 месяцев назад
is AddResiliencePipeline scope or transient?
@MilanJovanovicTech
@MilanJovanovicTech 7 месяцев назад
"The resilience pipelines are registered in the DI container as transient services." - www.pollydocs.org/advanced/dependency-injection.html
@xxXAsuraXxx
@xxXAsuraXxx 7 месяцев назад
I see but it’s cached so it won’t be a new pipeline instance everytime thanks
@santoshr4212
@santoshr4212 Месяц назад
over confusing. Static version was lot easier
@MilanJovanovicTech
@MilanJovanovicTech Месяц назад
They did it for the other optimizations they get from the new approach
@AlexDresko
@AlexDresko Месяц назад
Easier != Better
@aakashamatya3580
@aakashamatya3580 10 месяцев назад
The syntax has become too verbose.
@MilanJovanovicTech
@MilanJovanovicTech 10 месяцев назад
Yes. We'll see where they take it.
@ronaldschutte7948
@ronaldschutte7948 10 месяцев назад
Way to complicated
@MilanJovanovicTech
@MilanJovanovicTech 10 месяцев назад
Not much different. We'll see where they go from here.
@squadwuschel
@squadwuschel 11 месяцев назад
How about unit Testing an Mocking the new Poly plicies in your code?
@lettuceturnipthebeets790
@lettuceturnipthebeets790 11 месяцев назад
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 11 месяцев назад
Isn't it easier than with a static class?
@W1ese1
@W1ese1 11 месяцев назад
@@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
@techpc5453
@techpc5453 10 месяцев назад
@MilanJovanovicTech
@MilanJovanovicTech 10 месяцев назад
👋
Далее
Fix Your Controllers By Refactoring To Minimal APIs
14:56
Cute kitty gadget 💛💕
00:23
Просмотров 4,3 млн
Vertical Slice Architecture Project Setup From Scratch
22:43
7 Serilog Best Practices for Better Structured Logging
13:36
HTTP Polling vs SSE vs WebSocket vs WebHooks
22:22
Просмотров 4,4 тыс.
Brutally honest advice for new .NET Web Developers
7:19
Don't Use Polly in .NET Directly. Use this instead!
14:58
The Only .NET Scheduler You Should Be Using!
16:38
Просмотров 50 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 274 тыс.
The Logging Everyone Should Be Using in .NET
15:34
Просмотров 63 тыс.