Multi-tenant SaaS Platforms — Cells, Rings & Progressive Delivery
Run one SaaS product for thousands of customers without one failure reaching all of them. Split the platform into cells and size them from measured limits, route each tenant to its cell and move tenants between cells safely, release changes ring by ring with automatic canary analysis, put a secure global edge in front, give regulated and large customers dedicated cells from the same code, and show the cost of every tenant. Then the tenants themselves: choose silo, pool or bridge per layer, keep tenant data apart with row-level security and per-tenant keys (hands-on), give teams safe space on a shared Kubernetes cluster step by step, from soft isolation to dedicated nodes enforced by built-in admission policies, automate onboarding with a tenant chart, GitOps and guardrails, and run the customer tenant lifecycle from sign-up to offboarding.
What you'll be able to do
- Explain cell-based architecture and when it beats one large shared platform
- Size a cell from measured limits and blast-radius targets
- Route tenants to cells and migrate a tenant between cells with a short, safe write pause
- Release changes ring by ring, with canary analysis that aborts bad releases automatically
- Design a global edge with per-tenant rate limits and regional failover
- Run dedicated and regulated cells from the same code, and report cost per tenant
- Choose silo, pool or bridge per layer and keep tenant data isolated with row-level security and per-tenant keys
- Onboard teams onto shared clusters safely, then automate onboarding with a tenant chart, GitOps and policy guardrails
- Automate the customer tenant lifecycle: sign-up, identity, plan limits, plan changes and offboarding
Before you start
Kubernetes Administration Level 3, Argo CD — Level by Level, basic Prometheus queries.
How it works
Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.
Curriculum
Lessons marked “Read” are ready; the rest are on the way.
Cells
- 01Why cellsBlast radius, static stability, cells vs one big platformRead →
- 02Sizing a cellThe limits that define a cell, load testing, headroomRead →
- 03Routing tenants to cellsThe tenant → cell map, the routing tier, failure modesRead →
- 04Moving a tenant between cellsCopy, change data capture, write pause, flip, verify, roll backRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 12 questions to check yourself.Open →
Releasing safely
- 05Ring-based rolloutsRing design, promotion gates, soak time, stopping a bad releaseRead →
- 06Canary analysis with Argo RolloutsRollouts, canary services, AnalysisTemplates, abort and recoverRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 6 questions to check yourself.Open →
Edge, isolation and cost
- 07The global edgeAnycast and CDN, WAF, TLS, tenant routing, per-tenant rate limits, failoverRead →
- 08Dedicated and regulated cellsSame code, different parameters; boundaries and residencyRead →
- 09Operating a fleet of cellsObservability per cell and tenant, DR, upgrades by replacementRead →
- 10Cost per tenantOpenCost allocation by label, shared and idle costs, showbackRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 12 questions to check yourself.Open →
Tenants: isolation and onboarding
- 11Tenancy models: silo, pool and bridgeWhat a tenant is, models per layer and per tier, noisy neighboursRead →
- 12Isolating tenant dataTenant from the token, PostgreSQL row-level security lab, traps, per-tenant keysRead →
- 13Teams on a shared Kubernetes clusterNamespace, IdP groups and RBAC, quota, Pod Security, NetworkPolicy, verified step by stepRead →
- 14Automating tenant onboardingTenant Helm chart with tiers, ApplicationSet, self-service PRs, policy guardrailsRead →
- 15Customer tenant lifecycleSign-up workflow, SSO and SCIM, plan limits, plan changes, offboardingRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 24 questions to check yourself.Open →
Capstone
Real-world scenarios
Work through each one: symptom → misleading signal → evidence → root cause → prevention.
Five teams are waiting for space on the shared cluster and each request takes a week of tickets. Make onboarding self-service without giving up isolation.
A configuration push took out the whole platform. Redesign so the next one hits 2% of tenants.
One customer's growth is slowing everyone else in its cell. Move it with almost no downtime.
Readiness probes pass but customers see errors. Make the rollout notice and stop by itself.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.