tornado is built on python, and python suffers from GIL (it is not
good for threading), so to get maximum response on a server, they use
a load balancer, think about this exemple: you have 10 kids every one
wants some sweeties, and you have in your hand 100 sweeties, so
instead of giving the first one 10 and let all the other stay untill
you finish the 10, just give them all 1 (one) and you make what is
called a "round robbin"
so it's the same thing with nginx and tornado; you start for example 4
instances of tornado (you make a copy of the application 4 times,
everytime you change the file with a different port number (for
exemple: 8001, 8002, 8003, 8004) and then you tell nginx to make the
"link" between them.
nginx is also a good solution for serving your static files (css,
images...) so tornado will handle dynamic requests (building the
webpage) and nginx will fill them will colors ;)
hope i was right.
On 16 sep, 21:55, "
ischematics.com" <
i...@ischematics.com> wrote:
> What is nginx, is it built into tornado?
>
> ed
>
>
>
>
>
>
>
> On Sun, Sep 16, 2012 at 3:45 PM, Frank Smit <
fr...@61924.nl> wrote:
> > Only a root user can use ports below 1024.
>
> > And Nginx is usually put in front of Tornado as a proxy. In this case
> > Nginx is on port 80 (or 443 for HTTPS) and proxies requests for
> > Tornado to port 8080 for example.
>
> > On Sun, Sep 16, 2012 at 9:47 PM,
ischematics.com <
i...@ischematics.com>