Re:Nxweb – Fast and Lightweight Web Server
by hueving on Saturday February 27, 2016 @12:35PM
(#11187745)
I don't see how it can become an order of magnitude slower even if your app is effectively a no-op.
Two extra fast cgi encodes and decodes sounds like the whole pipeline is just doing 3x the serialization of a non-fast cgi one. Am I missing some context switching overhead you are implying or something?
Running two web servers (one speaking HTTP and one speaking FastCGI) is necessarily going to be slower than running one web server.
This should be obvious, although it might be "not significantly slower", which is why I provided some real numbers from my experience to show at which point it becomes slower by an order of magnitude.
You might also find that it's easier to debug one webserver than two.