Multi-tenant SaaS Platforms — Cells, Rings & Progressive Delivery›Cells · Cheat sheet & self-check

Cells · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

01 · Why cells

Cell design rules

No cross-cell calls on the request pathA cell serves its tenants with only its own components
Thin global layerRouting, identity, tenant directory: small, simple, highly available
Static stabilityCells keep serving if the global control plane is down
Same code everywhereCells differ by parameters, never by forks
Cells are cattleBuilt from code, replaceable, added when needed

02 · Sizing a cell

Limits to measure per cell

DatabaseWrite IOPS, storage, max connections, replication lag under load
MessagingPartitions per broker, throughput, consumer lag
KubernetesNodes, pods, API server latency, etcd size, pod IPs per subnet
Cloud accountLoad balancers, ENIs/IPs, instance and KMS request quotas
Edge and servicesRequests per second, connection pools, cache memory
Blast radiusMax tenants, max revenue or max top-tier customers per cell

03 · Routing tenants to cells

Ways to identify the tenant

Subdomain: acme.app.example.comEasy to route on at the edge; visible to users
Token claim: tenant=acmeWorks for APIs; needs token parsing at the router
Path prefix: /t/acme/…Simple, but leaks into every URL
Dedicated hostname per cellClients told which cell to use (after a lookup)

04 · Moving a tenant between cells

Move checklist

1 provisionTenant config, schema and storage ready in the target cell
2 copyBulk copy of the tenant's data (database rows, objects, search index)
3 streamChange data capture from source to target until lag ≈ 0
4 pauseShort write pause for this tenant only; drain in-flight writes
5 flipUpdate the tenant → cell map; routers refresh
6 verifyRow counts, checksums, smoke tests as the tenant
7 keepSource read-only for N days as the rollback point, then clean up