Pool Model: All Tenants on Shared Infrastructure
The Pool Model (also called Shared Model) runs all tenants on the same servers, the same database, and the same Redis cluster, with tenant isolation enforced purely through application logic — primarily a tenant_id column on every database table. This is the default starting point for most SaaS platforms and the right choice for the vast majority of SMB-focused products.
- Advantages: low operating cost, simplified management, unified upgrades
- Advantages: resource sharing — inactive tenants don't waste resources
- Challenges: isolation depends on correct code — one bug exposes cross-tenant data
- Challenges: noisy neighbor — one large tenant affects others
- Best for: SMB SaaS, prices < $500/month, low compliance requirements
- Row-Level Security: PostgreSQL RLS enforces tenant isolation at the database level
- Tenant context injection: middleware sets tenant context before every query — never rely on manual filtering
- Performance isolation: database connection pooling per tenant prevents one tenant from exhausting connections
Silo Model: Complete Isolation Per Tenant
The Silo Model gives each tenant a dedicated infrastructure stack: their own application instances, their own database, their own Redis, their own network environment. Isolation is physical, not logical — one tenant's data is completely inaccessible to another because it literally lives in a separate database. This eliminates the largest category of multi-tenancy security risk but multiplies infrastructure costs and operational complexity.
- Advantages: complete isolation — one tenant's failure doesn't affect others
- Advantages: higher compliance and security — HIPAA, GDPR, data residency
- Advantages: deep customization per tenant
- Challenges: high operating cost — $X/tenant/month
- Challenges: high management complexity — upgrades across N environments
- Best for: Enterprise, healthcare, government, strict compliance requirements
- Infrastructure-as-Code: Terraform + Ansible makes provisioning N silos automated and consistent
- Schema migrations: must be applied to all silos simultaneously — requires migration orchestration tooling
Bridge Model: The Practical Commercial Hybrid
The Bridge Model serves SMB tenants from a shared Pool environment while giving Enterprise tenants dedicated Silo environments. A router layer directs traffic to the correct environment based on tenant tier. This is the model used by AWS (Shared vs Dedicated hosting), Salesforce (shared vs dedicated instances), and most successful multi-market SaaS platforms — it aligns infrastructure cost with the revenue each tenant generates.
- The majority (SMB) in Pool: low cost, simplified management
- Enterprise in Silo: meets security and compliance requirements
- Router Layer: routes requests to the correct environment based on tenant tier
- Pricing aligned: SMB = cheaper plan, Enterprise = premium plan covering silo cost
- This is what AWS (Shared vs Dedicated hosting) and Salesforce do
- Upgrade path: SMB tenants can upgrade to Enterprise and get migrated to a silo
- Separate deployment pipelines: Pool and Silo environments may diverge in versions during rollouts
- Unified management plane: a control plane that manages both pool and silo environments consistently
Tenant Routing: The Technical Implementation
Tenant routing is the mechanism by which every incoming request is associated with a tenant context. The routing logic determines which database to query, which configuration to apply, and which feature flags are active. Subdomain-based routing is the most common approach for educational platforms: each academy gets a subdomain that uniquely identifies their tenant.
- Subdomain routing: academy-a.platform.com → tenant lookup → pool or silo
- Custom domain: academy-a.com → CNAME → same routing logic
- Tenant context middleware: extracts tenant from request and puts it in context
- Feature flags per tenant: tenant.features to customize available features
- Rate limits per tier: Pool tenant = X requests/min, Silo = unlimited
- Tenant cache: cache tenant metadata (plan, features, DB connection) with short TTL
- 404 for unknown subdomains: return a clear error for unrecognized tenant identifiers
- Wildcard SSL: *.platform.com covers all subdomains — single certificate management
Per-Tenant Customization: The Scope and the Limits
Tenant customization enables each academy to feel like their own branded platform rather than a generic SaaS product. The degree of customization available is typically tied to the pricing tier — SMB tenants get branding customization, Enterprise tenants get deeper configuration and integration capabilities. All customization should be data-driven rather than code-driven: no tenant should require a code deployment to customize their experience.
- UI Theming: colors, logo, platform name — from database not code
- Feature flags: different features for different tiers
- Custom domain + SSL: wildcard cert for platform + custom cert for enterprise
- Email branding: emails sent under the Academy name, not the Platform name
- Custom integrations: only enterprise gets webhook and API access
- Language and locale: per-tenant default language and date/currency formats
- Custom onboarding: enterprise tenants get custom onboarding flows and terminology
- White-labeling limits: document clearly what can and cannot be customized per tier
Final Decision Guide: Matching Model to Market
| Criterion | Pool | Silo | Bridge |
|---|---|---|---|
| Operating Cost | Low | High | Medium |
| Security Level | Medium | Highest | Variable |
| Ease of Management | Easy | Complex | Medium |
| Compliance | Limited | Full | Flexible |
| Best For | Startup → Scale | Enterprise-only | Full-spectrum SaaS |
Tenant Data Security: Preventing Cross-Tenant Data Leaks
Cross-tenant data leaks are the most severe failure mode of the Pool Model. They are also more common than most teams expect — a missing WHERE tenant_id = ? clause, a caching layer that doesn't key on tenant, or a background job that processes records from all tenants instead of one. Defense in depth is the right approach: multiple independent mechanisms, each of which would prevent the leak even if the others fail.
- Row Level Security: PostgreSQL RLS prevents queries from returning rows outside tenant scope
- Middleware enforcement: tenant_id injected into every database query at the ORM level
- Query auditing: log all queries that lack a tenant_id filter — catch gaps in development
- Cache key namespacing: prefix all cache keys with tenant_id — prevents cross-tenant cache hits
- Background job scoping: jobs must specify tenant_id — never process all-tenant data in one job
- Penetration testing: include tenant isolation as an explicit test category in security assessments
- Data access reviews: quarterly review of which roles can access which tenant data
