2013/10/15 Alex Kocharin <[email protected]>

>
> 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.
>
>

I usually serve directly node.js too. whenever there websockets for example in
the middle.

Furthermore, SSL is becoming almost necessary, our applications handle
increasingly more information from users and when a project grows unsafe
versions can create big problems.

If we want to take advantage of SPDY protocol for example, we have to work
on SSL.

Also understand in the original question, performance matters.

The nginx configuration is simple, you can "tune" is something else, but:

server {
     listen: 80;
     server_name yoursite.com;

     location / {
         proxy_pass: http://127.0.0.1:3000;
     }

}

And you happy.

apache just stay in time, but it was a great software in the past. BTW
apache + mod_php not be used for performance comparison, since in any case
the modern configurations using FastCGI.

Not to sound conservative, but I work with architectures medium / large. and
that the "front servers" work with nginx adds very many issues such as security
and failover and implementations of cache or antiseizure filters.

All this for only 20ms! Call now!


> 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 <https://github.com/oren/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 that
> websockets 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.
>



-- 
Exos ~ Programador, hacker y filósofo
web: http://blog.exodica.com.ar
Linked'in: http://www.linkedin.com/in/ogexos
Twitter: @exos, Indeti.ca: @exos
Tels: [+54 11] 6385-EXOS (3967) - [+54 9 11] 6133-2442

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d-- s:++ a- C+++$ UBL+++$ P(-) L+++$ !E--- W+++$ !N !o K-? !w--- !O
!M-- V? PS+++@ !PE Y+(++) PGP++ !t--- !5 X++ R(+) tv--? b- DI D-- G e@ h>++
r+++(-) y+++>+++++
------END GEEK CODE BLOCK------

-- 
-- 
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.

Reply via email to