What “multi-tenant” means
In a multi-tenant platform, one running application serves many customer organisations, called tenants. Each tenant sees only its own data, users and settings, but you deploy, monitor and improve a single product. It is what makes SaaS economical: one release reaches every customer at once.
The hard part is not sharing the code. It is guaranteeing that one tenant can never see another’s data, while keeping the platform fast and affordable to run.
Three ways to separate tenants’ data
- Shared database, shared tables. Every row carries a tenant ID and every query filters by it. Cheapest to run and simplest to update. The risk is a single missing filter leaking data, so isolation should be enforced by the database itself (for example PostgreSQL row-level security), not just by application code.
- Shared database, separate schemas. Each tenant gets its own set of tables inside one database. Stronger separation and easier per-tenant backups, at the cost of more complex migrations as tenant numbers grow.
- Separate database per tenant. The strongest isolation, and sometimes required by large or regulated customers. It costs more to run, and every release has to be rolled out across many databases.
Tip:Many platforms mix models: shared tables for most customers, with a dedicated database offered to enterprise customers who need it. Designing for that from the start is far cheaper than retrofitting it.
Isolation is more than data
- Identity: users belong to a tenant, and some (such as consultants or group managers) may belong to several. Plan for that before your first enterprise deal.
- Permissions: role-based access inside each tenant, so a coordinator and a director see different things. Check permissions on the server for every request, not just in the interface.
- Configuration: branding, terminology, workflows and feature flags per tenant, without forking the code.
- Noisy neighbours: one large tenant’s reports should not slow everyone else. Rate limits, background queues and per-tenant usage monitoring help.
- Audit trails: record who did what, in which tenant, and when. Regulated customers will ask.
How to choose
Start from your customers, not the technology. If you expect hundreds of small customers on monthly plans, shared tables with database-enforced isolation is usually right. If you sell to a handful of large organisations with strict security reviews, plan for schema or database separation, or at least the option of it.
Whichever model you pick, write automated tests that try to read another tenant’s data and must fail. That single habit prevents the most damaging class of SaaS bug.
See it working
Our live platform demo shows multi-tenancy from the user’s side: switch between three organisations and every number, name and word changes, while roles decide what each person can open. CareAssist, our own care platform, is built on the same principles.