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.

Lwan: A high-performance and scalable web server

187 pointsby jxubalmost 7 years ago

16 comments

kjeetgillalmost 7 years ago
Jeez this is amazing. Just end to end, rock solid engineering. I came to chime in that this basically hits all the same design beats as go with it&#x27;s standard library (relatively low foot print, compiled binary, async user-space threading, etc.) But that sells this work short.<p>This is amazing work!
评论 #17550026 未加载
评论 #17551266 未加载
nine_kalmost 7 years ago
&gt; Low memory footprint (~500KiB for 10k idle connections)<p>&gt; Small disk footprint: x86-64 executable has 110KiB (~52KiB if packed with UPX)<p>&gt; No copies between kernel and userland for files larger than 16KiB<p>Looks perfect for embedded stuff (and generally impressive).<p>It needs a separate TLS terminator, though.
评论 #17550416 未加载
MrBuddyCasinoalmost 7 years ago
Note: this is not related to the phony GWAN project, except maybe to poke fun at it.<p>Previously: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11373719" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11373719</a>
评论 #17549584 未加载
dom96almost 7 years ago
&gt; For Round 10, Lwan has taken the crown. But we expect the other top contenders won&#x27;t leave this a settled matter.<p>Am I just blind or is Lwan missing here: <a href="https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r10&amp;hw=ph&amp;test=json" rel="nofollow">https:&#x2F;&#x2F;www.techempower.com&#x2F;benchmarks&#x2F;#section=data-r10&amp;hw=...</a>
评论 #17550475 未加载
cntlzwalmost 7 years ago
I am only a spare time C coder myself and was surprised that I can follow the code. Nice! Any reason why typedef struct is avoided?
评论 #17550365 未加载
评论 #17550415 未加载
maxpertalmost 7 years ago
Amazing I am planning to shift RaspChat on this. Would be nice if same engineering effort can be put into WebSocket. This will make it much more desirable everywhere to build pub&#x2F;sub systems.
评论 #17550655 未加载
paulsutteralmost 7 years ago
Seastar does up to 8 million connections per second, performance due in part to a user mode TCP stack<p>Previous discussion:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9440886" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9440886</a>
评论 #17550487 未加载
tpaschalisalmost 7 years ago
Impressive all and all, even more for being written in (grokkable!) C. Nice work.
mitchtbaumalmost 7 years ago
Lwan used to be at the top on Techempower Benchmarks, but I don&#x27;t see it anymore. I do however see a Rust webserver, called Actix-Raw, which tops the list. acidx, what do you think of that project?
评论 #17551423 未加载
equaluniquealmost 7 years ago
Is this in any way related to the proprietary G-WAN high-performance and scalable web server? <a href="http:&#x2F;&#x2F;gwan.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;gwan.com&#x2F;</a>
bullenalmost 7 years ago
Cool, if you want something similar but in Java: <a href="https:&#x2F;&#x2F;github.com&#x2F;tinspin&#x2F;rupy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tinspin&#x2F;rupy</a>
ksecalmost 7 years ago
I wonder how does this compare to H20.[1]<p>[1]<a href="https:&#x2F;&#x2F;h2o.examp1e.net&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;h2o.examp1e.net&#x2F;index.html</a>
评论 #17549753 未加载
baldgeekalmost 7 years ago
Can anyone chime how this compares to nginx and openresty? Probably a dumb question , but I hope to gain some insight
MaxBarracloughalmost 7 years ago
Looks neat! Is HTTPS support in the works?
评论 #17549874 未加载
openbasicalmost 7 years ago
Would you recommend this to serve a C++ webservice, or should we stick with boost::asio?
LearnerHerzogalmost 7 years ago
Lwan... that&#x27;s the best name they could come up with?
评论 #17549613 未加载