What is a Multitenancy Architecture and Why Is it becoming popular?

preview_player
Показать описание
In this video I explain the multi-tenancy architecture. The basic idea is to have a single instance of your application to serve multiple tenants or customers and the properties are this. This is as oppose to isolated or dedicated infrastructure.

Here is some properties of a Multi-tenant application

1. Shared Instance
2. One database hosting multiple customers
3. Isolation at the application level
4. Can be multi-processes and multi-instances as long as they are pooled
5. Stateless


Resources

🏭 Software Architecture Videos

💾 Database Engineering Videos

🛰 Network Engineering Videos

🏰 Load Balancing and Proxies Videos

🐘 Postgres Videos

🚢Docker

🧮 Programming Pattern Videos

🛡 Web Security Videos

🦠 HTTP Videos

🐍 Python Videos

🔆 Javascript Videos

Support me on PayPal

Become a Patreon

Stay Awesome,
Hussein
Рекомендации по теме
Комментарии
Автор

You always makes development more interesting!! The way you explain is awesome!!

pavanvhsn
Автор

Wow 2 videos in every day... Thats dedication !!! 👍

sharukhrahman
Автор

We had a huge discussion over this in our company but eventually we ended up with a multi-tenant architecture. So far so great though!
Multitenancy when combined with load balancers, Reverse proxies and especialy Container Orchestration Engine such as Kubernetes, things go pretty good in saving up some of your Cloud Costs/Resources and reduces the container's management complexity exponentially. Imagine having 10000 customers one day and then fixing a bug for all of them (you'll probably restart them all).
The only difficulty that took sometime for us with this architecture was making our services stateless -- which we have somehow achieved using checkpointing, logging and some minor tweaks to the services.

ahsannasir
Автор

I developed my first multi-tenant application in 2014. Yes, at that time, I didn't know the terminology.

tonylangworthy
Автор

Really great video!

I know you talked a lot about stateful vs stateless servers and pros and cons of each, but maybe have a video about your personal opinion about when to go stateful and when to go stateless, and when does being stateless is not a good idea!

MohamedEldoheiri
Автор

Great video Hussein! The company that I work for uses Multitenancy architecture, so this video is very helpful to me :)

LawZist
Автор

Great explanation. Really enjoy your video. Your way of explaining is awesome.

NikitaKanoria
Автор

Hey Hussein! Love the content on your channel. However, you might wanna invest in a camera stabiliser. Will increase the video quality dramatically.

adityabharti
Автор

Any other videos about this (multi-tenant architecture)? Would be great to see it in practice.

Cdswjp
Автор

Multitenancy is the key to any cloud deployment. Separate instances would not scale and would be costly to implement. The key is to make the implementation robust in terms of separating everything using qualifiers and namespaces. e.g. every database schema has the tenant prefix, even every single table may have the tenant identifier column, every single functionality first uses and needs a tenant qualifier etc.

inquisitive
Автор

Is web server an example of multi-tenancy? Becuase multiple clients (tenants) connect to it. No?

atexnik
Автор

Good video. I see the benefits for database (or schema) per customer, but it is so much more work. If I had a DBA I'd do it every time. When it's a small team though...

LewisCampbellTech
Автор

You should trademark the greeting line ‘What is going on guys!’ 🙂

ssksarraju
Автор

I think multitenancy is pretty good. Like you said, we need to take care of the security if we are sharing.

Sharing db and stuff is pretty common multitenancy stuff? Maybe, it's depend?

For me, I am working on multitenancy application which share only specific features. Quite interesting...

YGNCode
Автор

can you talk about Multi-tenant database level ? Single-tenancy or Multi-tenancy

aburad
Автор

Hussein, how often do you see the system design changing as a whole in your work?Suppose the ROI on one workflow per tenant model start taking a hit, what sort of way would you be dealing it with?I would like to have your take on this.I know I sometimes I start with a model and it seems to be failing but can't go back and thus have to keep improvising

sariksiddiqui
Автор

wait.... do single-tenant applications even exist?? are single-tenant system basically only softwares that you need to install on you device?

moumous
Автор

Damn these fancy words... Been working for a SaaS product without knowing it was based on a multi tenant architecture...!

JenilCalcuttawala
Автор

Can you please explain a single tenant in more details.

isaacfrost
Автор

Each customer requires different customisation to the application, we can ofcourse provide shared db and compute, but, how do i have different application versions for different customers.? Eg : one customer wants normal calculator, one customer wants, scientific calculator, one more customer wants a music player while performing calculations, and one more customer wants voice based calculator