Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between mod_wsgi and uwsgi?

There seems to be mod_wsgi module in Apache and uwsgi module in Nginx. And there also seems to be the wsgi protocol and uwsgi protocol.

I have the following questions.

  1. Are mod_wsgi and uwsgi just different implementations to provide WSGI capabilities to the Python web developer?
  2. Is there a mod_wsgi for Nginx?
  3. Does uwsgi also offer the application(environ, start_response) entry point to the developers?
  4. Is uwsgi also a separate protocol apart from wsgi? In this case, how is the uwsgi protocol different from the wsgi protocol?
like image 671
Lone Learner Avatar asked Oct 20 '22 14:10

Lone Learner


1 Answers

  1. They are just 2 different ways of running WSGI applications.
  2. Have you tried googling for mod_wsgi nginx?
  3. Any wsgi compliant server has that entry point, that's what the wsgi specification requires.
  4. Yes, but that's only how uwsgi communicates with Nginx. With mod_wsgi the Python part is run from within Nginx, with uwsgi you run a separate app.
like image 139
Wolph Avatar answered Oct 23 '22 09:10

Wolph