Welcome! Log In Create A New Profile

Advanced

Re: Nginx and SCGI

All files from this thread

File Name File Size   Posted by Date  
mod_scgi-b466baa5fcdb.diff 2.7 KB open | download Piotr Sikora 01/08/2010 Read message
Piotr Sikora
January 08, 2010 02:50PM
>> few months ago for my "proxy vs fastcgi vs scgi vs wsgi" tests
>
> Against what application framework did you run the tests?

> Did you publish the results anywhere?
> By what measure did proxy win?

No, I didn't publish the results (I know, shame on me) and the only thing
left now is text file with *some* results (ironically, results for
nginx+mod_scgi are missing).

Anyway, it looks like the test was "search for the best way to run WSGI
applications".

The application in question was simple "Hello World!" backed by Google's
webapp framework.

I tested Apache, Cherokee, lighttpd and nginx. Each server was tested (when
possible) with FastCGI-to-WSGI, SCGI-to-WSGI and WSGI. Proxy was tested
using CherryPy and Paste.

Some random thoughts:
1) I didn't like Cherokee and lighttpd,
2) SCGI seems to be ~20% faster than FastCGI (but this is probably because
of small response size in test app),
3) CherryPy behind nginx beats every other web server (req/s) and only
losses to standalone CherryPy (and I'm not comfortable enough to run it
without "real" web server in front of it). At least it did at the time, now
it probably looses also to Tornado behind nginx ;)

Proxy has also two very strong advantages over any Gateway Interface:
1) it's language & framework agnostic, and even if your framework can't talk
HTTP you can always run Python apps using CherryPy's web server, Ruby apps
using Thin and PHP apps behind Apache (because it's the only environment
those broken apps works in),
2) there are no issues with pushing traffic over TCP/IP to other machines
(think: clusters / web farms).

Also, this test was the reason why I started using nginx ;)

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx and SCGI

Huy Phan January 08, 2010 05:08AM

Re: Nginx and SCGI Attachments

Piotr Sikora January 08, 2010 05:16AM

Re: Nginx and SCGI

Huy Phan January 08, 2010 05:30AM

Re: Nginx and SCGI

Piotr Sikora January 08, 2010 05:46AM

Re: Nginx and SCGI

Tobia Conforto January 08, 2010 10:12AM

Re: Nginx and SCGI

Piotr Sikora January 08, 2010 02:50PM

Re: Nginx and SCGI

Huy Phan January 11, 2010 12:18PM

Re: Nginx and SCGI

Piotr Sikora January 11, 2010 12:48PM

Re: Nginx and SCGI

filebackup January 09, 2010 01:20AM

Re: Nginx and SCGI

Manlio Perillo January 12, 2010 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready