What about using tornado as wsgi server behind nginx?

I made some improvements to the management command published at
http://geekscrap.com/2010/02/integrate-tornado-in-django/

You can check the code and sample project here:
http://github.com/darkrho/django-on-tornado

May not be heavy production tested but could use less cpu and memory.

I made an unscientific comparison on a low end p4 with a simple return
HttpResponse("hello world") :
 - django's runserver:    ~280 reqs/sec
 - django on cherrypy   ~320 reqs/sec
 - django on tornado     ~380 reqs/sec

YMMV. I will move my projects on webfaction from apache+mod_wsgi to
tornado with supervisord.

Somebody else thinks that django on tornado could be a winning combination?

Regards,

Rolando


On Sun, Mar 7, 2010 at 3:46 PM, anton <anto...@gmx.de> wrote:
> Hi,
>
> I am new to django and wanted to set up a webserver
> and use apache or lighttpd.
>
> As I understood wsgi is the preffered ( most performant) way
> to use python & a web server.
>
> I heard that apache has a mod_wsgi and wanted to ask if
> there exists such a module for lighttpd too?
>
> What would you propose to use:
>  - apache + mod_wsgi
>  - or lighttpd + ??
>
> Anton
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to