Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Is this much slower than direct Access?

RewriteEngine On
RewriteRule (.*) http://localhost:23232/$1 [P]
like image 961
raxer Avatar asked Dec 11 '25 12:12

raxer


1 Answers

It wouldn't be much slower. It would only differ by the tiny fraction it takes for Apache to proxy your request which compared to the time it takes for Node.js to process your request is most likely even hard to measure.

However, you'd probably want to use ProxyPass and ProxyPassReverse instead of a rewrite so that Apache acts as a real proxy instead.

like image 174
mekwall Avatar answered Dec 14 '25 00:12

mekwall