News for hackers. Stuff that matters.
Re:Why Nodejs serves a file with 80x more CPU usage than Nginx? by benologist on Friday April 06, 2012 @01:42AM (#3806130)
You could put nginx in front of nodejs and let it handle the static files, it's far better at it.

This is worth reading as well: http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-1...

Re:Why Nodejs serves a file with 80x more CPU usage than Nginx? by 1SaltwaterC on Friday April 06, 2012 @05:07AM (#3806455)
Besides that, node can listen on UNIX domain socket, while nginx can proxy the connection over UDS, therefore people can avoid the TCP stack. That should also shave off some latency. It may throw some 502 errors if is not configured properly, but with sysctl tricks or Ryan's patch for nginx (https://github.com/ry/nginx-ey-balancer) it is doable.