botbuilder-community-dotnet icon indicating copy to clipboard operation
botbuilder-community-dotnet copied to clipboard

HttpClient is instantiated for every request

Open markgibbons25 opened this issue 2 years ago • 0 comments

I can see a lot of the code isn't following .NET best practice to reuse HttpClient instances for each domain. Please see details here where it describes:

If you instantiate an HttpClient class for every request, the number of sockets available under heavy loads will be exhausted. This exhaustion will result in SocketException errors.

markgibbons25 avatar Jun 06 '22 05:06 markgibbons25