Menu
![]() ![]() Using Task.Run in that context actually reduces scalability because you're reducing the number of threads available to handle new requests. Generally, with ASP.NET there is one thread per request and you want to be able to handle as many requests concurrently as possible. As it turns out, using thread pool threads doesn't make much sense when you're serving a web page. There are certainly a number of advantages to using async/await with ASP.NET Core, but the same cannot be said for Task.Run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |