Multi-tenant SaaS architecture and development
We design and build tenant-aware applications, with data isolation, onboarding, billing and operational controls.
Tenant isolation is a security concern from day one
In a SaaS product, one customer's data must stay separate from another's. We treat tenant isolation as a fundamental security and data architecture concern, and we decide it early, alongside the application, domain, data, integration and infrastructure boundaries.
Isolation at every layer
We apply tenant isolation at the application, API, database and authorization layers.
- Application
- API
- Database
- Authorization
Shared database, schema per tenant or database per tenant
We have practical experience with all three models: shared database, schema-per-tenant and database-per-tenant. The right choice depends on the product's requirements, so we start from those.
- shared database
- schema-per-tenant
- database-per-tenant
What this covers
- Tenant-aware keys, plus middleware and context propagation
- Row-Level Security and dedicated database users
- Noisy-neighbour management and workload isolation
- Tenant onboarding and workload-based database sizing
- Tenant migration between infrastructure tiers
- Schema and seed rollout across multiple tenant databases, and idempotent database migrations
- Caching and cross-tenant administrative reporting
- Performance testing and capacity planning
- Tenant-aware AI data boundaries, including for RAG
How we build our own
Martius, our gym management product, is a web-based multi-tenant SaaS product. It uses database-per-tenant isolation, Row-Level Security and dedicated tenant database users.
Read about MartiusUse it in your product
We use this experience in our own products and offer it as a service. Tell us about the product you're building.