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.

Nxweb – Fast and Lightweight Web Server

154 pointsby dillonabout 9 years ago

20 comments

glossyscrabout 9 years ago
<i>Why?</i><p>While Nxweb looks very promising, my first question would be &#x27;Why should I use it over eg Nginx?&#x27; It would be helpful to have some direct comparison to other servers on the landing page.<p>EDIT: Ok, there is a link to some odd benchmarks and it includes performance comparisons to Nginx and others which are not understandable (Nginx 141 req&#x2F;s and Nxweb 200 &#x2F; 121 req&#x2F;s while it&#x27;s not clear when 200 and when 121); moreover they compare it to Mongoose which is an ORM&#x2F;ODM
评论 #11186502 未加载
评论 #11186543 未加载
评论 #11186589 未加载
评论 #11186522 未加载
评论 #11187634 未加载
susi22about 9 years ago
If CloudFlare can handle many thousands of sites [1] with nginx+lua then I&#x27;m not sure if it&#x27;s worth it to go the C route.<p>[1] <a href="https:&#x2F;&#x2F;groups.google.com&#x2F;d&#x2F;msg&#x2F;openresty-en&#x2F;aoBL22H8fP4&#x2F;bJ3LrHHfGAAJ" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;d&#x2F;msg&#x2F;openresty-en&#x2F;aoBL22H8fP4&#x2F;bJ3...</a>
评论 #11189743 未加载
jedisct1about 9 years ago
H2O is also written in C, is also easy to embed, and supports HTTP&#x2F;2. <a href="https:&#x2F;&#x2F;h2o.examp1e.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;h2o.examp1e.net&#x2F;</a>
joostersabout 9 years ago
They discount using CGI, which is fair enough, but why not use FastCGI? It&#x27;s a sensible enough protocol, there are libraries for most languages and there&#x27;s a good chance that your existing web server supports it.<p>Technically, there&#x27;s no good reason why a FastCGI based system would be significantly slower than a custom reimplementation like this.
评论 #11186635 未加载
ramrabout 9 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;proxygen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;proxygen</a> C++, used by Facebook in production. We have been using it in a high performance RTB application and has performed remarkably well.
ktRolsterabout 9 years ago
A lot of ad-tech companies build ad-servers in C, because the latency is so crucial in that context.
评论 #11186545 未加载
评论 #11186546 未加载
chxabout 9 years ago
Technical prowess is one thing, support is another. There are 20 times as many openresty questions (although still very few) on stackoverflow than nxweb and the few nxweb questions there are from years ago. I am not sure why is this on hacker news frontpage suddenly.
giancarlostoroabout 9 years ago
Which Python is supported? Python 2 or 3? For some it makes a big difference. I really want to play with this, also what OS? Only Linux? I am trying to find it on the site but I&#x27;m not seeing it, maybe adding it on the front page or in an FAQ would help (requires creating an FAQ page or section). Thanks! Looks interesting otherwise.
评论 #11186499 未加载
评论 #11186377 未加载
RUG3Yabout 9 years ago
Looks cool. Must have Python 3 for me to use, would definitely try it out if it&#x27;s supported.
ameliusabout 9 years ago
Does it support HTTP 2, or will it in the future?
评论 #11186667 未加载
thenomadabout 9 years ago
The templating engine is an interesting, and slightly curious, addition here.<p>It looks significantly more flexible than anything nginx offers without having to bolt on a server-side language like PHP - unless nginx has something similar in its millions of modules that I&#x27;m not aware of.<p>(I know about and love nginx SSIs, but the templating here looks more flexible than them.)
iso-8859-1about 9 years ago
Other than being C and not C++, how does it compare to CppCMS (not a CMS)? <a href="http:&#x2F;&#x2F;cppcms.com&#x2F;wikipp&#x2F;en&#x2F;page&#x2F;main" rel="nofollow">http:&#x2F;&#x2F;cppcms.com&#x2F;wikipp&#x2F;en&#x2F;page&#x2F;main</a>
ex3ndrabout 9 years ago
Some questions:<p>1) Why you think that java is slower than C++? Server-side JIT compiles much more optimized code as it is really know what and how to optimize.<p>2) What about security? Almost half of the problems in security in last days came from native code stuff.
评论 #11186852 未加载
评论 #11187001 未加载
22klindaabout 9 years ago
I would like to see how good it perform against a webserver like cowboy.
arca_voragoabout 9 years ago
Im curious about security features, which are one of the main reasons I have been using Hiawatha.
elcctabout 9 years ago
I remember playing with it some time ago. Pretty cool thing.
knownabout 9 years ago
Good initiative;
niksmacabout 9 years ago
I am so glad to see nginx is there to give a competition that Nxweb deserves.
Ace17about 9 years ago
Again?
bigdubsabout 9 years ago
Seems cool, but curious if teams have investigated golang for these use cases, specifically if throughput is sufficiently high and the GC pauses are sufficiently small.