Lesson 11 of 16 · Tenants: isolation and onboarding
Tenancy models: silo, pool and bridge
What a tenant is, and the three ways to host many of them: silo (dedicated resources per tenant), pool (everything shared, separated by tenant ID) and bridge (a mix). Decide it layer by layer (edge, compute, data, keys, whole stack), weigh isolation against cost and operations, and see how tiers map tenants to models.
What a tenant is
A tenant is one customer organisation: a company that buys your product, with its own users, data, settings, contract and bill. A SaaS product serves many tenants from one codebase. The question this lesson answers: how much do tenants share?
Think of where people live. A silo is a row of detached houses: each family has its own walls, heating and front door. A pool is one big shared flat: cheap, but everyone needs good locks on their own cupboard. A bridge is an apartment building: shared stairs and heating, but every flat has its own door and key, and the richest family rents the whole top floor.
The three models
| Silo (dedicated) | Pool (shared) | Bridge (mixed) | |
|---|---|---|---|
| What | Each tenant gets its own resources | All tenants share resources; data carries a tenant ID | Some layers or tenants dedicated, the rest shared |
| Isolation | Strongest; easy to explain to auditors | Logical only: every query must be tenant-aware | Strong where it matters |
| Cost per tenant | High: idle capacity per tenant | Lowest | Medium |
| Operations | N copies to upgrade, monitor and back up | One deployment | Two paths, so one shared blueprint is essential |
| Noisy neighbours | None | Need limits at every layer | Contained for dedicated tenants |
| Onboarding time | Minutes to hours (create resources) | Seconds (create a record) | Depends on the tier |
| Typical use | Regulated, very large or data-residency customers | Small and mid-size tenants, free and standard plans | Most real products |
Decide it per layer
The model is not one decision for the whole system. Each layer has its own cost of isolation and its own damage if isolation fails:
Layer Usual choice Why
Edge / gateway pooled, per-tenant rate limits dedicated gateways per tenant cost a lot and add little
Compute pooled per cell bin-packing; heavy tenants → dedicated node pool
Database pooled + row-level security, the most sensitive layer; choose by size, compliance
or schema / database per tenant and how often tenants move
Encryption keys per tenant cheap, limits damage, enables crypto-shredding
Whole stack dedicated cell for a few tenants regulation, residency, contract, very large size
Tiers connect tenants to models
Most products sell tiers (plans), and the tier decides the model:
| Tier | Typical isolation | Limits |
|---|---|---|
| Free / trial | Pooled everything, smallest limits | Low rate limit, few users, short retention |
| Standard | Pooled, per-tenant key | Moderate limits |
| Enterprise | Pooled compute, dedicated schema or database, customer-managed key | High limits, SSO, audit export |
| Dedicated | Own cell (lesson 8) | By contract |
This turns isolation into a product decision with a price, instead of an argument every time a big customer asks for "their own cluster".
Control plane and application plane
A multi-tenant product has two halves:
- Application plane: the product itself, serving tenants' requests, inside cells.
- SaaS control plane: the services that manage tenants: onboarding, the tenant catalog, placement in cells, identity setup, plans and limits, metering and billing, offboarding.
The control plane must stay out of the request path: if onboarding or billing is down, existing tenants keep working (static stability, lesson 1). Lessons 14 and 15 build its main workflows.
Noisy neighbours, layer by layer
Pooling means one tenant can slow others. Contain it at every layer, not just one:
- Edge: per-tenant rate limits and quotas (see Rate limiting and quotas).
- Workers and queues: per-tenant concurrency limits; separate queues for heavy jobs.
- Database: connection limits per service, statement timeouts, per-tenant query budgets.
- Kubernetes: ResourceQuota, LimitRange and priority classes (lesson 13).
- Escalation: move the tenant to a larger tier, a dedicated node pool or its own cell (lesson 4).
Try it: choose a model
For each product, decide the model per layer (edge, compute, data, keys, whole stack) and write one sentence of reasoning:
- A to-do app with 2 million free users and 5,000 paying teams.
- An identity and access governance product used by banks and hospitals.
- An internal developer platform used by 120 teams in one company.
- A video-transcoding API where one customer can submit 10,000 jobs at once.
- A payroll product that must keep EU customers' data in the EU.
- A B2B analytics product where every customer uploads up to 5 TB.
Going deeper
- The silo, pool and bridge vocabulary is widely used in cloud SaaS guidance; you'll also hear "shared-everything" and "shared-nothing".
- Migrations between models are expensive. Even a fully pooled product should put a tenant ID on every row, log line and trace from day one, so that moving a tenant to a dedicated database or cell later is a copy, not a rewrite.
- Cells (lessons 1 to 4) are a pool model that's split into fixed-size pieces: tenants share a cell, but not the whole platform.
Recap
- A tenant is a customer organisation, not a user.
- Silo isolates best and costs most; pool costs least and depends on tenant-aware code; bridge mixes them.
- Decide per layer and per tier; isolation becomes a product decision with a price.
- Keep the SaaS control plane out of the request path, and contain noisy neighbours at every layer.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.