I use uwsgi rather than apache+mod_uwsgi because uwsgi has these added features:
. shared memory (across processes and threads) . shared snmp server (counters) These features have saved me from implementing these features myself. No other container server seems to have as many added features; features that can only be implemented properly within the container server. Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Roberto De Ioris Sent: Thursday, February 14, 2013 6:01 AM To: uWSGI developers and users list Subject: Re: [uWSGI] [newbie] mod_wsgi vs. uWSGI? Which web server to use? > Hello > > I'm only getting started with learning the options to run Python web > apps instead of PHP. > > From what I read, it appears that WSGI is a better option than > FastCGI+Flup to run Python apps, and the choice is mainly between the > mod_wsgi for Apache and uWSGI available for the main players. Gunicorn is another popular choice, and generally more suited for 'newbies' > > Provided the above is correct, I have two questions: > 1. Are there obvious reasons to use uWSGI over mod_wsgi? it depends on your needs. From the python/WSGI perspective they are practically equals (the author of mod_wsgi helped us fixing lot of bugs, and generally the threading model of uWSGI maps 1:1 with mod_wsgi) uWSGI has ISP/PaaS as the main target so you will find a huge amount of features you will not find in other competitors and generally it has a very morbid attention to details. (with the downside of being less newbie-friendly) apache+mod_wsgi is a general purpose solution, and if you are good at managing apache webservers you will find mod_wsgi a dream. > > 2. Provided I do go for uWSGI, which web server is recommended? > Apache, Cherokee, Nginx, or Lighttpd? generally nginx is the most "fashioned" choice, others are starting to use only the uWSGI routers/proxy, lot of people use HAProxy. Apache + uWSGI is another possibility (even if less tutorials are available for it) By the way, i suggest you to start understanding what WSGI is (write simple hello world apps) and then try all of the solutions. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
