Database Multi-Tenant Architecture: Three Patterns

Multi-tenant database design is one of the most consequential early decisions. Three patterns; pick on tenant size and isolation needs.

Why pattern matters

Multi-tenant database design is one of the most consequential early decisions. The wrong pattern produces noisy-neighbour problems, data-leak risk, and cost spirals that compound over years.

Three patterns

Tradeoffs per pattern

Each pattern occupies a point on the cost-versus-isolation curve. Pick by tenant size, isolation requirements, and operational maturity.

Migration cost

Most teams stay on the pattern they started with. Migration is rare and painful; understand which migrations are feasible before you commit.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your most-loaded table. (2) Measure query latency / write throughput before/after. (3) Document the win and the constraint so the next refactor inherits the knowledge.