~/talk

Multitenant applications: how and why

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python, software-architecture]
slides:none on file

Compares three concrete multitenancy patterns with runnable Django code: customer_id in every table (single shared schema, simple queries but manual filtering risk), per-customer databases (uses Django routers or threadlocal DB selection), and a single Postgres instance with per-tenant schemas using django-tenant-schemas and Postgres schemas. Shows how search_path is set, migrations run once per schema (scale concern), cross-schema unions need UUIDs to avoid ID clashes, and warns about thousands-of-tenants limits and migration risks.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Who am I
  3. 1:53Context
  4. 4:09Structure
  5. 6:40Salesforce example
  6. 8:12Multiple databases
  7. 10:05Is this really multitenant
  8. 10:34Single database
  9. 12:32Django Schemas
  10. 16:48Upsides
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.