Book a 30-min callBook a call

Multi-tenant architecture for SaaS: the models and how to choose

Multi-tenancy lets one SaaS app serve many customers while keeping their data apart. The three common models, their tradeoffs, and how to start.

One building with several separately coloured apartments, each holding its own small data cylinder.
Written by
BYD Tech
Updated
Topic
Web apps
Reading time
3 min read

Questions people ask

What is multi-tenant architecture?

A design where one software system serves many customer organizations, called tenants, while keeping each tenant’s data separate from the others.

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

Single-tenant gives each customer their own copy of the software and database. Multi-tenant serves all customers from shared software, separating their data inside it.

Which multi-tenant model should a new SaaS use?

Usually a shared database with a tenant ID on every row, enforced centrally. It is the cheapest to run, and large customers can be moved to their own database later.

What is row-level security?

A database feature, available in Postgres, that limits which rows a query can see based on rules, such as only rows belonging to the current tenant.

Building something like this?