Wednesday, March 20, 2013

Multi-Tenancy an overview

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.

clip_image002

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

clip_image004

Now lets talk about multi instance with multi tenant.

clip_image006

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

  1. If a new tenant appears we can serve them a shared infrastructure.
  2. If more tenant appears we can dynamically or elastically scale out your infrastructure.
  3. Visa versa if tenant become less active you can scale in your infrastructure.
  4. So that you can cancel your subscription and scale your budget.

clip_image008

Hope this article has given you brief details on Multi-Tenancy.