Which component handles thread distribution in ASP.NET Core?

In previous versions of asp.net, the structure was responsible for distributing all the threads from the thread pool, and the setting was configured in the web.config setting (maximum number of threads, etc.). So, which component is responsible for it in the new ASP.NET? I did not find any special middleware for this, I assume that this should happen before the middleware, perhaps in Kestrel.

+5
source share
1 answer

Threadpool is a CLR resource that can be configured directly in your Startup https://msdn.microsoft.com/en-us/library/system.threading.threadpool%28v=vs.110%29.aspx .

I think that you are actually asking, adjusts how many threads the servers will use to process requests, right? See https://github.com/aspnet/KestrelHttpServer/blob/01e9101543906ffd39239efd2f7bb41dbd879902/src/Microsoft.AspNetCore.Server.Kestrel/KestrelServerOptions.cs#L90

+5
source

Source: https://habr.com/ru/post/1234528/


All Articles