4 ms·
Not sure about this one. It's based on NetCoreServer which is great but it's definitely not something I'd be comfortable putting into production over kestrel or
by bob1029 1y ago
Not sure about this one. It's based on NetCoreServer which is great but it's definitely not something I'd be comfortable putting into production over kestrel or IIS.
From a performance standpoint, it is very difficult to beat kestrel now. If you don't want all the fancy Microsoft bullshit (I certainly don't), use the minimal APIs and map out routes to lightweight HttpContext handlers.
- bravesoul2 1y agoI wonder. Is this one meant to deal with raw internet traffic or sit behind an ingress e.g. IIS?
- brainzap 1y agominimal APIs is microsoft bullshit also what does performance matter on webservers
- bob1029 1y ago> minimal APIs is microsoft bullshit Agreed, but it is the least smelly pile they have on offer. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/overview?view=aspnetcore-9.0 https://learn.microsoft.com/en-us/aspnet/core/fundamentals/m...
- qingcharles 1y agoPerformance matters to me. I'm on a budget, running tiny Hetzner boxes. Every cycle counts.
- sandreas 1y agoThere's also Fast Endpoints[1], which Kind of the best of both worlds, minimal-API and REPR. 1: https://fast-endpoints.com/ https://fast-endpoints.com/
- tracker1 1y agoCame to mention the same... really like FastEndpoints myself a lot.
- pier25 1y agoSame although Minimal APIs are slowly getting there. In dotnet 10 we will finally get validation.
- tracker1 1y agoFair enough... I'd probably stick to Minimal APIs if there were fewer than 5-10 routes in a smaller service. But, with the startup and runtime overhead of .Net, I'm inclined to prefer more monolithic approaches for most general use. Just without weighing it down with a lot of heavy handed enterprisey abstractions. Edit: Of course, Aspire definitely looks interesting for more complex needs.
- prodbro 1y ago> There's also Fast Endpoints[1] thank for the pointer ! The syntax seems cool and comprehensive, i like it. I made some test and like its name, it is very fast : performances are closed to SimpleW, just a little bellow. But its memory footprint is the half, so i'm impressed. I will check the code, sure there are interesting things into.
- phendrenad2 1y agoFor the uninitiated, what's wrong with NetCoreServer?
- oconnor0 1y agoI really wish that Kestrel was available as a standalone library. Kind of like Jetty on the JVM.