You Are Using HttpClient Wrong

  Рет қаралды 4,494

Codewrinkles

Codewrinkles

Күн бұрын

Пікірлер: 37
@alexandernava9275
@alexandernava9275 Жыл бұрын
Yes factory would be amazing! Also a more over head how factories work/common practices would be amazing.
@Codewrinkles
@Codewrinkles Жыл бұрын
Noted!
@viorelbuliga1107
@viorelbuliga1107 Жыл бұрын
Valuable video! Looking forward to see the video about IHttpClientFactory.
@Codewrinkles
@Codewrinkles Жыл бұрын
Thanks for watching.
@farhadsu
@farhadsu Жыл бұрын
Please, do the video about IHttpClientFactory...
@Codewrinkles
@Codewrinkles Жыл бұрын
Will do
@DeepWorksStudios
@DeepWorksStudios Жыл бұрын
Thank you for this valuable content :) Keep it up!
@Codewrinkles
@Codewrinkles Жыл бұрын
Thanks, will do!
@alexkanunnikov4908
@alexkanunnikov4908 Жыл бұрын
Please, do the video about IHttpClientFactory)))
@Codewrinkles
@Codewrinkles Жыл бұрын
Noted.Thanks!
@williamliu8985
@williamliu8985 Жыл бұрын
Thanks for sharing! Should I use the AddHttpClient extension? or use HttpClientFactory inject in service?
@Codewrinkles
@Codewrinkles Жыл бұрын
Those go hand in hand. I will do the video on IHttpClientFactory :)
@user-dc9zo7ek5j
@user-dc9zo7ek5j Жыл бұрын
.AddHttpClient allows you to use IHttpClientFactory, and if I'm not mistaken, there isn't any other way to configure it, because the default class (DefaultHttpClientFactory) is internal. Of course you can roll your own and register it, but I don't see any reason.
@RudyRdx
@RudyRdx Жыл бұрын
thankyou, pls do the video !!
@Codewrinkles
@Codewrinkles Жыл бұрын
Sure thing!
@alexmel8448
@alexmel8448 Жыл бұрын
why is bad to have much open connections ?
@Codewrinkles
@Codewrinkles Жыл бұрын
I have explained it during the video. The connections are kept open for a long time, depending on the MSL. If you have an app with heavy load, at a certain point you won't have any sockets available for new connections. It's called socket exhaustion and it's a very common problem in production apps that don't use the HttpClient correctly.
@alexmel8448
@alexmel8448 Жыл бұрын
@@Codewrinkles Thanks
@danielvanderstelt
@danielvanderstelt Жыл бұрын
I dont know on which video to post it so here it goes. In many of your videos I saw EF sql queries neatly logged on your console. I cannot seem to get it in a nice and clear way. In the source I cannot find it configured. So ... Maybe a hint on that?😊 ( and yes to httpfactory video )
@Codewrinkles
@Codewrinkles Жыл бұрын
Hey, thanks for getting in touch. The thing is, I haven't configured anything. I think it's the default at the queries are logged by EF Core. As you are a new member, please also consider joinning our Discord community.We have a lot of nice discussions there, regular hangouts and there is a bunch of very nice guys there.
@alexmidnayt159
@alexmidnayt159 Жыл бұрын
we need that video about IHttpClient!))))
@Codewrinkles
@Codewrinkles Жыл бұрын
Working on it!
@luis1118
@luis1118 Жыл бұрын
Thanks
@Codewrinkles
@Codewrinkles Жыл бұрын
Welcome
@rorysanchez
@rorysanchez Жыл бұрын
Ihttpclientfactory pretty please!
@Codewrinkles
@Codewrinkles Жыл бұрын
Working on it.
@zimcoder
@zimcoder Жыл бұрын
What click baity title, I'm using the factory already
@Codewrinkles
@Codewrinkles Жыл бұрын
Clickbaity or not, but how are you using IHttpClientFactory in .NET Framework apps? I think this video contains some very valuable and explicit information about potential problems that people might face if they don't know how exactly things happen under the hood of the HttpClient.
@FreaksSpeaks
@FreaksSpeaks Жыл бұрын
I use factory as well, but I learned more how httpclient works. Thanks.
@user-dc9zo7ek5j
@user-dc9zo7ek5j Жыл бұрын
@@Codewrinkles He has a point, when I read the titles I expect something that almost everybody misuses.
@FreemanFromSteppe
@FreemanFromSteppe Жыл бұрын
thank you!
@Codewrinkles
@Codewrinkles Жыл бұрын
Welcome!
@alexmel8448
@alexmel8448 Жыл бұрын
can you explain how to use "netstat | find" I try But I did not succeed
@Codewrinkles
@Codewrinkles Жыл бұрын
well, it's not that complicated. it's netstat | fubd "{the string you are looking for}". In my case I have run netstat previously and noticed that the connection from my console app have my computer name and port so I placed that as my search term. to reproduce this, just run netstat and look into all the connections. Then you'll know what you want to filter on.
@alexmel8448
@alexmel8448 Жыл бұрын
@@Codewrinkles thanks
@alexmel8448
@alexmel8448 Жыл бұрын
Please, do the video about IHttpClientFactory)))
@Codewrinkles
@Codewrinkles Жыл бұрын
Noted. Thanks for watching
Can I Run  .NET 7 Minimal API in a Windows Service?
13:25
Codewrinkles
Рет қаралды 10 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Don't Use AutoMapper in C#! Do THIS Instead!
16:17
Codewrinkles
Рет қаралды 72 М.
The CORRECT way to implement Retries in .NET
17:01
Nick Chapsas
Рет қаралды 89 М.
Why I Prefer HANDLERS Instead of SERVICES?
4:34
Codewrinkles
Рет қаралды 6 М.
RestSharp and C# is HTTP requests on easy mode. Find out why.
11:25
Dangers of using IHttpContextAccessor
15:44
Raw Coding
Рет қаралды 13 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 77 М.
5 (Extreme) Performance Tips in C#
12:26
LevelUp
Рет қаралды 76 М.
Why all your classes should be sealed by default in C#
11:43
Nick Chapsas
Рет қаралды 93 М.