In this presentation Darshak Prajapati - Tech Lead - Sufalam Technologies explains about Multi Tenant Architecture basics. He also explains types of multi tenant architecture, its benefits and how to implement the same. You can find many examples of multi tenant architecture - Gmail, Shopify, Dropbox are few of them.
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
What is Multi-Tenant Architecture ?
1. What is Multi - Tenant
Architecture ?
Darshak Prajapati
Technical Lead
Sufalam Technologies
2. Index
● What is Multi-tenant ?
● Types of Multi-tenant
● Benefits of using it
● How to use it ?
3. What is Multi-Tenant Architecture ?
“Tenants” is a term for a group of users or software applications that all share access
to the hardware through the underlying software.
A type of software and database management architecture in which a single software
instance can serve multiple users. Here, each multiple users called tenants.
Tenants have some measure of customization for the shared resource, like
controlling which users can access the resources or how the application looks and feels.
multi tenancy is a key feature of the cloud environment.
Multi Tenancy is the key feature of cloud environment.
5. Types of Multi-
tenant
● Multi-tenancy with single Multi-
tenant database
● Multi-tenancy with one
database per tenant
● Multiple app instances with
multiple databases
6. Multi-tenancy with single Multi-tenant database
● Also known as Shared Database.
● This is the first and simple type of multi-tenancy. Its using single application
instance and the single database instance to host the tenants.
● This architecture is highly scalable, and when more tenants are added the
database is easily scaled up with more data storage.
● At database level you need to take one column to store tenant_id for
identifying the data is belongs to which tenant.
8. Multi-tenancy with one database per tenant
● In this type of multitenant It uses a single application instance and an
individual database for each tenant.
● Inside the main server, we have separate databases dedicated only to
specific tenants.
● By using this you can achieve the highest level of tenant isolation and data
security – data remains invisible to other users.
10. Multiple app instances with multiple databases
● In this type every tenant has a separate instance of the application with
separate database.
● This type of multitenant architecture is highly secure in compare to others.
● Tenants has full control over to instance as their instances are separate.
12. Benefits of using Multi-tenant
● More efficient : In terms of reduces the need for individual users to manage infrastructure and
handle updates and maintenance. Individual tenants can rely on a central cloud provider, rather
than their own teams, to handle those routine chores.
● Fast Deployment : Simple process of adding new tenants by reducing the manual set up and
release the application
● Convenient maintenance : Every change made in your software, such as configurations,
updates and user provisioning will reflect in each tenant.
● Efficient Resources : Shares all resources, offering optimum efficiency and the capacity to
power multiple users at once, because it is a dynamic environment where users access resources
simultaneously.
● Beneficiary to use with cloud environment.
13. How to use Multi-tenant ?
Database level changes
● Create a new table `tenants`
● Add columns as per your tenant
requirements (name, id, contact, configs
tenant information)
● Add `tenant_id` column in every table
Code level changes
● You can filter tenant specific data using
tenanat_id using middleware or header
as per your project requirements and
specifications.
● For media files you can create separate
folders based on tenants for easy and
fast management
Contact us to create / update your application with multi-tenant