But 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.
SimpleW – Web Server Library .NET Core
41–50 of 80 posts
Re: SimpleW – Web Server Library .NET Core
#42Earlier quoted context omitted.
Curious what the use-case is where JIT latency is an issue for a http service?
We are fairly high traffic. Deployments, even rolling, can and do cause fairly noticeable latency spikes and side effects like upstream services having to queue requests, pool escalations, all sorts. Warming stuff up before first hit is a complete bitch on top of that. I notice Apple had similar problems and moved some of their back end to Swift from JVM recently. There was a post on here.
I have some heavy ASP.Net stuff too, yep, we have to prewarm it before putting into production.
Re: SimpleW – Web Server Library .NET Core
#43Not 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.
minimal APIs is microsoft bullshit also what does performance matter on webservers
Re: SimpleW – Web Server Library .NET Core
#44Earlier quoted context omitted.
The library's tagline says "Powerfully Simple. Blazingly Fast." So there. ::folds arms:: Joking aside, I do agree that ASP.NET Core is a behemoth. On .NET 9, I just now did `dotnet new webapi` followed by `dotnet publish --self-contained -p:PublishSingleFile=true` and the binary is 103MB. That would blow up the size of a mobile app considerably, just to listen to HTTP. There a separate use case that SimpleW won't sol…
> The library's tagline says "Powerfully Simple. Blazingly Fast." > Joking aside author here. I agree with your remark ^^ Each time i read some news about a new framework with tag "blazingly fast", i'm thinking "lol". So i had to resist to the temptation... And finaly when doing a small benchmark, performances were not bad at all ( https://stratdev3.github.io/SimpleW/guide/performances.html ) and i let the "clickbait…
app.MapGet("/api/test/hello", () => "Hello World!");
As a general web server, I think I'd always go for Kestrel over this, but as another poster said, if you're trying to add an endpoint to some desktop application, this would be perfect.
Re: SimpleW – Web Server Library .NET Core
#45Earlier quoted context omitted.
>ASP.NET Core is one of the best web frameworks ...based on what?
In total. Just compare different web frameworks by performance, flexibility, features and so on. Whatever you compare, ASP.NET Core will probably end up in the top 20%.
Re: SimpleW – Web Server Library .NET Core
#46Does this mean a developer doesn't have to install nginx or iis ?
Re: SimpleW – Web Server Library .NET Core
#47Does this mean a developer doesn't have to install nginx or iis ?
> 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 | ...
Re: SimpleW – Web Server Library .NET Core
#48But 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.
The library's tagline says "Powerfully Simple. Blazingly Fast." So there. ::folds arms:: Joking aside, I do agree that ASP.NET Core is a behemoth. On .NET 9, I just now did `dotnet new webapi` followed by `dotnet publish --self-contained -p:PublishSingleFile=true` and the binary is 103MB. That would blow up the size of a mobile app considerably, just to listen to HTTP. There a separate use case that SimpleW won't sol…
Re: SimpleW – Web Server Library .NET Core
#49Earlier quoted context omitted.
> 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 | ...
A web server should never be directly exposed to the Internet, provided you care about the web server host or what's behind it.
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.
Re: SimpleW – Web Server Library .NET Core
#50Not 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.
There's also Fast Endpoints[1], which Kind of the best of both worlds, minimal-API and REPR. 1: https://fast-endpoints.com/