HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How To Use HTTP CLIENT IN ASP NET CORE Applications | Getting Started With ASP.NET Core Series

56,531 views October 10, 2020 20:11

Watch on YouTube
ChannelRahul Nath

Description from the creator

Hi Friends, The original and well-known HttpClient class can be easily used, but in some cases, it isn't being properly used by many developers. There are different issues that you can run into when instantiating and using the HttpClient class directly in your application code. You can run into multiple open connections, socket exhaustion, failure
to handle underlying DNS changes, etc. To address all these issues, .NET Core has the IHttpClientFactory interface that can be used to
configure and create HttpClient instances.

In this video, I will walk you through the common mistakes that we run into when creating and managing HttpClient instances ourselves.
I will show how you netstat to inspect the underlying socket connections that are opened when we create HttpClient instances and how the code we write affects it. I will then show you how to fix those using the IHttpClientFactory and the different consumption patterns
available - Basic, Named, and Typed client instances.

🔗Are You Using HttpClient in The Right Way? - rahulpnath.com/blog/are_you_using_httpclient_in…
🔗HTTP Requests using IHttpClientFactory - docs.microsoft.com/en-us/aspnet/core/fundamenta…
🔗Issues with HttpClient - docs.microsoft.com/en-us/dotnet/architecture/mi…
🔗Netstat - docs.microsoft.com/en-us/windows-server/adminis…
🔗Source Code - rahulpnath.visualstudio.com/DefaultCollection/Y…

Additional Watching
📹Configuration in ASP NET Core - youtube.com/watch?v=5GlgHV_12-k
📹Dependency Injection in ASP NET Core - youtube.com/watch?v=YR6HkvNBpX4
📹ASP NET Core Series - youtube.com/playlist?list=PL59L9XrzUa-nqfCHIKaz…

Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - rahulpnath.com/subscribe
🐦Twitter - twitter.com/rahulpnath
📸Instagram - instagram.com/rahulpnath/

🎥 Recording Setup and Workflow - rahulpnath.com/blog/youtube_setup_and_workflow/

Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

About this tutorial

Rahul Nath published this 20:11 video tutorial on October 10, 2020. It has been watched 56,531 times on YouTube.

Channel
Rahul Nath
Duration
20:11
Published
October 10, 2020
Views
56,531
Likes
1,585

Tags

Share

This tutorial in other languages