Alex Rivera | Logout

How do you deploy your WSGI application? (and why it is the best way)

Asked 2009-02-22T00:58:37.450
42

I am deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but I can see some potential problems with this.

So how can it be done?

  1. Apache Mod-wsgi (the other mod-wsgi's seem to not be worth it)
  2. Pure Python web server eg paste, cherrypy, Spawning, Twisted.web
  3. as 2 but with reverse proxy from nginx, apache2 etc, with good static file handling
  4. Conversion to other protocol such as FCGI with a bridge (eg Flup) and running in a conventional web server.

More?

I want to know how you do it, and why it is the best way to do it. I would absolutely love you to bore me with details about the whats and the whys, application specific stuff, etc.

Edit
Report

1 Answer

1

We are using pure Paste for some of our web services. It is easy to deploy (with our internal deployment mechanism; we're not using Paste Deploy or anything like that) and it is nice to minimize the difference between production systems and what's running on developers' workstations. Caveat: we don't expect low latency out of Paste itself because of the heavyweight nature of our requests. In some crude benchmarking we did we weren't getting fantastic results; it just ended up being moot due to the expense of our typical request handler. So far it has worked fine.

Static data has been handled by completely separate (and somewhat "organically" grown) stacks, including the use of S3, Akamai, Apache and IIS, in various ways.

answered 2009-03-04T21:48:27.207

Your Answer