DjangoCon Europe 2016 - Best Practices for Scaling Django
Speaker: Anton Pirker is a Django software engineer.
Normal site: Nginx -> Gunicorn -> Postgres, but the site slows down with increased users.
Debug
- DjangoToolbar
- reduce queries
- Monitor
- move database to separate server
- Memcached
- doesn't increase speed (doesn't work, timestamp debugging)
- due to cookies
- don't delete cookies
- Development machines to get cookies and caching running
- OperationalErrors
- maximum connections to postgres
- enter pgbouncer to re-use connections
- Long communication
- async workers: celery + redis