You can run node.js without any other servers quite safely. It is webserver you know, it's what it supposed to be best for.
As for reverse proxies, there're good ones (nginx, node-http-proxy, haproxy), and there're bad ones (apache, iis). I didn't use any others, so can't tell.
Apache is a crap, forget about it. It's used only to run php sites (which are a crap) on a shared hosts (which are... you know). For other purposes it's usually too hard to configure and eats way too much memory with all its forks. Well, sorry, but I used it a few years ago, and that's what my experience tells.
You can as well use nginx (as well as haproxy, but that one is hard to configure), there's no performance loss at all, but you have to manage additional software, so think if you want to do that.
Also, nginx as reverse proxy can actually be better for performance because of these things:
1) SSL encryption
2) serving static files
3) caching
And it does support websockets as well in latest stable.
Anyway, you should decide for yourself what is better for you. It's just a management issue, performance doesn't matter here.
15.10.2013, 16:35, "Norman Paniagua" <[email protected]>:
--What? nodejs vs webservers? yes, my real question is, there is lost performance if you put your multiple nodejs apps behind a webserver (with proxy)?Or its just better to use the node itself to run all your apps (using vhost if all the apps are using express)? or have a nodejs router like multi-sites?The idea behind this is just to know what way its better, some cons of using webserver like apache (don't know if its applicable to nginx) its thatwebsockets didn't work.Regards--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
