Multi-tenant-oriented data acquisition method, device and system
A technology for data acquisition and multi-tenancy, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of difficult cross-tenant statistical data, high server acquisition and maintenance costs, low isolation and security, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 1 It shows a multi-tenant-oriented data acquisition method provided by the first embodiment of the present invention.
[0032] In step S101, a tenant data access request is received, and the tenant data access request carries a tenant identifier.
[0033] In the embodiment of the present invention, when a request for accessing tenant data is received, the identifier of the tenant that needs to be accessed is obtained at the same time. Among them, the tenant identification can be a tenant ID, a tenant name, and so on.
[0034] In step S102, the data source corresponding to the tenant identifier is obtained according to the tenant identifier and the pre-stored data source configuration file.
[0035] In the embodiment of the present invention, this step is mainly implemented through the following two steps:
[0036] First, the pre-stored data source configuration file is parsed to obtain the mapping relationship between the tenant identifier and the data source, and the map...
Embodiment 2
[0044] In the embodiment of the present invention, according to actual needs, a data source can be configured through one or more data source configuration files, and each data source configuration file represents a data source. Therefore, according to different application scenarios, figure 1 The specific implementation of step S102 in is different. Three different practical application scenarios are described below, but they are not limited to these three applications.
[0045] 1. There is only one database, and all tenants share databases and tables.
[0046] In the embodiment of the present invention, since all tenants share the database and all the tables in the database, no matter which table in the database is accessed, the same path is used and only one unique data source is needed. Correspondingly, there is only one data source configuration file, which includes all tenant identities. Therefore, regardless of the received request to access any tenant data, only the data ...
Embodiment 3
[0055] figure 2 It shows a multi-tenant-oriented data acquisition method provided by the third embodiment of the present invention.
[0056] In step S201, a tenant data access request is received, and the tenant data access request carries a tenant identifier.
[0057] In step S202, it is determined whether there is a mapping relationship between the tenant identifier and the data source in the cache, if yes, step S204 is executed, otherwise, step S203 is executed.
[0058] In the embodiment of the present invention, since the data source configuration file needs to be parsed to obtain the mapping relationship between the tenant and the data source, it would be too cumbersome if the data source configuration file needs to be parsed every time the data of the same tenant needs to be accessed. , You only need to cache the mapping relationship between the tenant and the data source after parsing all the data source configuration files when accessing the data of a certain tenant for the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com