Тёмный
No video :(

POLLY - RESILIENCY and FAULT HANDLING With HTTP Client | Getting Started With ASP.NET Core Series 

Rahul Nath
Подписаться 32 тыс.
Просмотров 24 тыс.
50% 1

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

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@starman9000
@starman9000 3 года назад
Great video Rahul! This kind of uniqu subject make standout from other dotnet channels! You are a Rock star 🌟
@RahulNath
@RahulNath 3 года назад
Thank you for your continuous encouragement and support Jay!
@riyazbasha7982
@riyazbasha7982 2 года назад
Hi Rahul, I am a big fan of your fabulous content . As microservices is hot cake in the market now, I request you to please do few videos related to how and when to go for microservices , different types of database communications in microservices and cross cutting concerns in the same.
@RahulNath
@RahulNath 2 года назад
Thank you Riyaz! Great suggestion- I’ve been planning some content around micro services architecture. Hopefully will get to it
@1dfe-4e68-bd9f
@1dfe-4e68-bd9f 2 года назад
You explain very well. Thank you Rahul!
@RahulNath
@RahulNath 2 года назад
So nice of you! Thank you!
@worldisone2429
@worldisone2429 3 года назад
This is urgently needed to implement in our application.... Thanks Rahul for the great video...👌
@RahulNath
@RahulNath 3 года назад
My pleasure, Sanju 😀
@kumar_codes
@kumar_codes 3 года назад
Very nice ..Rahul....keep it up!! The contents of urs is very good...
@RahulNath
@RahulNath 3 года назад
Thank you Pritish!
@ylashin78
@ylashin78 3 года назад
Nice to see the new Fiddler GUI of managing rules, in addition to Polly of course 😉
@RahulNath
@RahulNath 3 года назад
Thank you Yousry! Yeah new Fiddler looks good, but limited features at the moment and also has a pricing plan.
@dailystudy3984
@dailystudy3984 2 года назад
Thanks for your effort and turn on the translation, please
@RahulNath
@RahulNath 2 года назад
Thank you . I have the subtitles option turned on, but looks like RU-vid was unable to autogenerate for this one. If you have any specific questions feel free to ask here. Do check out the other videos in this series as well bit.ly/asp-net-core-series
@lipunpatel5937
@lipunpatel5937 2 года назад
This channel is one stop solution for .NET Core.😀
@RahulNath
@RahulNath 2 года назад
Thank you Lipun - The ASP Series is here in case you missed it bit.ly/asp-net-core-series Do let know if you have specific topic suggestions.
@kiranshetty4316
@kiranshetty4316 3 года назад
Superb Rahul and crystal clear . Thanks for the video. well appreciated.
@RahulNath
@RahulNath 3 года назад
Thank you Kiran. Glad it helped!
@balajivenkateswarankrishna8459
@balajivenkateswarankrishna8459 2 года назад
Nice Video. Appreciate your hard work in explaining it in detail. Thanks very much.
@RahulNath
@RahulNath 2 года назад
Glad it was helpful! Hope you are enjoying the full series bit.ly/asp-net-core-series
@ades3967
@ades3967 3 года назад
This deserves so many more views. Great video Rahul
@RahulNath
@RahulNath 3 года назад
Thank you, that's so kind Ade!
@md.ajijulhoque2190
@md.ajijulhoque2190 3 года назад
Thanks Rahul for the great content!!
@RahulNath
@RahulNath 3 года назад
are you using fiddler or fiddler everywhere version? Maybe you can try setting the HttpClient.DefaultProxy explicitly. You can find more details in this post/video www.rahulpnath.com/blog/jwt_authentication_asp_net_web_api/ Lent know if that helps or if you have additional questions.
@md.ajijulhoque2190
@md.ajijulhoque2190 3 года назад
@@RahulNath Thank you for providing the fix, worked by setting default proxy explicitly.
@RahulNath
@RahulNath 3 года назад
@@md.ajijulhoque2190 Glad it helped. Let me know if you have additional questions.
@paddymcglone9079
@paddymcglone9079 3 года назад
Thank you for this great video !
@RahulNath
@RahulNath 3 года назад
Glad it helped Paddy!
@priyankabarde6503
@priyankabarde6503 2 года назад
Excellent Rahul as usul
@RahulNath
@RahulNath 2 года назад
Glad you liked it Priyanka!
@nsajan
@nsajan 3 года назад
Nice! Keep going Rahul.
@RahulNath
@RahulNath 3 года назад
Thanks Sajan. Glad you are liking it!
@MayankSharma-qb6hc
@MayankSharma-qb6hc 2 года назад
Thanks a lot for your work, it really helped me.
@RahulNath
@RahulNath 2 года назад
So happy to hear that Mayank 😀
@rakeshms
@rakeshms 3 года назад
very good videos Rahul.
@RahulNath
@RahulNath 3 года назад
Thank you Rakesh and glad you like it!
@BiffBifford
@BiffBifford 2 года назад
Your shirt is just as awesome as your channel!
@DeepakShaw
@DeepakShaw 6 месяцев назад
Hey Rahul, thanks for the demo. However, I have a request to make a video on IHttpClientFactory With Delegating Handlers also cache the token in serverless scenarios. Looking forward to this..
@RahulNath
@RahulNath 6 месяцев назад
Hey Deepak, Thank you for your continued support here. That is a good suggestion and I have been planning to do some videos around these area of Http client. When you say cache the token are you referring to tokens used to auth with external/http api's?
@DeepakShaw
@DeepakShaw 6 месяцев назад
@@RahulNath Yes Rahul. Looking forward to your video on this topic..
@saravanann1109
@saravanann1109 2 года назад
This video is very informative.
@RahulNath
@RahulNath 2 года назад
Glad it was helpful!
@anandvijayan710
@anandvijayan710 2 года назад
Good content. Thanks for putting this effort.
@RahulNath
@RahulNath 2 года назад
Glad you enjoy it Anand! I'm sure you will like the full series here bit.ly/asp-net-core-series
@maneeshpardeshi4032
@maneeshpardeshi4032 Год назад
U r a genius
@jt099
@jt099 3 года назад
Just found your channel, great content!
@RahulNath
@RahulNath 3 года назад
Welcome aboard Jordan and happy you are liking it. The full ASP NET Series is here ru-vid.com/group/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@jt099
@jt099 3 года назад
@@RahulNath Thanks going to book mark this for sure!!
@RahulNath
@RahulNath 3 года назад
@@jt099 Will look forward to hearing from you.
@smitashirsath3998
@smitashirsath3998 2 года назад
This video is really good. Thank you for shearing knowledge. I have one question I am not able to install Fiddler Everywhere tool on my company laptop because of privacy policies. Can you suggest me the other way to test retry and unauthorized policies for poly. Thank you
@RahulNath
@RahulNath 2 года назад
Thank you Smita. Did you try the Fiddler standalone version? www.telerik.com/download/fiddler Might be good to check with company for exception to install this - great developer tool. Not sure of other ways to do this, could write some custom code, but haven't done that.
@alfullard8887
@alfullard8887 3 года назад
Brilliant content. Please keep up the great work.
@RahulNath
@RahulNath 3 года назад
Awesome thank you for the lovely comment!
@MohammadAlbazel
@MohammadAlbazel 2 года назад
Good topic and good explanation. I really need this in our production apps. Thanks a lot Rahul👍🏻
@RahulNath
@RahulNath 2 года назад
Glad to hear that and happy it helped. Hope you are enjoying other videos in this series bit.ly/asp-net-core-series
@Tanmaygaming0406
@Tanmaygaming0406 2 года назад
Great!
@RahulNath
@RahulNath 2 года назад
Thank you Kushal - The full series is here bit.ly/asp-net-core-series
@Tanmaygaming0406
@Tanmaygaming0406 2 года назад
@@RahulNath I've gone through your every videos!
@RahulNath
@RahulNath 2 года назад
@@Tanmaygaming0406 Wow thank you - hope you are liking them. Do let me know in case you have any suggestions/feedback.
@Tanmaygaming0406
@Tanmaygaming0406 2 года назад
@@RahulNath Can you make something to performance of api / response compression/ microservice using ocelot or open source / you can cover on system design with implementation.
@MrDonald911
@MrDonald911 2 года назад
I know it's bad practice but can I use polly without a client ? Meaning I have many controller actions and each action has data logic inside (without calling an api endpoint), can I use polly as a global middleware for any request so that it applies the retry policy for any 500 response ? Thanks
@RahulNath
@RahulNath 2 года назад
yes it will be a bad practice. You don't need polly for this, you can do exception handler and retry in side if its transient errors. If not I suggest looking at message based interaction, so you can automatically retry by reprocessing the whole message.
@VinayKumar-cz3bu
@VinayKumar-cz3bu Год назад
Great content... Simple and precise:)
@RahulNath
@RahulNath Год назад
Thank you Vinay. Do check out the full series bit.ly/asp-net-core-series
@harrylyod3402
@harrylyod3402 3 года назад
nice content thank you
@RahulNath
@RahulNath 3 года назад
Thank you too Harry. I'm sure you will like the other videos in this series ru-vid.com/group/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP
@abhishekks6782
@abhishekks6782 2 года назад
Please make a video health checks sir 🙏 like S3 using .net core
@RahulNath
@RahulNath 2 года назад
Thank you for the suggestion. Adding to my list for Health Checks! And you can call me Rahul 😀
@RahulNath
@RahulNath 28 дней назад
Here's one on health checks ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9ntrl3KNCpo.html
@avanirathi005
@avanirathi005 2 года назад
Does circuit breaker reset per user session or for all sessions?
@FaizlMuhammed
@FaizlMuhammed 2 года назад
Short and precise, thanks Rahul for explaining well! Can you please share your Polly implementation code url.
@RahulNath
@RahulNath 2 года назад
Thank you Faizal! Sorry missed putting it in description. Have updated it there - Here is the link rahulpnath.visualstudio.com/RU-vid%20Samples/_git/MakingHttpRequest Let me know if you have any other questions.
@FaizlMuhammed
@FaizlMuhammed 2 года назад
@@RahulNath Thanks Rahul :) , we are implementing retry in our core project, Please help to command on the below statement. 1, Request timeout and retry both are different but, we always expect a long request more than 100secs then we should set a timeout span, else all retry will fail?. how about setting an infinite time span setup. 2, When setting up a long request timeout, do we need a retry mechanism? since all our HTTP calls get an operation canceled error when added the timeout is fixed. I understand from your video the relevance of retry. Can you please help to understand the relevance of retrying HTTP call against timeout which is set up to infinite time(Client.Timeout = Timeout.InfiniteTimeSpan ) .
@RahulNath
@RahulNath 2 года назад
@@FaizlMuhammed What's happening on that HTTP request? If it takes so long have you considered moving to a message based processing?
@FaizlMuhammed
@FaizlMuhammed 2 года назад
@@RahulNath Hi Rahul, actually this is an Azure function,Which can be called external apis multiple times in an minute (300 calls in a day). We are getting a response in 05-150 seconds for each request.
@RahulNath
@RahulNath 2 года назад
@@FaizlMuhammed so what is the response ? Any possibility to decouple request and response via messaging ?
@syedfarhan7105
@syedfarhan7105 3 года назад
Can we configure polly in startup class itself, something like a global rule for all HttpClients?
@RahulNath
@RahulNath 3 года назад
Hi Syed, I guess you could. Add a named client with the retry config you want and use that to resolve an instance every time. Are you facing any issues with it?
@donaldanand9563
@donaldanand9563 7 месяцев назад
Why this application is not running in VS 2017. Error : "Current .ndk does not support targeting .net core 2.1."
@vikashsharma5777
@vikashsharma5777 3 года назад
Bhai why so serious ? relax, you are doing great
@RahulNath
@RahulNath 3 года назад
haha thank you Vikash. Getting better on video. Slowly getting there 😀
@RAKESHKUMAR-wv5qr
@RAKESHKUMAR-wv5qr 2 года назад
Hi Rahul, I am planning to use polly retry in service bus topic trigger azure function when cosmos db throws exception? Can we do that?
@RahulNath
@RahulNath 2 года назад
Yes, you can. Depends on what error cosmosdb is throwing and if it makes sense to retry. If the error is not transient, then retrying will only give you back the same error. Hope that helps.
@venkateshpillay7250
@venkateshpillay7250 2 года назад
Thank you sir.. :) One question : How can we test whether the service is retrying 3 times or not without fiddler? (i tried it but it just return 500 error at the end, so i m not sure if retry is happening or not)
@RahulNath
@RahulNath 2 года назад
You could add some logging inside the retry and check that?
@romarathi17
@romarathi17 3 года назад
Is there any way we can implement this in asp.net 4.8 framework? Everywhere we search there are core examples but not without core. Little help would be great :-)
@RahulNath
@RahulNath 3 года назад
Hey Roma, Yes it should be possible. You will need to get an older version thought. This link explains the version compatibility github.com/App-vNext/Polly/wiki/Supported-targets Does that help? What issue are you facing when using it? Do you have a small repo that you can share?
@romarathi17
@romarathi17 3 года назад
@@RahulNath Actually we are yet to implement it in our project and doing some RND on that but could not find an example like you share in your video for core same as that for (without core). An example is all that is needed from where we can find a starting point. We have ample of api's and adding a code for every api will not be an optimal solution so..
@RahulNath
@RahulNath 3 года назад
@@romarathi17 Cool makes sense. I think it will be very much the same as with the .NET core. It's been a while since I have used it with .NET fwk. But once you get to implement and if you run into issues, share me a sample repo and I can take a look.
@FaizlMuhammed
@FaizlMuhammed 2 года назад
Hi Rahul, I have implemented policy retry in our project. One doubt if all retry did I don't want to return with an exception instead. The next line code after the HTTP call should execute. Can you please help on this.
@RahulNath
@RahulNath 2 года назад
You can handle the exception in Polly and specify what should happen in that case - More details here github.com/App-vNext/Polly/wiki/Retry Let know if that helps.
@Tanmaygaming0406
@Tanmaygaming0406 2 года назад
Hey Rahul! I noticed one stuff, I have one API which does response compression ..... Output for this api in JSON giving me in compressed form which I can't read but browser is giving me right result.... Why so? How I can resolve this?
@RahulNath
@RahulNath Год назад
Hope you resolved this issue Kushal
@rajatetn92
@rajatetn92 2 года назад
How can we log the retries handled by Polly?
@RahulNath
@RahulNath 2 года назад
Is it something like this you are looking for? stackoverflow.com/questions/42952057/polly-policy-to-log-exception-and-rethrow
@krishangill4137
@krishangill4137 2 года назад
Make video in hindi also
@RahulNath
@RahulNath 2 года назад
Thank you for the suggestion Krishan, but I don't speak Hindi that fluently! 😀
@imransiddiqui6350
@imransiddiqui6350 2 года назад
voice and video is not in sync.
@RahulNath
@RahulNath 2 года назад
Sorry to hear that - first time getting that comment. Curious are you listening on a Bluetooth headset or a wired one?
Далее
Building the world's LARGEST iPhone
32:05
Просмотров 214 тыс.
The CORRECT way to implement Retries in .NET
17:01
Просмотров 87 тыс.