7 ms·
SimpleW – Web Server Library .NET Core
- anditherobot 1y agoDoes this mean a developer doesn't have to install nginx or iis ?
- andix 1y agoNo modern dotnet web framework requires nginx or iis.
- tucaz 1y agoThis has been the case for years
- kcb 1y agohttps://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-9.0 https://learn.microsoft.com/en-us/aspnet/core/fundamentals/s...
- SideburnsOfDoom 1y agoHave you tried Kestrel, YARP and Aspire?
- tracker1 1y agoI'm not familiar with YARP, but isn't Aspire still using Kestral? I think of Aspire as more of a code driven, flexible Docker-Compose alternative.
- SideburnsOfDoom 1y agoYARP is (Yet Another) Reverse Proxy, and Aspire is in a similar space to Testcontainers - i.e. orchestration of multiple executables for test (and other things). No it's not an alternative to Kestrel. These are three different tools that do different things. The point is that these are better examples of the "modern MS ASP Infra" space than "nginx, iis".
- prodbro 1y ago> Does this mean a developer doesn't have to install nginx or iis ? author here. You don't have to keep it behind a reverse proxy like nginx. But you can, especially if you have multiple APIs and you want to keep thing separated for security reason. Example : nginx:443 (reverse proxy, domain name routing) | |-> website1:8081 - docker container with SimpleW |-> website2:8082 - docker container with SimpleW | ...
- p_ing 1y agoA web server should never be directly exposed to the Internet, provided you care about the web server host or what's behind it.
- ofrzeta 1y ago> A web server should never be directly exposed to the Internet That's what web servers are made for, no? Like Apache, Nginx etc. I mean, you could certainly put HAProxy in front but you'd need a good reason to do this.
- CharlieDigital 1y agoThis is not the case for the modern Internet. More often than not, for any serious application backend, you probably want a web application firewall (WAF) in front of it and SSL termination upstream of the web server.
- SideburnsOfDoom 1y agoAnd also a reverse proxy / Load balancer in front of multiple Webserver instances.
- qingcharles 1y agoASP.NET Core comes with its own built-in web server named Kestrel, which is very highly optimized. On most projects, I use it totally bare-metal, though I figure most run it behind a reverse proxy like nginx or yarp.
- andix 1y agoBut why? ASP.NET Core is one of the best web frameworks, extremely modular and flexible. It's low level components (http server, routing) can be used as a foundation for new web frameworks.
- taspeotis 1y agoI agree that ASP.NET Core is fantastic and it doesn’t give you many reasons to look elsewhere. That said I think some diversity / competition / cross-pollination should be welcomed in the .NET space. Not a fair comparison but I’m glad Avalonia exists despite WPF, for example.
- nirav72 1y agoI was wondering samething. But then I saw that it has some built-in capabilities for WebSockets and OpenTelemetry.
- doubleorseven 1y agoseems like the author didn't like the obvious or alternative solutions out there, and went and created one of his own. i know some people who use their own web server, this is an on going adventure for sure.
- whoknowsidont 1y ago>ASP.NET Core is one of the best web frameworks ...based on what?
- andix 1y ago
- mrweasel 1y agoAt a quick glance it looks much simpler than e.g. Kestrel, which I found pretty confusing to get running.
- prodbro 1y agoauthor here. that's the reason why i start the project. I had time and wanted something simple as my needs.
- bob1029 1y agoNot 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.
- aanthonymax 1y agoThe documentation on VitePress looks cool. I didn't think there was such a theme there.
- prodbro 1y agoVitePress saved my day. The default template is great and everything in VitePress has been thinking to create documentation. Very nice project.