0

I am using asp.net core 2.1.6 I have just changed my Microsoft.aspnetcore.all to Microsoft.NETCore.App as publishing the web api project is making too much size. In my code i were using use UseLibuv(o => o.ThreadCount = 1000) to set minmum thread count

public static IWebHostBuilder BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args)
                .UseStartup<StartupShutdownHandler>()
                //.UseLibuv(o => o.ThreadCount = 1000)  
                ;

Now this option is not coming. How can i set min threads now like old one

It is bit related to Is Kestrel using a single thread for processing requests like Node.js?

Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93

1 Answers1

1

For UseLibuv, it's under Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv package, you could try to install Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv from nuget.

Edward
  • 28,296
  • 11
  • 76
  • 121
  • 1
    Would there be any performance different between using `Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv` and not? – mugi Sep 02 '19 at 02:18
  • @mugi that would be up to your testing. Microsoft claims their implementation is faster, but considering the history, it might be worth it to do you own independent testing. I am currently testing a high load high throughput scenario, and will let you know my result here. – christopher clark Oct 20 '20 at 18:41