[Django]-Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi

4👍

I suggest nginx with superfcgi for web sites with high load. nginx is very fast for static files. superfcgi uses multiple processes with multiple threads that shows high stability for python applications in spite of GIL, just set number of processes to number of CPU cores at your server.

1👍

I don’t have thorough benchmarks, but I’m personally convinced that, just like lighttpd can outperform apache on simpler tasks, mod_wsgi gives apache the laurel when it comes to serving Python web apps. (nginx with its own mod_wsgi seems to perform even better than apache, but, hey, you didn’t ask about that!-).

1👍

Doesn’t answer you question, but do you already use caching for your site? Like memcached? This might give you a better performance gain than going through the mess of switching webservers.

👤Martin

0👍

you can try fcgid. https://github.com/chenyf/fcgid, it’s a C++ fastcgi server

Leave a comment