TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Sisk – Lightweight .NET Web Framework

70 pointsby mrcsharp9 months ago

11 comments

bob10299 months ago
As an alternative to using additional framework layers, I&#x27;d recommend spending an afternoon familiarizing yourself with AspNetCore middleware - and HttpContext in particular. Getting at the raw primitives can allow for you to throw away a lot of confusing boilerplate.<p>Once you learn that everything that happens in the most complicated corners of web apps is ultimately dancing on top of HttpContext, you can <i>dramatically</i> simplify your life. Even things like web sockets and 3rd party auth are just a handful of lines on top.<p>These abstractions are <i>not scary</i> to use. The Microsoft documentation is really poor with regard to guiding developers towards these simpler approaches. It&#x27;s fairly obvious that they want you deep in the Azure complexity matrix. The only exception I have found to this perception is noted below [0].<p>Mastery here means you can avoid pulling down vendors&#x27; interpretations of how your entire application should be written. You can write whatever middleware per their specifications and make it fit your patterns perfectly. I recall what it was like allowing my auth vendor&#x27;s ham-fisted libraries drive much of how my web app and DI had to be structured.<p>[0]: <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;fundamentals&#x2F;minimal-apis?view=aspnetcore-8.0" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;fundamentals&#x2F;m...</a>
评论 #41409807 未加载
评论 #41410406 未加载
评论 #41409705 未加载
MarkSweep9 months ago
I appears that this is using HttpListener to implement the HTTP protocol:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sisk-http&#x2F;core&#x2F;blob&#x2F;main&#x2F;src&#x2F;Http&#x2F;HttpServer.cs#L35">https:&#x2F;&#x2F;github.com&#x2F;sisk-http&#x2F;core&#x2F;blob&#x2F;main&#x2F;src&#x2F;Http&#x2F;HttpSer...</a><p>HttpListener, while not deprecated, is frozen and not taking new features. For example, it does not support HTTP 2. It might not be as high performance as Kestrel (the default web server in ASP.NET Core).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;runtime&#x2F;issues&#x2F;63941#issuecomment-1205259894">https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;runtime&#x2F;issues&#x2F;63941#issuecomment-...</a><p>So the authors of the framework might want to consider longer term whether layering onto of Kestrel or some other HTTP server implementation may make more sense.
评论 #41409974 未加载
CyanLite29 months ago
I’d like to support this, truly I do—I’m a .net fan.<p>But I read the docs. Sisk is supposed to be simple. But the code samples are nearly the same as ASP.NET minimal APIs. Can you clarify why Sisk is better than out of the box .NET?
评论 #41409460 未加载
评论 #41409328 未加载
评论 #41409278 未加载
评论 #41409247 未加载
nickpeterson9 months ago
I remember way back (10? years) a library called Suave, a from scratch Web Server that was fun to work with (although never very high performance). I believe the original developer eventually kind of abandoned it because he felt he was treated poorly by the community (not sure, memory of this is a bit hazy). It&#x27;s a real shame honestly, because it feels like all the novel F# stuff just got abandoned over time. This has a similar feel (not the code style, but just the intent). Dotnet needs a lot more goofy&#x2F;unique libraries in general. Otherwise Microsoft pushes a monoculture and nothing good ever happens.
tmitchel29 months ago
Dotnet is crying out for a lightweight front end for desktop and mobile.... But not a new backend??? That&#x27;s already sooo good. Strange choice to add to the ecosystem.
评论 #41410027 未加载
gmaster14409 months ago
What are the use cases for going with this framework over something like ASP.NET Core Minimal APIs? <a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;fundamentals&#x2F;minimal-apis?view=aspnetcore-8.0" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;fundamentals&#x2F;m...</a>
eichi9 months ago
ASP.NET Core Minimal Api is already lightweight
Gluber9 months ago
Reading the docs and samples...<p>What are the advantages compared to e.g ASP.NET Core Minimal Api ?<p>(or for example FastEndpoints) ?
评论 #41411107 未加载
robertlagrant9 months ago
Nit:<p>&gt; Robustness hidden in it&#x27;s simplicity<p>No apostrophe in its.
sisk9 months ago
Anyone know the story behind the name? Couldn&#x27;t find anything in the docs.
dzonga9 months ago
people like to shit on node.js &#x2F; express.js but it changed the game on what lightweight server-side frameworks could be.<p>now everything follows the express pattern because it&#x27;s explicit and simple.