Components of a stack

A production Django web stack is built using several kinds of application (or layers, depending on your terminology). While constructing your web stack, some of the choices you might need to make are as follows:

  • Which OS and distribution? For example, Debian, Red Hat, or OpenBSD.
  • Which WSGI server? For example, Gunicorn or uWSGI.
  • Which web server? For example, Apache or Nginx.
  • Which database? For example, PostgreSQL, MySQL, or Redis.
  • Which caching system? For example, Memcached or Redis.
  • Which process control and monitoring system? For example, Upstart, Systemd, or Supervisord.
  • How to store static media? For example, Amazon S3 or CloudFront

There could be several more, and these choices are not mutually exclusive either. ...

Get Django Design Patterns and Best Practices - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.