<i>Why?</i><p>While Nxweb looks very promising, my first question would be 'Why should I use it over eg Nginx?' 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/s and Nxweb 200 / 121 req/s while it's not clear when 200 and when 121); moreover they compare it to Mongoose which is an ORM/ODM
If CloudFlare can handle many thousands of sites [1] with nginx+lua then I'm not sure if it's worth it to go the C route.<p>[1] <a href="https://groups.google.com/d/msg/openresty-en/aoBL22H8fP4/bJ3LrHHfGAAJ" rel="nofollow">https://groups.google.com/d/msg/openresty-en/aoBL22H8fP4/bJ3...</a>
H2O is also written in C, is also easy to embed, and supports HTTP/2.
<a href="https://h2o.examp1e.net/" rel="nofollow">https://h2o.examp1e.net/</a>
They discount using CGI, which is fair enough, but why not use FastCGI? It's a sensible enough protocol, there are libraries for most languages and there's a good chance that your existing web server supports it.<p>Technically, there's no good reason why a FastCGI based system would be significantly slower than a custom reimplementation like this.
<a href="https://github.com/facebook/proxygen" rel="nofollow">https://github.com/facebook/proxygen</a>
C++, used by Facebook in production.
We have been using it in a high performance RTB application and has performed remarkably well.
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.
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'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.
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'm not aware of.<p>(I know about and love nginx SSIs, but the templating here looks more flexible than them.)
Other than being C and not C++, how does it compare to CppCMS (not a CMS)? <a href="http://cppcms.com/wikipp/en/page/main" rel="nofollow">http://cppcms.com/wikipp/en/page/main</a>
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.
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.