Back to all speakers
Jake Howard

Jake Howard

Jake is many things:
  • A Senior Systems Engineer @ Torchbox
  • A member of the Django Security Team
  • A member of the DSF
  • A member of the Security and Core teams for Wagtail CMS
  • An avid self-hoster
  • Frequent blogger
A Jake of all trades, if you will

Scaling the database - using multiple databases with Django

Talk
As your Django application gets popular, you'll need to scale up. Maybe you need to run more web workers, more CPU cores, or even spread across more servers. This works great, up to a point. Your database is likely at the core of your application, but whilst it's easy to throw more resources at a database, it's much harder to scale to multiple. After a while, you'll outgrow a single database. Maybe performance isn't the issue, and instead you need the rock-solid reliability which can only come from multiple database servers. Django supports multiple database connections, but leaves it up to you to manage how to use them and which queries to send where. But, how? How do you split your data between multiple databases? How do you tell Django which to use when? If your infrastructure already has replicas, how can you use them effectively.