3 ms·
So it's a reverse HTTP proxy, which can also serve files locally? That's an interesting thing, no doubt, but it doesn't feel like a web-server. I wrote a flex
by stevekemp 13y ago
So it's a reverse HTTP proxy, which can also serve files locally? That's an interesting thing, no doubt, but it doesn't feel like a web-server.
I wrote a flexible reverse proxy[0] using node.js, a year or so ago, and haven't missed the ability to serve static files directly - so I'm wondering what the use-case for that is? I guess proxying to rails, or similar?
0- http://steve.org.uk/Software/node-reverse-proxy/ http://steve.org.uk/Software/node-reverse-proxy/
- justinsb 13y agoDid you benchmark your node.js version? I would love to know how node stacks up here. I agree that static serving is not as interesting, but it is useful to be able to serve up a fail-whale page!
- stevekemp 13y agoHonestly I never have. Because in practise it is fast enough that it just didn't come up. I'm sure that if I were to pimp the project properly then that would be a good thing to do, but half the fun of my proxy is to allow "interesting" rewrites, dynamically. To benchmark I'd be too tempted try to game the results by doing a straight pass-through comparison to mod_proxy, nginx, etc. That would lose half of the appeal of the project in the first place.
- oakaz 13y agoIn my experience, NodeJS was slow. I first write a boxcars-like server in NodeJS; http://github.com/azer/door http://github.com/azer/door and here is the benchmarks of it; https://gist.github.com/azer/5946227 https://gist.github.com/azer/5946227