When to use multi-tenancy
Multi-tenancy is a great pattern to create SaaS solutions, and ABP Framework provides a complete infrastructure to create multi-tenant applications. However, not all applications should be SaaS, and not all SaaS applications should be multi-tenant. ABP's multi-tenancy system has some assumptions, and we've made some design decisions while building it. In this section, I want to talk about these assumptions and decisions to help you to decide whether ABP's multi-tenancy system fits into your solution.
ABP multi-tenant applications should be developed by assuming that each tenant will have a separated and isolated production environment. If you make this assumption, then you will have some restrictions. Here are a few example restrictions:
- You should not perform database queries from multiple tenants at once. If you do this, you assume that you will have a shared tenant database because it is technically not straightforward to query...