First of all let us discuss about multi tenancy. So Let first see what is single tenant so that it will be easy to understand what is multi tenant.
What is a tenant?
For example you have a web site with certain functionality. There are a few customers who want to use your web site and in return they will pay you. These customers are tenants.
What is single tenancy?
Single tenancy means single architecture in which a single instance of a software application and supporting infrastructure serves one customer.
In single-tenancy architecture, the tenant purchases their own copy of the software and the software can be customize to meet the specific and needs of that customer. Single-tenancy can be contrasted with multi-tenancy, an architecture in which a single instance of a software application serves multiple customers.
Here is the example of single-tenancy. It is typical structure.
A client with some process and a storage.
What is multi-tenancy?
Multi-tenancy means one application can be used by multiple instance with their own data storage and own configuration. Here we are talking about multi instance with single tenant software. For example in my company I am developing a software and the customer can use that software with their own infrastructure. Here we are taking about multi instance with single tenant
Now lets talk about multi instance with multi tenant.
In above diagram we can see that on left end side we have some clients in middle we have some processes and right end side we have a storage database.
Main benefit of the multi tenancy are as follows
- If a new tenant appears we can serve them a shared infrastructure.
- If more tenant appears we can dynamically or elastically scale out your infrastructure.
- Visa versa if tenant become less active you can scale in your infrastructure.
- So that you can cancel your subscription and scale your budget.
Hope this article has given you brief details on Multi-Tenancy.