Multitenancy in NestJS + Mongoose
4.6 هزار بار بازدید -
6 ماه پیش
-
Learn how to handle multitenancy
Learn how to handle multitenancy in NestJS with Mongoose in this easy-to-follow tutorial.
Where we learn how to connect to the correct dedicated tenant database based on the tenant making the request.
Github Repo: https://github.com/charbelh3/NestJs-M...
Buy me a coffee at : buymeacoffee.com/computerix
Timestamps:
---------------------
0:00- Single-Tenant vs Multi-Tenant
2:13- Our Multi-Tenant Application
4:45- Explaining the boilerplate code
7:11- Which database is NestJs using?
10:18- Identify the correct Tenant
11:33- Creating the Tenants Middleware
14:15- Accessing the correct database (Approach 1)
19:05- The issue with this approach
19:53- Creating the TENANT_CONNECTION Provider
26:25- Understanding the Request Scope
31:00- Creating the Product Model Provider
32:45 - Accessing the correct database (Approach 2)
38:45- Summary
Where we learn how to connect to the correct dedicated tenant database based on the tenant making the request.
Github Repo: https://github.com/charbelh3/NestJs-M...
Buy me a coffee at : buymeacoffee.com/computerix
Timestamps:
---------------------
0:00- Single-Tenant vs Multi-Tenant
2:13- Our Multi-Tenant Application
4:45- Explaining the boilerplate code
7:11- Which database is NestJs using?
10:18- Identify the correct Tenant
11:33- Creating the Tenants Middleware
14:15- Accessing the correct database (Approach 1)
19:05- The issue with this approach
19:53- Creating the TENANT_CONNECTION Provider
26:25- Understanding the Request Scope
31:00- Creating the Product Model Provider
32:45 - Accessing the correct database (Approach 2)
38:45- Summary
6 ماه پیش
در تاریخ 1402/10/12 منتشر شده
است.
4,634
بـار بازدید شده