Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XS✔ ◾ Multi tenancy solution #9485

Merged
merged 5 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ index:
- use-prefixes-to-improve-code-review-communication
- use-mass-transit
- software-architecture-decision-tree
- multi-tenancy-models
---

For any project that is critical to the business, it’s important to do ‘Modern Architecture Reviews’. Being an architect is fun, you get to design the system, do ongoing code reviews, and play the bad ass. It is even more fun when using modern cool tools.
Expand Down
55 changes: 55 additions & 0 deletions rules/multi-tenancy-models/rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
seoDescription: Learn how to effectively choose a multi-tenancy model that suits your system's needs. This rule covers various models, their advantages, and considerations for optimal implementation.
type: rule
title: Do you know how to choose the right multi-tenancy model?
uri: multi-tenancy-models
authors:
- title: Rick Su
url: https://www.ssw.com.au/people/rick-su
created: 2024-10-25T17:00:00.000Z
guid: 89CAA458-C142-47D2-A3B0-4F39CF18262C
---

Learn how to effectively choose a multi-tenancy model that suits your system's needs. This rule covers various models, their advantages, and considerations for optimal implementation.

<!--endintro-->

## Popular models

* Single application, single database
* Single application, multiple databases
* Hybrid models

Other models: [Tenancy models for a multitenant solution](https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/considerations/tenancy-models)

## Decision Factors

When assessing various multitenancy models, it's useful to consider:

### 1. Costs

Analyze the total cost of ownership for each model, including initial setup costs, ongoing maintenance, and potential scaling expenses. Single database models tend to be more cost-effective initially but may incur higher operational costs as usage grows.

### 2. Scalability requirements

Consider how easily each model can scale with your user base. If you anticipate rapid growth, a model that allows for seamless scaling without significant re-architecture (like single application with multiple databases) may be preferable.

### 3. Data isolation and security needs

Evaluate the level of data isolation required by your tenants. Industries with strict compliance regulations may necessitate models that provide stronger data separation (like multiple applications with multiple databases) to ensure tenant data privacy.

### 4. Customization requirements

Determine if tenants need customized features or configurations within the application. Some models allow for greater customization at the database level but may complicate maintenance and upgrades.

### 5. Performance expectations

Assess how performance will be impacted by tenant activities in each model. Models that share resources can lead to performance degradation if not managed properly; hence understanding your workload patterns is essential.

### 6. Management complexity

Consider the complexity involved in managing each model over time. Simpler models may reduce operational overhead but could limit flexibility as business needs evolve.

---

By carefully weighing these factors against your organizational goals and tenant requirements, you can make a more informed decision regarding which multi-tenancy model best fits your system architecture.
Loading