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

apache, http, node.js, performance

Solution

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.

Problem

Is this much slower than direct Access? ``` RewriteEngine On RewriteRule (.*) http://localhost:23232/$1 [P] ```

Original source