3 ms·
That's right, you tie up an Apache process/thread to proxy each connection, so pretty soon you run out of them. And the whole point of Node.js is to run I/O asy
by kennu 16y ago
That's right, you tie up an Apache process/thread to proxy each connection, so pretty soon you run out of them. And the whole point of Node.js is to run I/O asynchronously without tieing up a thread for it.
A better alternative would be to run e.g. Varnish in front of both Apache and Node.js. Then you can forward requests to any backend server you like in an efficient manner (using pipe mode for long polling requests).
- rgbrgb 16y agoThanks for the info!
- deleted 16y ago[deleted]
- mike-cardwell 16y agoVarnish is good unless you need SSL. IIRC Varnish still doesn't support SSL, and the author never intends it to. I'm not suggesting that's a bad thing, just saying.