Introduction to near-product MVC Architecture-Multi-tenant mode, mvc tenant

Source: Internet
Author: User

Introduction to near-product MVC Architecture-Multi-tenant mode, mvc tenant

The data section of an application supports multiple tenants. A tenant can be either a presentation area (PersentArea) or another application. The simplest way to design databases is to add TenantTypeId to the application data table (store the corresponding ApplicationId)

Multi-tenant technology is used to isolate application context isolation and data isolation between different tenants, so that applications between different tenants do not interfere with each other, at the same time, data confidentiality is strong enough.

When a program calls data, the data is filtered by the corresponding data table based on the tenant ID of the service to obtain the data.
For example, data of classification, comment, and tag will be filtered by tenant ID.
All these data have their own classification tables, comment tables, and label tables. There are more than one location for classification, comment, or tag.
For example, for photo albums, comments, and comments, how can we distinguish the three comments from a table?
That's the tenant ID.

A tenant ID is an identifier, and there are many services in the company framework. When an application calls data mining under a service, it needs to be obtained from the Service database based on the Application tenant ID.

 

Instance product based on asp.net mvc 5.0 framework, source code: http://www.jinhusns.com/Products/Download

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.