Glossary

Multi-tenant vs single-tenant

Single-tenant architecture gives each customer a dedicated instance, while multi-tenant architecture serves many customers from one shared system and separates their data inside it.

Multi-tenant and single-tenant describe how a software system serves its customers. In a single-tenant architecture, each customer gets its own dedicated instance: its own application deployment, its own database and often its own infrastructure. In a multi-tenant architecture, many customers share one running system, and their data is kept apart logically or structurally inside it. Single-tenant gives the strongest separation and the most room for per-customer customisation, but costs more to run and is slower to update. Multi-tenant is cheaper, easier to operate and lets every customer get new features at once, but puts the burden of proof on tenant isolation: the provider has to show that one customer can never see another’s data. Most modern SaaS products are multi-tenant, with single-tenant options reserved for customers who need them.

What single-tenant means

In a single-tenant setup every tenant is a separate deployment. That might be a dedicated virtual private cloud, a separate cluster, or at minimum a separate database and application stack per customer. Nothing at the data layer is shared, so a bug in a query cannot return another customer’s rows, a heavy workload from one customer cannot slow down another, and each customer’s environment can be upgraded, configured or placed in a specific region on its own schedule.

This is why single-tenant deployments are common in regulated industries and large enterprise contracts. Security reviews are simpler to pass when the answer to “who else is on this database?” is “nobody”. Requirements such as customer-managed encryption keys (BYOK), specific data residency or custom retention periods are easier to meet per deployment.

The costs are operational. Every customer is a fleet member to provision, monitor, patch and back up. A release that takes minutes in a shared system becomes a rollout across hundreds of environments, and versions drift. Infrastructure is often underused, because each instance is sized for its peak. Onboarding a new customer can take days rather than seconds.

What multi-tenant means

Multi-tenancy shares the running system across customers. One deployment serves everyone, and every request carries a tenant identity that the system uses to scope what it can read and write. Infrastructure is pooled, so capacity is used efficiently, one release reaches every customer at once, and a new customer can be created with a single API call.

The trade is that isolation becomes something the software must enforce, rather than something the infrastructure provides for free. There are several ways to do it, usually summarised as the silo vs pool tenancy spectrum. In the pool model, all tenants share tables and each row carries a tenant ID; queries filter by it, sometimes enforced by the database through row-level security. In the bridge model, tenants share a database server but get separate schemas or databases. In the silo model, each tenant gets its own storage resources within a shared control plane, which brings multi-tenancy close to single-tenant separation while keeping central operations.

Shared systems also have to manage the noisy neighbour problem, where one tenant’s heavy usage degrades performance for others, typically through per-tenant rate limits, quotas and workload isolation. Scaling large pools usually involves sharding tenants across database clusters.

Side by side

Single-tenant

Multi-tenant

Deployment

One instance per customer

One shared instance for all customers

Data separation

Physical, by infrastructure

Logical or structural, enforced by software

Cost per customer

High, infrastructure sized per tenant

Low, capacity pooled across tenants

Updates

Rolled out per instance, versions can drift

One release reaches everyone

Onboarding

Provisioning work, often days

An API call, often seconds

Customisation

Extensive, per deployment

Limited to configuration

Noisy neighbours

Not a concern

Needs quotas and rate limits

Security review

Simpler to explain

Needs a clear isolation story

Typical buyers

Regulated enterprises, government

Most SaaS customers

Isolation in AI applications

AI products raise the stakes on multi-tenant isolation because they store more kinds of customer data, and in places that were not designed with tenants in mind. A typical agent or RAG product holds uploaded files, extracted text, embeddings in a vector index, conversation history, long-term memories about users, and the outputs of background jobs. Each of these stores needs the same tenant boundary, and the weakest one defines the product’s real isolation.

The common failure is a cross-tenant data leak through retrieval. If every customer’s document chunks live in one vector index and the tenant filter is a metadata condition on the query, then one code path that forgets the filter, or one bug in how filters are combined, returns another customer’s passages to a model that will happily quote them. Vector namespaces and a per-tenant index reduce this risk for the vectors, but not for the files, extraction outputs or memories stored elsewhere. Memory deserves particular care: memory isolation failures can surface one user’s preferences or personal details in another user’s session. Five ways tenant data leaks in RAG apps covers the patterns in more detail.

A worked example

A legal technology startup sells a contract review assistant to law firms. Its first version is pool-style multi-tenant: one Postgres database with a firm_id column, one object storage bucket with a prefix per firm, and one vector index where every chunk carries firm_id as metadata.

The first large firm sends a security questionnaire. It asks how client documents are kept separate from other firms’ documents, whether a search could ever return another firm’s contracts, and how the vendor would prove it. The honest answer is that every query includes a WHERE firm_id = ? clause and a metadata filter, and that the team has tests for it. The reviewer asks what happens if a developer adds a new query path next quarter and forgets the filter. The team has no structural answer.

One option is to offer that firm a single-tenant deployment: a separate stack, separately operated. That closes the deal but adds an environment to maintain, and the next three large firms will ask for the same. The other option is to move to silo-style multi-tenancy for customer data: a separate isolated environment per firm, holding its files, index and memory, created automatically when the firm signs up, while the application and control plane stay shared. A scoped call can then only reach that firm’s environment whatever the query says, and the questionnaire answer becomes structural instead of procedural. A WHERE clause is not tenant isolation makes this argument at length.

Many vendors end up with a hybrid. The control plane (sign-up, billing, the application servers, the admin interface) is shared across every customer, while the data plane is split per tenant or per group of tenants. Large customers can be moved onto dedicated data-plane resources without changing the product they use, and smaller customers stay on shared capacity. This keeps one codebase and one release process, while giving the sales team a credible answer for buyers who need stronger separation. The design decision then becomes which stores move into the per-tenant data plane first, and the usual answer is whatever holds customer content.

How to choose

Choose single-tenant when a customer contract or regulation requires dedicated infrastructure, when customers need deep customisation or their own release schedule, or when a small number of very large customers justify the operating cost. Expect to price it accordingly.

Choose multi-tenant for most SaaS products, especially those with many customers, self-serve onboarding and a single product version. Then decide where on the silo to pool spectrum each kind of data belongs. Low-risk, high-volume data such as usage metrics can be pooled. Customer content, embeddings and memories are where structural separation pays off, because they are the data security reviewers ask about and the data a retrieval bug would expose. Tenant onboarding should create each tenant’s isolated resources automatically, so the stronger model costs nothing per customer in engineering time.

Whichever model you choose, plan for the full tenant lifecycle: an audit log of who accessed what, data retention rules per tenant, and a clean way to delete everything a tenant owns when they leave, which also supports the right to be forgotten.

Where Exabase fits

Exabase is a multi-tenant platform, and its Bases give your own product silo-style isolation for customer data without running separate deployments. A Base is an isolated environment with its own file storage, folders, tags, memory, search index, extraction pipeline and Workers. You create one per tenant with a single call to the create Base endpoint, and pass the Base ID with the X-Exabase-Base-Id header, or set baseId on the TypeScript SDK client, so that Resources, Memory, Deep Search, Extract and Workers calls all scope to it. Isolation is enforced at the infrastructure level: a call scoped to one Base cannot reach another Base’s data, whatever the query says.

The unit of isolation is yours to choose: customer, user, project, legal matter, patient, agent or repository. The free plan supports 100 Bases and paid plans 10,000, with higher limits on request, and creation is immediate at any count. Your tenants do not need Exabase accounts; usage rolls up to your developer account. Each Base can have its own Workers to maintain its content and its own snapshot history for recovering from a bad agent run. Deleting a Base removes all of its files, memories, index and history, which makes offboarding a single operation. Data is encrypted in transit and at rest with AES-256, and Exabase is CASA certified; whether a given deployment meets your own compliance obligations is a decision for your legal and engineering teams.

The about Bases guide and memory scoping guide cover the details, the multi-tenant solution shows the full pattern, and the multi-tenant SaaS use case walks through a typical build.

Frequently asked questions

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

Single-tenant gives each customer a dedicated instance with its own application and data stores. Multi-tenant serves many customers from one shared system and separates their data inside it. Single-tenant offers stronger physical separation; multi-tenant is cheaper and simpler to operate.

Is single-tenant more secure than multi-tenant?

It is easier to explain, because nothing is shared at the data layer. A well-designed multi-tenant system with structural isolation can be very secure, but the provider has to demonstrate how isolation is enforced rather than relying on separate infrastructure.

Why is most SaaS multi-tenant?

Because it is far cheaper to run, every customer gets updates at the same time, and new customers can be onboarded instantly. Single-tenant options are usually offered only to large or regulated customers who need them.

What is the safest way to isolate tenant data in a RAG application?

Give each tenant structurally separate storage for files, embeddings and memory, so that a scoped request cannot reach another tenant’s data even if a filter is missing. Filtering a shared index by tenant ID works, but fails silently when one query path forgets the filter.

Can a multi-tenant system offer single-tenant guarantees?

Partly. Silo-style multi-tenancy gives each tenant separate storage and indexes within a shared platform, which closes most of the gap. Requirements such as dedicated hardware or a customer-controlled deployment still need a single-tenant offering.

How does Exabase isolate tenants?

With Bases. Each Base is an isolated environment with its own storage, memory, search index, extraction pipeline and Workers. Every API call scoped with a Base ID can only reach that Base, and you can create up to 10,000 Bases on paid plans.

Related pages: multi-tenancy, tenant isolation, silo vs pool tenancy, cross-tenant data leakage, multi-tenant, multi-tenant SaaS use case, best vector database for multi-tenant, Exabase vs Nile, how to explain tenant isolation to a CISO, Vector database vs relational database

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.