raxer
raxer

Reputation: 82

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]

Upvotes: 3

Views: 927

Answers (1)

mekwall
mekwall

Reputation: 28974

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.

Upvotes: 4

Related Questions