Page 1

Database Architectural Patterns For

MULTI-TENANT SAAS APPLICATIONS


MULTI-TENANT VS SINGLE-TENANT

In multi-tenant architecture, a single instance of the application serves multiple customers who all either share a database or have their own databases.

VS

In single-tenant architecture, a single database supports a single instance of the software.


THE THREE APPROACHES TO MULTI-TENANT ARCHITECTURE The three approaches that can be followed in the case of multi-tenant architecture are:

Separate databases, separate schema

Shared database, separate schema

Shared database, shared schema


SEPARATE DATABASES, SEPARATE SCHEMA Tenant A

This architecture ensures the highest level of data security where every tenant has its own database instance physically separated. One tenant cannot access data for the other tenants.

Tenant B

Tenant C

SaaS Applications

Tenant A Database

Tenant B Database

Tenant C Database


SHARED DATABASE, SEPARATE SCHEMA Tenant A

This architecture serves multiple tenants under the same database, where each tenant has its own set of tables grouped by schema created specifically for that tenant.

Tenant B

Tenant C

SaaS Applications

Tenant A Database

Tenant B Database

Tenant C Database


SHARED DATABASE, SHARED SCHEMA Tenant A

This architecture involves using the same database and the same set of tables/schema to host multiple tenant data. A Tenant ID associates each tenant with the rows that it owns.

Tenant B

Tenant C

SaaS Applications

Shared Database, Shared Schema


PROS AND CONS Factors

Separate Databases, Separate Schema

Shared Database, Separate Schema

Shared Database, Shared Schema

Security

High

Medium

Low

Flexibility

High

Medium

Low

Cost

High

Medium

Low

Maintenance

High

Medium

Low


KEEP IN MIND: When thinking about the correct approach, carefully consider: The number of tenants Amount of stored data Security requirements


CONCLUSION Multi-tenant architecture gives the power and versatility to build an application with resource sharing in mind.

If you’d like help developing your multi-tenant software, contact us. https://bit.ly/2yif7wx

Profile for Capital Numbers Infotech Pvt.Ltd.

Database Architectural Patterns For Multi-Tenant SaaS Applications  

Architecting databases for multi-tenant SaaS (Software as a Service) applications can be challenging and there are various aspects like secu...

Database Architectural Patterns For Multi-Tenant SaaS Applications  

Architecting databases for multi-tenant SaaS (Software as a Service) applications can be challenging and there are various aspects like secu...

Advertisement