Problem
SaaS must serve many tenants on shared infrastructure. No tenant should see another's data, affect performance, or bypass limits.
Also known as: multi-tenancy, tenant-isolation, saas-patterns, shared-database
Share infrastructure across customers while isolating data, compute, and blast radius — patterns from shared DB to dedicated clusters.
SaaS must serve many tenants on shared infrastructure. No tenant should see another's data, affect performance, or bypass limits.
Low (shared) to High (dedicated)
High — tenant onboarding, migration, isolation testing
High — isolation model choice, failure domains
RLS policy bug → cross-tenant data leak
Noisy neighbor: one tenant's load degrades others
Schema migration: partial failure → tenant inconsistency
Connection pool exhaustion: one tenant monopolizes
Backup/restore: single tenant restore in shared DB is hard