Skip to content
Learn · Glossary

Multi-tenancy

Multi-tenancy is a software architecture where one deployment serves multiple customers — called tenants — from shared infrastructure while keeping each tenant's data logically isolated. A single application instance, database, and codebase handle many organizations at once, with a tenant identifier separating one customer's records from the next.

Updated 8 Jul 20262 min readBy fromHello
Key takeaways
  • Multi-tenancy means one deployment serves many isolated tenants from shared infrastructure, with the boundary enforced in both the application and the database.
  • Isolation spans a spectrum: a shared database with a tenant key, a schema per tenant, or a separate database per tenant — stronger isolation costs more to run.
  • Self-hosting a multi-tenant platform gives you your own tenant boundary: one install can run several brands or client workspaces without a per-brand subscription.

How does multi-tenancy work?

A multi-tenant application attaches a tenant identifier to every request and every record. When a user signs in, the app resolves which tenant they belong to, then scopes every query, background job, and message to that tenant. All tenants run on the same servers and usually the same database, which keeps the operating cost per tenant low — but the isolation is only as strong as the code and database constraints that enforce it.

What are the main isolation models?

Isolation modelHow it worksTrade-off
Shared database, tenant keyEvery row carries a tenant ID; every query filters on itCheapest to run; one missed filter can leak data across tenants
Schema per tenantEach tenant gets its own schema inside a shared databaseStronger separation; migrations multiply with tenant count
Database per tenantEach tenant gets a dedicated database or instanceStrongest isolation; highest cost and operational overhead
Multi-tenancy in relation to its adjacent terms.

Why does multi-tenancy matter for a small team?

If you run one product under one brand, tenancy may never cross your mind. It matters the moment you serve several brands, client workspaces, or environments from one install — the common case for agencies and small platforms. Open-source engagement tools such as Dittofeed model tenancy as workspaces, and a self-hosted customer engagement setup makes the whole install your own tenant boundary: your customers' data shares infrastructure with no one outside your company.

What does multi-tenancy change for compliance?

In a shared SaaS you are one tenant among thousands, relying on the vendor's isolation, data residency choices, and contracts. Self-hosting inverts that: you become the operator, so per-tenant isolation, retention, and the audit log are yours to configure — and to prove. Neither model is compliant by nature; GDPR obligations follow the data, not the architecture.

FAQ

Common questions

  • What is the difference between multi-tenant and single-tenant?

    A multi-tenant deployment serves many customers from shared infrastructure with logical isolation between them. A single-tenant deployment dedicates the full stack — application and database — to one customer. Single-tenant offers harder isolation and a simpler compliance story at a higher cost per customer; multi-tenant trades some isolation depth for efficiency.

  • Is multi-tenancy the same as having multiple users?

    No. Users are people inside one tenant; tenants are separate customer organizations. A two-person startup with 10,000 users can still be single-tenant, while an agency running three clients in one install is multi-tenant.

  • Can one tenant see another tenant's data?

    Not if isolation is implemented correctly. The risk is real, though: in shared-database designs, a single unfiltered query can cross the boundary. That is why tenancy checks belong in the data layer — row-level security or schema separation — not only in application code.

  • Does a startup need multi-tenancy?

    Only if you serve multiple organizations from one deployment — clients, brands, or workspaces. If you self-host a tool for a single company, single-tenant is simpler. Multi-tenancy earns its complexity once tenant count grows faster than your capacity to run separate installs.

See the platform the team runs.

Related guides
Early access

Put your growth teamon autopilot.

Early access opens gradually, so the team tunes to real use cases. Small teams with big ambitions go first.

500+ already on the list

Not ready to share an email? It's open source. Run it yourself today. View on GitHub

No spam. One email when your spot opens. Unsubscribe at any time.