SaaS Tenancy on Evidence: Pooled, Siloed and Cell-Based Tenants on AWS, with a Live Tenant Move

Take the role of the solutions architect who decides how four hundred SaaS tenants are housed, on evidence: build the pool, pooled cells with a dedicated cell and a silo with its own key from one Terraform cell module on ECS Fargate and RDS for PostgreSQL 18, route tenants with a thin router that survives a catalog outage, isolate them with row-level security, measure noisy neighbours and blast radius, move live tenants with logical replication without losing a write, cost every model from the Price List API, and write the decision.

Solutions Architect. Advanced.

What you will build and explain

  • Turn business complaints about a shared service into quality-attribute scenarios with measurable response measures.
  • Explain the silo, pool and cell-based models and predict where each will fail a scenario.
  • Design a cell router and tenant catalog that stay thin and keep routing when the catalog fails.
  • Run a fair load experiment with open workloads, per-tier percentiles, repeats and recorded inputs.
  • Build a cost model per tenant tier from published prices and measured usage, and use it to judge a silo deal.
  • Move a live tenant between cells without losing an acknowledged write, and explain each step that guarantees it.
  • Write decision records, a weighted decision matrix and a phased migration plan that leadership can act on.

Before you begin

  • Two or more years of building on AWS: Terraform (init, plan, apply, destroy, variables, outputs, modules); VPC subnets and security groups, IAM roles, Application Load Balancers, ECS services and RDS instances; reading Python and short JavaScript; SQL with joins and transactions; HTTP status codes and bearer tokens. Multi-tenancy, cell-based architecture, row-level security, logical replication, load testing and cost modelling are taught in the project.
  • An AWS account where you may create VPCs, NAT gateways, load balancers, ECS services, ECR repositories, RDS instances, a DynamoDB table, KMS keys, secrets, IAM roles, an EC2 instance and CloudWatch alarms, with 4 free on-demand vCPUs, about 12 Fargate vCPUs and 4 RDS instances; the AWS CLI v2 with its Session Manager plugin, Terraform 1.14 or later and Docker with Buildx.

Who this is for

For engineers and architects with two or more years on AWS who deploy services with Terraform and now have to decide, and defend, how a SaaS product houses its customers: turn complaints into measurable scenarios, build a pool, pooled cells and a silo from one cell module, route tenants with a thin router that survives a catalog outage, isolate them with row-level security, move a live tenant without losing a write, and cost each model per tenant.

Curriculum

Learning topics (16)
  1. Check your starting skills, your account and your tools

    This project is for an engineer or architect with two or more years of building on AWS who now has to make, and defend, a design decision that changes how customers are housed. This page says what you are expected to know already, what the project teaches, and what you need before the first command: tools, an account, permissions and quota.

  2. Tessaline Inspect in cells, from a request to a release and a tenant move

    Tessaline Inspect is one web service used by about four hundred building-inspection firms. Each firm is a tenant: its staff sign in to the same service and must see only their own buildings, inspections and certificates. This page explains how the project houses those tenants on AWS, why it is built that way, and how a request, a release, a tenant move and a cost estimate travel through it. The lessons that follow go deeper into each part; this page should make sense on its o

  3. Pool, silo and cells as placements of one cell

    Four hundred inspection firms use Tessaline Inspect. Should they share one database, have one each, or something in between? This lesson gives you the vocabulary to answer that question precisely, describes the three models the project compares, and shows how the lab builds all three from the same Terraform module so that the comparison is fair.

  4. Turning complaints into measurable scenarios, and measuring them fairly

    "Small firms are slow every evening" is a complaint, not a requirement: nobody can say whether a design fixes it. This lesson turns the four complaints into scenarios with numbers, explains how to measure latency so that the numbers can be trusted, and walks through the noisy-neighbour experiment, including the result that surprised the design.

  5. One Terraform module for every cell, and the network that isolates it

    A cell is the unit everything else is built from: a pool is one cell, a silo is one cell, and cells are several. If the cell is right, every model inherits it; if a cell can be reached in a way the design did not intend, every model inherits that too. This lesson builds up the cell from its parts (an ECS service on Fargate, an internal load balancer, an RDS database) and then the network rules that make it reachable only through the router.

  6. Tokens, row-level security and the fence inside a shared database

    In a pooled cell, four hundred firms' buildings sit in the same table. Westmere's procurement team will ask how Tessaline guarantees that one firm can never read another's, and "every query has a WHERE tenant_id = ..." is not an answer: it is a promise that every developer remembers every time. This lesson shows the layers that make the guarantee hold even when application code forgets: a verified token, a role that owns nothing, row-level security, and a fence. It ends with

  7. A thin router with the whole map in memory, and a catalog it can live without

    Cells limit what a failure can reach, but something must still send each request to the right cell, and that something is shared by every tenant. If the router is slow, everyone is slow; if it depends on a database that fails, everyone fails. This lesson explains how the router is kept thin, why it reads the whole tenant map on a fixed interval instead of looking tenants up, how it keeps working when the catalog cannot be read, and how a stale route after a move is made safe.

  8. Placing tenants by policy, and giving one tenant a cell and a key of its own

    Sales promises that a new small firm can work within a minute of signing up, and Westmere's contract needs a database and a key of its own. Both are placement questions: where does a tenant go, who decides, and what has to exist first? This lesson covers the written placement policy, the order of writes that keeps a new tenant routable, and what a silo cell is and is not in this design.

  9. Logical replication, fences and seven journaled steps that lose no write

    Every path from today's pool to cells goes through moving tenants, and Calderbank cannot be asked to stop working while its two million rows are copied. The requirement (QS-05) is strict: no acknowledged write lost, the tenant's writes held for at most 30 seconds, its reads for at most 5, and every other tenant within its normal latency. This lesson builds the move from PostgreSQL's logical replication up, then walks through the seven steps and the two details that make "no a

  10. Releases in waves behind a gate, and watching a system cell by cell

    Last quarter one release with a slow migration stopped every Tessaline customer at once. Cells make a different outcome possible, but only if releases use them: a release that goes to every cell at once has the pool's blast radius. This lesson explains how tenancy deploy releases in waves, what its gate judges and why, how schema changes fit a world where cells run different versions, and how the system is observed one cell at a time.

  11. From metering lines and published prices to a monthly cost per tier

    Finance sees one AWS bill and cannot say what a small, medium or large tenant costs, so it cannot set tier prices or judge whether Westmere's silo deal makes money. This lesson builds the cost model the project uses: unit prices from the AWS Price List API, usage measured from the API's own log lines, and a rule for sharing a pooled cell's cost among its tenants. It ends with the three models priced at four hundred tenants.

  12. Decision records, a weighted matrix and a migration plan leadership can act on

    The experiments are not the deliverable. Leadership asked for a recommendation it can act on: which model, at what cost, with what evidence, and how to get there safely. This lesson shows how the project turns measurements into that recommendation with three documents: architecture decision records, a weighted decision matrix and a migration plan. It works through the reference run's scoring so you can repeat it with your own evidence.

  13. Build the cells, run the experiments and collect the evidence, in one ordered runbook

    The one ordered procedure for building Tessaline Inspect's cells in your AWS account, running the experiments that produce the evidence, and collecting it. The cleanup runbook removes everything afterwards; it is reachable at any point, including after a step fails. The architecture explains what each step builds; the guide's milestones show the relevant sections of this page one at a time.

  14. Diagnose unhealthy cells, refused moves, a gate that stops good releases and slow evenings

    The scenarios are interview-style cases from across the system: a cell that never becomes healthy, a tenant the router does not know, moves that refuse at catch-up or while the tenant is frozen, a disk filling after an interrupted move, a gate that stops a good release, an evening slowdown, a table that leaks rows, a price lookup that refuses and a cleanup check that reports resources already destroyed.

  15. Explain the tenancy decision and defend every trade-off

    A solutions architect is interviewed less on facts than on reasoning: why this model, what it costs, what would change the answer, and how you know. The questions cover the architecture and every technology the project uses, each with a model answer grounded in this project and a follow-up that changes a constraint.

  16. Remove everything the lab created, and know what stays

    Removes everything the lab created, in the order its dependencies require, and checks what is left. It works from any point of the deployment: after the last milestone, half way through, or after a failed apply. Everything here runs on your workstation, from the source/ folder, with the same AWS_PROFILE and AWS_REGION you deployed with.

Practical build steps (13)
  1. Prepare your machine, your sign-in and your account

    Before anything is created, make sure three things are true: your tools are recent enough, your terminal is signed in to the account you intend to use, and that account has room for the lab (quotas) and nothing blocks the services it needs. Every later milestone assumes all three.

  2. Run two cells, the router and a live move on your machine

    Before spending anything, run a small copy of the system in Docker: two cells (each an Inspect API and a PostgreSQL 18 database), the router and a DynamoDB emulator as the catalog. The integration check then does what unit tests cannot: it uses row-level security in a real database, takes the fence's real locks and moves a tenant by real logical replication while threads keep writing.

  3. Create the registries and push the three images

    The services cannot start without their images, and the images need somewhere to go. This milestone creates the three ECR repositories with a targeted apply of the shared root, then builds the Inspect API, the router and the operations image for arm64 and pushes them with one tag.

  4. Build the network, catalog, router and operations host

    The shared root builds everything the cells will share: the VPC and its private subnets, the NAT gateway and gateway endpoints, the front load balancer and the router service, the catalog table, the project's KMS key and token signing secret, the ECS cluster and the operations host. When it finishes, the router is running with an empty map, and the operations host is installing the tool.

  5. Build three cells and prepare their databases

    Three cells from one Terraform module: cell-a, the pool that will hold every customer at first; cell-b, the canary that every release reaches first; and cell-c, which will become Calderbank's own cell. Each is a load balancer that only the router may call, two Inspect API tasks and a PostgreSQL 18 database with logical replication enabled and TLS required. Then tenancy cell-init gives each database its roles and schema.

  6. Seed 403 tenants, onboard one and reach it through the router

    The cells are empty. tenancy seed creates the synthetic customers inside the databases: 370 small, 25 medium and 5 large tenants in cell-a, and Tessaline's 3 test tenants in cell-b. Then one new tenant is onboarded by the placement policy, and you send a request by hand to see the router's work in its headers.

  7. Measure the pool: isolation, a noisy neighbour and a faulty release

    Every customer is now in cell-a, which is today's pool. Three experiments measure it against the scenarios: the isolation probes (QS-06), the small tenants' p99 while Calderbank imports (QS-01), and how many tenants a release that fails every write reaches before the gate stops it (QS-02).

  8. Move the large tenant and a batch live, then measure the cells

    The heart of the migration: Calderbank moves from cell-a to cell-c while every tenant keeps working and a stream of writes records every acknowledgement; then the noisy-neighbour experiment runs again, now that the import lands in its own cell; then twenty small tenants move to cell-b in one batch.

  9. Release a faulty build in waves and watch the gate stop it

    The same faulty release as in the pool, now in the cells layout. tenancy deploy releases to cell-b, the canary, first; bakes for two minutes; reads cell-b's load balancer metrics; and, because more than 1 % of its answers are 5xx, puts cell-b back on its previous task definition and stops.

  10. Add Westmere's silo cell and onboard it

    Westmere Housing will sign only with a database of its own, encrypted with a key of its own. In this design that is a cell like the others with one tenant and a silo kind, which gives it its own KMS key. You add it to the cells map, apply, initialise its database and onboard Westmere pinned to it.

  11. Stage a catalog outage, then cost the models and collect the evidence

    Two last measurements. The router experiment measures the router's own time from its Server-Timing header, then denies the router's role access to DynamoDB for six minutes: known tenants must keep being served and unknown ones refused (QS-07). Then the cost model: usage from the metering lines, prices from the Price List API, and a monthly cost per tier for the pool, cells with a silo tier and silo only (QS-04). tenancy report gathers everything into evidence files.

  12. Destroy everything and check what is left

    Copy the evidence off the operations host first, then remove the lab in the order its dependencies require: the cells (they read the shared root's state), then the shared layer, then the log groups RDS created outside Terraform. The leftovers check confirms nothing remains except the two KMS keys waiting out their seven-day deletion period.

  13. Score the matrix and write the decision from your evidence

    The lab is gone; the evidence remains. A solutions architect's deliverable is not the experiment but the decision it supports: the quality scenarios judged, the decision matrix scored by its written rules, the tenancy ADR accepted or changed, and a migration plan whose pace comes from the rehearsals. This milestone runs on your workstation and costs nothing.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

This project creates billable AWS resources in your own account: four RDS for PostgreSQL databases, Fargate tasks, five internal load balancers, a NAT gateway, an EC2 operations host, a DynamoDB table, KMS keys, secrets and CloudWatch logs, alarms and a dashboard. With all four cells running it costs about 1.28 USD per hour at on-demand prices in the Mumbai region (November 2026); the complete build, experiments and cleanup take four to five hours, about 5 to 7 USD. Prices differ by region and change over time. AWS charges are billed by AWS and are separate from project access. No alarm in this project limits spending: run the cleanup when you finish and check that nothing is left; two KMS keys are billed, prorated, until their seven-day deletion completes. Tessaline Inspect, its tenants and their data are fictional and synthetic. This is a learning reference, not a hosted service or a production deployment.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as Terraform and its providers, FastAPI, psycopg, boto3, k6 and the container images the project builds on, retain their own licences. See LICENSE.txt, THIRD-PARTY-NOTICES.md and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy