Before starting multi-tenancy, we need to know what a tenant is, right? So, what is even a tenant? By definition, a tenant is something that a group of users or a group of people visiting your app, using your app, who share the same access, or a similar access. Just to give you a couple of examples, you can see that, for example, on your website, let's say if someone is visiting, normal users will have different access, the e-commerce site will be something else, the blog will be hosted on a different portal, let's say, there are going to be different internal portals, company portals and so on. Just to give you a real use case scenario, let's say there's a test platform, or something like that, where students, they come in and they give tests, then there is going to be one tenant, which is going to be students, there's going to be another tenant, which is going to be teachers, who are making the tests or building up the tests, watching, seeing the analytics and so on. Then there's also going to be another tenant over there, let's say admins, who are going to be taking a look at everything, adding teachers, giving them permissions and so on. Nowadays, it's pretty common to have these sort of applications, which have everything in one. But let's also see a bit more detail of how it looks.
Yeah, let's talk about what is multi-tenancy now. And yeah, I mean, to know multi-tenancy, we also need to know the architecture of how multi-tenant architecture looks, as well as the single-tenant architecture. So, let's take a look at the single-tenant first. This is how the architecture looks like. So, this used to be very common a couple of years ago, and still is. There is no harm in this, but we will discuss the benefits of multi-tenancy and everything. But this is how a single-tenant architecture looks like. So, you have a tenant, maybe a student, for example, the thing that we discussed before for a test platform. They have a separate application for them and a separate database for them. Then, teachers might have separate applications for them, separate database for them, and so on. So, that's how a single-tenant architecture looks like. But when we go to the multi-tenant architecture, they all share the same app, but they have different access, they have different roles over there, they have different permissions over there, and so on. So, this is how the architecture looks like in that case. So, no matter whoever is visiting the website, visiting your app, it is going to be the same app, and the database can be shared, cannot be shared, and so on. That depends on the architecture, but they all can share the same app with different sets of permissions, and so on. And yeah, we can talk about a bunch of examples in this case. I'm sure that everyone might be using something where they have some sort of access, and their managers or their admins are going to be having different access, and so on. The similar example that we discussed before. So, yeah, that's the basic example, and that's how the architecture looks like. Every tenant, they can visit the same app, and then the app is going to handle everything for them. The app is going to show a different layout, the app is going to show different color themes, the app can be completely different as well.
Let's talk about the benefits of having a multi-tenant architecture a bit. So, all of these listed ones over here are the benefits, and that account can go on. There are many more benefits as well.
Comments