Multi-Tenant SaaS Architecture on AWS: A Practical Guide
Arshad Ali · July 15, 2026
Multi-tenancy is what makes SaaS economics work: one running system serves many customers (tenants), so each new customer adds revenue without adding a new deployment. Getting it wrong is costly, because the failure mode is one customer seeing another's data. Here is how we approach a multi-tenant application on AWS.
The core challenge: data isolation
The first priority in a multi-tenant system is that one tenant's data is completely inaccessible to another. A breach of isolation can end a SaaS company. There are three main models.
1. Silo model (separate everything)
Each tenant gets its own infrastructure: its own database, functions and so on. This gives the strongest isolation, and it is the most expensive and the most work to operate.
2. Pool model (shared everything)
All tenants share the same infrastructure, including the same database tables, and every record carries a tenantId. This is the cheapest model to run. Isolation then depends on every query being written correctly, unless you add enforcement below the application.
3. Bridge model (the usual answer)
Most products mix the two: shared compute, with data separated more firmly than a tenantId column. Examples are a schema per tenant in PostgreSQL, or one DynamoDB table where IAM policies restrict each request to its own tenant's keys. Some products also put their largest or most regulated customers in a silo and everyone else in a pool.
Our recommended serverless architecture
At AceOar we start serverless-first, with isolation enforced by AWS itself and not only by application code.
- Identity with Amazon Cognito. For most products, use one user pool shared by all tenants, with the tenant recorded as a claim in each user's token. Give a tenant its own user pool only when it needs something different, such as its own single sign-on provider or password policy.
- API Gateway with an authorizer. Every request is authenticated. The authorizer validates the token, reads the tenant from it and passes it on. The tenant never comes from something the caller can set freely, such as a request parameter.
- Business logic in AWS Lambda. Functions are stateless and receive the tenant from the authorizer, so they have no other way to learn which tenant they are serving.
- DynamoDB with tenant-scoped credentials. We use a single table whose partition keys start with the tenant, for example
TENANT#<tenantId>. For each request, the function obtains temporary credentials limited to that tenant, using an IAM policy with thedynamodb:LeadingKeyscondition. The database itself then refuses any read or write outside that tenant's keys, so a bug in application code cannot leak another tenant's data. This adds a little latency, which caching the credentials per tenant mostly removes.
Onboarding new tenants
Adding a customer should be fully automated. In a pool or bridge model, onboarding is mostly data: create the tenant record, its first admin user and its settings. In a silo model, onboarding provisions infrastructure, so define the tenant stack with an Infrastructure as Code tool such as AWS CDK and have sign-up trigger the deployment.
Two things teams leave too late
- Cost per tenant. Shared infrastructure hides who is using what. Record the tenant on your usage metrics from the start, so you can see which customers are expensive to serve and price accordingly.
- Noisy neighbours. One tenant's heavy usage should not slow everyone else down. Per-tenant throttling at the API, and limits on background work per tenant, are much easier to add early than after an incident.
Multi-tenancy is complex, but the decisions are well understood. Choose the isolation model deliberately, enforce it below the application, and automate onboarding from the first customer.
Next step
Tell us what you’re working on
Send a short description of your project or problem. You’ll get a reply within two business days, saying whether we can help and what the next step would be.