After a decade of building SaaS infrastructure, I can tell you the single most expensive architectural decision most founders get wrong is database tenancy. The good news is that the choice reduces to three validated patterns—Pool (shared schema), Bridge (schema-per-tenant), and Silo (database-per-tenant)—and each has a measurable operational ceiling. Production experience reported by Back4app's engineering team puts those ceilings bluntly: Silo runs comfortably to tens or low hundreds of tenants before operations dominate, Bridge reaches the hundreds to around a thousand before metadata and migration orchestration strain, and shared-schema Pool scales to thousands or millions of tenants, with sharding by tenant extending it effectively without limit. Pick the pattern that matches your tenant count and compliance exposure, or tier across them deliberately.
Taxonomy of Multi-Tenant Database Architecture
Amazon Web Services' guidance for ISVs frames the three models around infrastructure boundaries. The Silo model creates dedicated infrastructure per tenant, often including separate databases, and provides the strongest isolation profile while introducing the highest operational overhead. The Pool model uses a shared multi-tenant database schema with row-level filtering, and is the lowest-cost model, common among growth-stage ISVs prioritizing rapid delivery and operational simplicity. Between them sits the Bridge: one database instance, but a separate schema per tenant.
Bytebase's engineering documentation, written by Tianzhou, maps the same spectrum from shared-everything to shared-nothing. In the shared-database, shared-schema pattern, tenants share tables and separation lives entirely in application logic. In the shared-database, separate-schemas pattern, each tenant gets its own set of tables inside one instance. Database-per-tenant gives each customer a dedicated database. The structural difference matters because it determines what a single bug, a single migration, or a single compliance audit can touch.
One warning before we go further: the Bridge pattern is the trap. Bytebase's team recommends avoiding shared-database, separate-schemas outright because it introduces complexity comparable to database-per-tenant without offering sufficient isolation to meet stringent regulatory compliance requirements. You inherit the migration burden of Silo without its audit story. That asymmetry—high cost, weak compliance payoff—shapes everything below.
Operational Ceilings and Cost Efficiency
The ceilings are not theoretical; they come from production experience. Back4app's engineering team reports that database-per-tenant runs comfortably to tens or low hundreds of tenants before operations dominate. Past that point, you are managing backups, monitoring, and connection pools across many instances, and the operational load grows faster than revenue per tenant. Rost Glukhov's architecture writeup, which includes working Go examples, lists the same boundary: separate databases are best for a low to medium tenant count of dozens to low hundreds.
Schema-per-tenant stretches further—hundreds to around a thousand schemas—but then metadata and migration orchestration strain. Every schema change must be applied per tenant schema, and database object limits become an issue with many tenants, as Bytebase's documentation notes. You still share compute and memory at the database level, so resource contention remains possible, and backup and restore complexity increases.
The shared schema is the cost champion. It scales to thousands or millions of tenants in a single instance, and sharding the shared schema by tenant extends it effectively without limit. You manage one database, pay for one instance, and scale the whole database rather than individual tenants. The trade-off is that every tenant shares the same failure surface and the same performance envelope—noisy neighbors are structural, not exceptional.
Data Leak Hazards and Defense-in-Depth Isolation
Here is where the Pool model earns its risk premium. In a shared schema, isolation is logical separation enforced entirely via application query filters and tenant_id columns. One missing WHERE clause in one code path, and one tenant reads another's data. Back4app's guidance is categorical: "Defense in depth, never a WHERE clause alone." That means layering row-level security policies and tenant-scoped filtering beneath the application layer, so a query that forgets its filter still cannot cross tenant boundaries.
The qualification matters: pooled isolation assumes consistent parameterization of tenant_id filters across all database access paths. If any reporting job, analytics query, or background worker bypasses the standard access path, the guarantee collapses. Bytebase's comparison table rates shared-schema as the most difficult pattern for strict compliance needs, while database-per-tenant is easiest to meet data residency requirements.
Silo inverts the risk. Glukhov's analysis credits separate databases with maximum isolation, no risk of cross-tenant data access, per-tenant backups, and easy compliance with strict requirements such as HIPAA, GDPR, and SOC 2. AWS's ISV guidance agrees that Silo provides the strongest isolation profile. The Bridge pattern sits awkwardly in the middle: better separation than shared tables and lower leak risk, but still sharing database resources, and per Bytebase's assessment, insufficient isolation for stringent regulatory compliance.
Migration Complexity and Schema Orchestration
Migrations are where tenancy choices become monthly pain. In the Pool model, a schema migration runs once against one database. In Bridge and Silo, it must be applied to every tenant schema or every tenant database. Bytebase reports that single-database-per-tenant schema management is one of the top pain points they hear about from prospects, and that migrations must be applied across all tenant databases in the Silo pattern.
The failure surfaces differ. In Silo, the constraint is orchestration breadth and connection management: each database instance has connection limits, and a fleet-wide migration can exhaust them. In Bridge, the constraint is catalog overhead—query planning and metadata locking degrade at high schema counts, which is precisely why the practical ceiling lands near a thousand schemas. Back4app's production numbers reflect this: metadata and migration orchestration strain past the hundreds.
My own rule of thumb from running migrations across a fleet: the cost of a schema change scales linearly with tenant isolation. Pool buys you one migration per release. Bridge and Silo buy you a migration pipeline, partial-failure handling, and per-tenant rollback plans. Budget for that pipeline before you choose isolation, not after.
Multi-Tenant Database Tenancy Decision Matrix
The matrix below cross-tabulates the three patterns against the dimensions that actually drive the decision: where the isolation boundary lives, how far the model scales before operations dominate, what migrations cost, and what the infrastructure bill looks like. Use it to match each customer tier to a pattern rather than forcing one pattern onto every tenant.
| Pattern / Model | Isolation Boundary | Scaling Ceiling | Migration Complexity | Infrastructure Cost |
|---|---|---|---|---|
| Pool (Shared Database, Shared Schema) | Logical separation enforced entirely via application query filters and tenant_id columns; vulnerable to logical leaks if filters are omitted | Thousands to millions of tenants in one instance; sharding by tenant extends it effectively without limit; subject to noisy-neighbor degradation | Lowest—one schema migration against one database | Lowest; single instance, but must scale the entire database |
| Bridge (Shared Database, Separate Schemas) | Schema-level logical isolation per tenant inside a shared server; shares compute and memory resources | Hundreds to around 1,000 schemas before catalog overhead, metadata locking, and migration orchestration strain | High—migrations applied to each tenant schema; object limits become an issue | Moderate; one instance, but backup and restore complexity increases |
| Silo (Database per Tenant) | Complete physical and logical isolation per customer; strongest profile for strict enterprise compliance audits | Tens to low hundreds of active tenant instances before operations dominate | Highest—migrations across all tenant databases; connection limits per instance | Highest; resource underutilization for smaller tenants, per-instance overhead |
Read the table as a tiering map, not a single choice. The isolation column tells you which patterns can survive a compliance conversation; the ceiling column tells you which patterns survive growth. Notice that Bridge scores weakest on both axes simultaneously—Bytebase's recommendation to avoid it follows directly from that combination.
Recommended Tiering Strategy for SaaS Architecture
Adopt a hybrid tiering model: use shared-schema pools for free and standard tiers to maximize cost-efficiency, while reserving database-per-tenant silos for enterprise customers requiring strict regulatory compliance. This follows AWS's framing that compute tenancy should match data tenancy, and it respects the production ceilings above—your high-volume, low-margin tenants live in the pattern built for millions, while your high-value, audit-sensitive tenants get the isolation their contracts demand.
Two qualifications keep the strategy honest. First, the pooled tier assumes consistent parameterization of tenant_id filters across all database access paths—invest in row-level security beneath the application layer, because a WHERE clause alone is not defense in depth. Second, the schema-per-tenant caveat applies when managing relational catalog and connection limits past hundreds of tenants; if you find yourself there, you have outgrown Bridge and should move up to Silo or down to Pool, not deeper into it.
Track two measurable indicators as you scale: tenant count per database instance, and migration execution time during schema updates. When tenants-per-instance in your Pool tier climbs without sharding, or when a routine migration's execution time stops fitting your release window, those numbers—not intuition—tell you which tier is hitting its ceiling and where to draw the next boundary.
Sources
- Multi-Tenant Database Architecture: The 3 Patterns Compared (2026) — Back4app
- The building blocks of multi-tenant SaaS architecture for ISVs — Amazon Web Services, Inc.
- Multi-Tenant Database Architecture Patterns Explained — Bytebase
- Multi-Tenancy Database Patterns with examples in Go — Rost Glukhov | AI Systems & Infrastructure





