Is node.js behind Apache much slower than node.js HTTP server?

Is it much slower than direct access?

RewriteEngine On
RewriteRule (.*) http://localhost:23232/$1 [P]
+3
source share
1 answer

That would not be much slower. It will differ only in the tiny fraction that Apache needs to proxy your request, which, compared to the time spent on Node.js, processing your request is most likely even difficult to measure.

However, you probably want to use ProxyPass, ProxyPassReverseinstead of rewriting, Apache acting as a real proxy instead.

+4
source

All Articles