Movatterモバイル変換


[0]ホーム

URL:


CN118784712A - An enterprise digital service platform with multi-tenant and microservice architecture - Google Patents

An enterprise digital service platform with multi-tenant and microservice architecture
Download PDF

Info

Publication number
CN118784712A
CN118784712ACN202411252390.1ACN202411252390ACN118784712ACN 118784712 ACN118784712 ACN 118784712ACN 202411252390 ACN202411252390 ACN 202411252390ACN 118784712 ACN118784712 ACN 118784712A
Authority
CN
China
Prior art keywords
service
tenant
data
micro
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411252390.1A
Other languages
Chinese (zh)
Inventor
冯继威
高伟明
周振辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Networks Technology Co ltd
Original Assignee
Networks Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Networks Technology Co ltdfiledCriticalNetworks Technology Co ltd
Priority to CN202411252390.1ApriorityCriticalpatent/CN118784712A/en
Publication of CN118784712ApublicationCriticalpatent/CN118784712A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供的一种多租户及微服务架构的企业数字化服务平台,该平台既可以通过多租户架构在同一平台上为不同租户提供个性化的服务,同时实现资源的有效隔离和共享,又可以通过多租户架构和资源的灵活分配,避免资源浪费,提高硬件资源的利用率,降低企业运营成本,还可以对多租户数据进行有效隔离和保护,防止数据泄露和非法访问;而本申请的微服务架构则可以使系统具备更高的灵活性和可扩展性,从而适应业务的动态变化,各个微服务可以独立开发,进而降低了开发的复杂度,缩短了新功能的上线周期,从而加快企业数字化服务的创新速度;并且,各个微服务之间的动态集成和通信,可以有效提高系统的集成效率和可靠性。

The present application provides an enterprise digital service platform with a multi-tenant and microservice architecture. The platform can not only provide personalized services to different tenants on the same platform through a multi-tenant architecture, while realizing effective isolation and sharing of resources, but also avoid resource waste, improve the utilization rate of hardware resources, and reduce enterprise operating costs through a multi-tenant architecture and flexible allocation of resources. It can also effectively isolate and protect multi-tenant data to prevent data leakage and illegal access. The microservice architecture of the present application can make the system more flexible and scalable, so as to adapt to the dynamic changes of the business. Each microservice can be developed independently, thereby reducing the complexity of development and shortening the launch cycle of new functions, thereby accelerating the innovation speed of enterprise digital services. In addition, the dynamic integration and communication between each microservice can effectively improve the integration efficiency and reliability of the system.

Description

Translated fromChinese
一种多租户及微服务架构的企业数字化服务平台An enterprise digital service platform with multi-tenant and microservice architecture

技术领域Technical Field

本申请涉及计算机技术领域,尤其涉及一种多租户及微服务架构的企业数字化服务平台。The present application relates to the field of computer technology, and in particular to an enterprise digital service platform with a multi-tenant and microservice architecture.

背景技术Background Art

随着企业数字化转型的加速,对高效、灵活、可扩展的数字化服务平台的需求日益增长。传统的企业服务平台通常存在以下缺点:As enterprises accelerate their digital transformation, the demand for efficient, flexible, and scalable digital service platforms is growing. Traditional enterprise service platforms usually have the following shortcomings:

1. 单体架构导致系统复杂度高,难以维护和扩展,且各个功能模块紧密耦合,一处修改可能影响整个系统的稳定性;1. Monolithic architecture leads to high system complexity, making it difficult to maintain and expand. In addition, each functional module is tightly coupled, and a modification in one place may affect the stability of the entire system.

2. 无法满足多租户的个性化需求,不同租户的业务流程和功能要求往往存在差异,但传统平台难以针对性地提供定制化服务;2. Unable to meet the personalized needs of multiple tenants. The business processes and functional requirements of different tenants often differ, but traditional platforms are difficult to provide targeted customized services;

3. 资源分配不均,资源利用率低下,无法根据租户的实际使用情况灵活分配资源,造成资源浪费或不足;3. Uneven resource allocation and low resource utilization. Resources cannot be flexibly allocated according to the actual usage of tenants, resulting in waste or shortage of resources;

4. 系统的可靠性和稳定性较差,一旦某个部分出现故障,可能导致整个系统瘫痪,影响所有租户的正常使用;4. The reliability and stability of the system are poor. Once a part fails, the entire system may be paralyzed, affecting the normal use of all tenants;

5. 开发效率低,新功能上线周期长,由于系统架构的限制,开发新功能时需要协调多个模块,导致开发进度缓慢。5. Low development efficiency and long launch cycle for new functions. Due to the limitations of the system architecture, multiple modules need to be coordinated when developing new functions, resulting in slow development progress.

由此可见,传统的企业服务平台采用的单体架构,难以满足多租户的个性化需求,且在系统扩展和维护方面存在诸多困难。It can be seen that the monolithic architecture adopted by traditional enterprise service platforms is difficult to meet the personalized needs of multiple tenants, and there are many difficulties in system expansion and maintenance.

发明内容Summary of the invention

本申请的目的旨在至少能解决上述的技术缺陷之一,特别是现有技术中传统的企业服务平台采用的单体架构,难以满足多租户的个性化需求,且在系统扩展和维护方面存在诸多困难的技术缺陷。The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the monolithic architecture adopted by the traditional enterprise service platform in the prior art, which is difficult to meet the personalized needs of multiple tenants and has many difficulties in system expansion and maintenance.

本申请提供了一种多租户及微服务架构的企业数字化服务平台,所述平台包括:The present application provides an enterprise digital service platform with a multi-tenant and microservice architecture, the platform comprising:

多租户管理模块,被配置为根据各个租户的注册信息、业务需求以及预定的资源级别,为每个租户分配独立的资源空间,并根据各个租户的注册信息进行认证和授权;The multi-tenant management module is configured to allocate independent resource space to each tenant according to the registration information, business requirements and predetermined resource level of each tenant, and perform authentication and authorization according to the registration information of each tenant;

微服务架构模块,被配置为将本平台的系统功能拆分成多个独立的微服务,并对每个微服务独立开发、部署和扩展;The microservice architecture module is configured to split the system functions of the platform into multiple independent microservices, and independently develop, deploy and scale each microservice;

服务注册与发现模块,被配置为通过服务注册中心实现微服务的注册和调用;The service registration and discovery module is configured to register and call microservices through the service registration center;

数据存储与管理模块,被配置为采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理,并对多租户数据进行备份、恢复和迁移。The data storage and management module is configured to use distributed database and data warehouse technology to achieve storage and management of multi-tenant data, and to back up, restore and migrate multi-tenant data.

可选地,所述平台还包括:Optionally, the platform further includes:

监控与运维模块,被配置为对本平台的运行状态、性能指标和异常情况进行实时监控和预警。The monitoring and operation and maintenance module is configured to conduct real-time monitoring and early warning of the operating status, performance indicators and abnormal situations of this platform.

可选地,所述多租户管理模块为每个租户分配独立的资源空间的过程,包括:Optionally, the process of the multi-tenant management module allocating an independent resource space to each tenant includes:

所述多租户管理模块根据各个租户的注册信息、业务需求、预定的资源级别,以及预先配置的资源分配策略和规则,利用虚拟化技术为每个租户分配独立的资源空间。The multi-tenant management module allocates an independent resource space to each tenant using virtualization technology according to the registration information, business requirements, predetermined resource levels, and pre-configured resource allocation strategies and rules of each tenant.

可选地,所述多租户管理模块还用于:Optionally, the multi-tenant management module is further used to:

通过访问控制机制确保每个租户只能访问和使用为其分配的资源空间。The access control mechanism ensures that each tenant can only access and use the resource space allocated to it.

可选地,所述资源空间的大小依据租户的规模大小、业务类型、付费等级以及预计的业务增长趋势进行动态调整。Optionally, the size of the resource space is dynamically adjusted according to the size of the tenant, the type of business, the payment level, and the expected business growth trend.

可选地,所述服务注册与发现模块包括服务注册子模块和服务调用子模块;Optionally, the service registration and discovery module includes a service registration submodule and a service calling submodule;

所述服务注册子模块用于通过服务注册中心接收各个微服务注册的服务信息;The service registration submodule is used to receive service information registered by each microservice through the service registration center;

所述服务调用子模块用于通过所述服务注册中心接收并处理各个微服务发送的服务调用请求。The service calling submodule is used to receive and process service calling requests sent by each microservice through the service registration center.

可选地,所述服务调用子模块通过所述服务注册中心处理各个微服务发送的服务调用请求的过程,包括:Optionally, the process in which the service calling submodule processes the service calling requests sent by each microservice through the service registration center includes:

所述服务调用子模块通过所述服务注册中心根据各个微服务发送的服务调用请求以及各个微服务的服务信息,查找与各个服务调用请求匹配的其他微服务的地址和接口信息,并将其他微服务的地址和接口信息返回至请求调用的微服务。The service calling submodule searches for the addresses and interface information of other microservices that match each service calling request according to the service calling request sent by each microservice and the service information of each microservice through the service registration center, and returns the addresses and interface information of other microservices to the microservice requesting the call.

可选地,所述服务调用子模块还用于:Optionally, the service calling submodule is further used for:

在未查找到与任意一个服务调用请求匹配的其他微服务时,根据查找结果使用等待和重试机制或临时替代机制重新寻找其他微服务,或者,使用服务扩展开发机制反馈不存在所需服务后评估扩展开发详情。When no other microservices matching any service call request are found, a wait and retry mechanism or a temporary replacement mechanism is used to search for other microservices based on the search results, or the service extension development mechanism is used to feedback that the required service does not exist and then evaluate the extension development details.

可选地,所述数据存储与管理模块采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理的过程,包括:Optionally, the data storage and management module uses distributed database and data warehouse technology to implement the process of storing and managing multi-tenant data, including:

所述数据存储与管理模块利用分布式数据库存储多租户数据,并通过数据仓库技术从所述分布式数据库中抽取多租户数据进行清洗、转换和加载,以及将加载后的数据整合到数据仓库中。The data storage and management module uses a distributed database to store multi-tenant data, and extracts multi-tenant data from the distributed database through data warehouse technology for cleaning, conversion and loading, and integrates the loaded data into the data warehouse.

可选地,所述数据存储与管理模块对多租户数据进行备份、恢复的过程,包括:Optionally, the process of backing up and restoring the multi-tenant data by the data storage and management module includes:

所述数据存储与管理模块对多租户数据进行定期全量备份,并在每两次全量备份的间隔期间对多租户数据进行增量备份;The data storage and management module performs regular full backup of the multi-tenant data, and performs incremental backup of the multi-tenant data during the interval between two full backups;

所述数据存储与管理模块在数据丢失或损坏时,查找最新的全量备份数据,并结合所述全量备份数据之后备份的增量备份数据以及日志数据,将数据恢复到故障发生前的状态。When data is lost or damaged, the data storage and management module searches for the latest full backup data, and restores the data to a state before the failure occurs in combination with the incremental backup data and log data backed up after the full backup data.

从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

本申请提供的一种多租户及微服务架构的企业数字化服务平台,该平台包括多租户管理模块、微服务架构模块、服务注册与发现模块以及数据存储和管理模块;其中,多租户管理模块可以根据各个租户的注册信息、业务需求以及预定的资源级别,为每个租户分配独立的资源空间,并根据各个租户的注册信息进行认证和授权,这样既可以通过多租户架构在同一平台上为不同租户提供个性化的服务,同时实现资源的有效隔离和共享,又可以通过多租户架构和资源的灵活分配,避免资源浪费,提高硬件资源的利用率,降低企业运营成本,还可以对多租户数据进行有效隔离和保护,防止数据泄露和非法访问;而本申请的微服务架构模块则可以将本平台的系统功能拆分成多个独立的微服务,并对每个微服务独立开发、部署和扩展,这样既可以通过微服务架构使系统具备更高的灵活性和可扩展性,并且能够快速调整和优化系统功能,适应业务的动态变化,另外,本申请的各个微服务可以独立开发,进而降低了开发的复杂度,缩短了新功能的上线周期,从而加快企业数字化服务的创新速度;本申请的服务注册与发现模块可以通过服务注册中心实现微服务的注册和调用,进而实现微服务之间的动态集成和通信,提高系统的集成效率和可靠性;而数据存储与管理模块则被配置为采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理,并对多租户数据进行备份、恢复和迁移,进而在保障多租户数据的安全性和完整性的同时,为租户提供高效的数据访问和处理能力。The present application provides a multi-tenant and microservice-architecture enterprise digital service platform, which includes a multi-tenant management module, a microservice architecture module, a service registration and discovery module, and a data storage and management module; wherein the multi-tenant management module can allocate an independent resource space to each tenant according to the registration information, business requirements, and predetermined resource levels of each tenant, and perform authentication and authorization according to the registration information of each tenant, so that personalized services can be provided to different tenants on the same platform through the multi-tenant architecture, while achieving effective isolation and sharing of resources, and resource waste can be avoided through the multi-tenant architecture and flexible allocation of resources, the utilization rate of hardware resources can be improved, and the operating costs of the enterprise can be reduced, and multi-tenant data can be effectively isolated and protected to prevent data leakage and illegal access; and the microservice architecture module of the present application can split the system functions of the platform into multiple independent microservices, Each microservice is developed, deployed and expanded independently, so that the system can have higher flexibility and scalability through the microservice architecture, and can quickly adjust and optimize system functions to adapt to dynamic changes in the business. In addition, the various microservices of this application can be developed independently, thereby reducing the complexity of development and shortening the launch cycle of new functions, thereby accelerating the innovation speed of enterprise digital services; the service registration and discovery module of this application can realize the registration and call of microservices through the service registration center, thereby realizing dynamic integration and communication between microservices, and improving the integration efficiency and reliability of the system; the data storage and management module is configured to adopt distributed database and data warehouse technology to realize the storage and management of multi-tenant data, and back up, restore and migrate multi-tenant data, thereby providing tenants with efficient data access and processing capabilities while ensuring the security and integrity of multi-tenant data.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

图1为本申请实施例提供的一种多租户及微服务架构的企业数字化服务平台的系统架构图;FIG1 is a system architecture diagram of an enterprise digital service platform with a multi-tenant and microservice architecture provided in an embodiment of the present application;

图2为本申请实施例提供的包含监控与运维模块的企业数字化服务平台的系统架构图;FIG2 is a system architecture diagram of an enterprise digital service platform including a monitoring and operation and maintenance module provided in an embodiment of the present application;

图3为本申请实施例提供的企业数字化服务平台技术架构图。FIG3 is a technical architecture diagram of the enterprise digital service platform provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

在一个实施例中,如图1所示,图1为本申请实施例提供的一种多租户及微服务架构的企业数字化服务平台的系统架构图;本申请提供了一种多租户及微服务架构的企业数字化服务平台,所述平台可以包括:In one embodiment, as shown in FIG. 1 , FIG. 1 is a system architecture diagram of an enterprise digital service platform with a multi-tenant and microservice architecture provided in an embodiment of the present application; the present application provides an enterprise digital service platform with a multi-tenant and microservice architecture, and the platform may include:

多租户管理模块,被配置为根据各个租户的注册信息、业务需求以及预定的资源级别,为每个租户分配独立的资源空间,并根据各个租户的注册信息进行认证和授权。The multi-tenant management module is configured to allocate independent resource space to each tenant according to the registration information, business requirements and predetermined resource level of each tenant, and perform authentication and authorization according to the registration information of each tenant.

微服务架构模块,被配置为将本平台的系统功能拆分成多个独立的微服务,并对每个微服务独立开发、部署和扩展。The microservice architecture module is configured to split the system functions of this platform into multiple independent microservices, and independently develop, deploy and expand each microservice.

服务注册与发现模块,被配置为通过服务注册中心实现微服务的注册和调用。The service registration and discovery module is configured to implement the registration and invocation of microservices through the service registration center.

数据存储与管理模块,被配置为采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理,并对多租户数据进行备份、恢复和迁移。The data storage and management module is configured to use distributed database and data warehouse technology to achieve storage and management of multi-tenant data, and to back up, restore and migrate multi-tenant data.

本实施例中,为了解决现有技术中传统的企业服务平台采用的单体架构,难以满足多租户的个性化需求,本申请提出了一种企业数字化服务平台,该平台采用多租户架构和微服务架构,多租户架构可以在同一平台上为不同租户提供个性化的服务,同时实现资源的有效隔离和共享,提高资源利用率;而微服务架构则可以使平台具备更高的灵活性和可扩展性,进而能够快速响应业务需求的变化。In this embodiment, in order to solve the problem that the monolithic architecture adopted by the traditional enterprise service platform in the prior art is difficult to meet the personalized needs of multiple tenants, the present application proposes an enterprise digital service platform, which adopts a multi-tenant architecture and a microservice architecture. The multi-tenant architecture can provide personalized services to different tenants on the same platform, while realizing effective isolation and sharing of resources and improving resource utilization; and the microservice architecture can make the platform more flexible and scalable, and thus be able to quickly respond to changes in business needs.

具体而言,本申请在企业数字化服务平台中设置了多租户管理模块,该模块可以根据各个租户的注册信息、业务需求以及预定的资源级别,为每个租户分配独立的资源空间,这样各个租户可以根据自身需求来访问特定的资源空间,实现多租户数据的有效隔离和保护,从而防止数据泄露和非法访问。Specifically, the present application sets up a multi-tenant management module in the enterprise digital service platform, which can allocate independent resource space to each tenant based on the registration information, business needs and predetermined resource levels of each tenant, so that each tenant can access a specific resource space according to its own needs, thereby achieving effective isolation and protection of multi-tenant data, thereby preventing data leakage and illegal access.

其中,本平台中的租户是指使用企业数字化服务平台的独立组织或实体。租户可以是不同规模的企业、机构或团体,它们在同一平台上获取服务,但各自的数据和资源相互隔离,拥有独立的配置和权限。另外,每一租户可以通过注册和认证流程进入平台,并根据其需求和付费情况获得相应的服务和资源。Among them, tenants in this platform refer to independent organizations or entities that use the enterprise digital service platform. Tenants can be enterprises, institutions or groups of different sizes. They obtain services on the same platform, but their data and resources are isolated from each other and have independent configurations and permissions. In addition, each tenant can enter the platform through the registration and authentication process and obtain corresponding services and resources according to their needs and payment conditions.

当多租户管理模块接收到租户通过租户注册页面发送的注册信息后,还可以对该注册信息进行认证,并在认证通过后对该租户进行授权,以便该租户可以根据自身需求使用授权范围内的服务和资源。并且,本申请对租户的注册信息进行认证,既可以通过认证筛选出潜在的风险用户,从而防止恶意注册、欺诈行为以及非法活动,保护平台和其他合法用户的利益,又可以通过准确的注册信息为用户提供个性化、精准的服务。另外,这里的认证过程包括但不限于手机号认证、邮箱认证、身份认证以及人脸识别认证等,在此不做限制。当然,本申请还可以根据租户的认证结果为租户授予不同的权限,若租户想要更多的权限,则可以提供相应的认证信息再次进行认证,具体可视实际情况进行设置,在此不做赘述。When the multi-tenant management module receives the registration information sent by the tenant through the tenant registration page, it can also authenticate the registration information, and authorize the tenant after the authentication is passed, so that the tenant can use the services and resources within the authorization scope according to their own needs. In addition, this application authenticates the registration information of the tenant, which can not only screen out potential risk users through authentication, thereby preventing malicious registration, fraud and illegal activities, protecting the interests of the platform and other legitimate users, but also provide users with personalized and accurate services through accurate registration information. In addition, the authentication process here includes but is not limited to mobile phone number authentication, email authentication, identity authentication and face recognition authentication, etc., which are not limited here. Of course, this application can also grant different permissions to tenants based on the authentication results of the tenant. If the tenant wants more permissions, he can provide the corresponding authentication information for authentication again. The specific settings can be made according to the actual situation, which will not be repeated here.

进一步地,本申请的微服务架构可以通过微服务架构模块和服务注册与发现模块进行实现。举例来说,本申请的微服务架构模块可以将本平台的系统功能拆分成多个独立的微服务,并对每个微服务独立开发、部署和扩展。这样做可以提高系统的灵活性和可扩展性,每个微服务都可以独立进行开发、部署和扩展,无需担心对整个系统造成过大的影响。例如,如果平台的用户认证功能需求突然增加,可以单独为认证微服务增加资源,而不影响其他如内容推荐微服务的运行。并且,该微服务架构还能够增强系统的容错性,当某个微服务出现故障时,只会影响其自身的功能,其他微服务仍能正常工作,从而降低了系统整体故障的风险。比如,订单处理微服务出现问题,不会导致商品搜索微服务停止服务。再者,该微服务架构还有利于团队的分工协作,不同的团队可以专注于不同的微服务开发,进而提高了开发效率和质量。假设一个团队负责支付微服务,另一个团队负责消息通知微服务,彼此之间的工作相对独立,这样可以在一定程度上减少协调和冲突。Further, the microservice architecture of the present application can be implemented through the microservice architecture module and the service registration and discovery module. For example, the microservice architecture module of the present application can split the system functions of the platform into multiple independent microservices, and independently develop, deploy and expand each microservice. Doing so can improve the flexibility and scalability of the system, and each microservice can be independently developed, deployed and expanded without worrying about causing too much impact on the entire system. For example, if the user authentication function demand of the platform suddenly increases, resources can be added to the authentication microservice alone without affecting the operation of other microservices such as content recommendation. In addition, the microservice architecture can also enhance the fault tolerance of the system. When a microservice fails, it will only affect its own functions, and other microservices can still work normally, thereby reducing the risk of overall system failure. For example, if there is a problem with the order processing microservice, it will not cause the product search microservice to stop service. Furthermore, the microservice architecture is also conducive to the division of labor and cooperation of the team. Different teams can focus on the development of different microservices, thereby improving development efficiency and quality. Assume that one team is responsible for the payment microservice and the other team is responsible for the message notification microservice. The work between them is relatively independent, which can reduce coordination and conflict to a certain extent.

具体来说,在对本平台的系统功能进行拆分时,需要明确各个微服务的职责边界。例如,本申请可以将用户管理拆分为用户注册微服务、用户信息更新微服务等。同时,拆分出的多个微服务之间还要建立良好的通信机制,以便微服务之间能够有效地进行数据交互。因此,本申请还设置了服务注册与发现模块,该模块被配置为通过服务注册中心实现微服务的注册和调用。这样某一微服务在启动时,便可以向服务注册中心注册自己的服务信息,其他微服务也通过服务注册中心发现所需的服务,并进行调用。Specifically, when splitting the system functions of this platform, it is necessary to clarify the responsibility boundaries of each microservice. For example, this application can split user management into user registration microservices, user information update microservices, etc. At the same time, a good communication mechanism must be established between the multiple microservices that have been split so that data can be effectively exchanged between microservices. Therefore, this application also sets up a service registration and discovery module, which is configured to implement the registration and call of microservices through a service registration center. In this way, when a microservice is started, it can register its own service information with the service registration center, and other microservices can also discover the required services through the service registration center and call them.

更进一步地,为了适应本申请的多租户架构和微服务架构,本申请还设置了数据存储与管理模块,该模块被配置为采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理,并对多租户数据进行备份、恢复和迁移。这样既可以通过分布式数据库来将每个租户的数据进行独立存储,又可以通过数据仓库技术来对多租户数据进行管理和分析。并且,本申请还可以通过数据备份机制、数据恢复机制以及数据迁移机制等来实现多租户数据的备份、恢复和迁移,从而保障本平台的数据安全、系统稳定和业务连续性。Furthermore, in order to adapt to the multi-tenant architecture and microservice architecture of the present application, the present application also provides a data storage and management module, which is configured to use distributed database and data warehouse technology to realize the storage and management of multi-tenant data, and to back up, restore and migrate multi-tenant data. In this way, the data of each tenant can be stored independently through a distributed database, and multi-tenant data can be managed and analyzed through data warehouse technology. In addition, the present application can also realize the backup, recovery and migration of multi-tenant data through data backup mechanism, data recovery mechanism and data migration mechanism, so as to ensure the data security, system stability and business continuity of the platform.

上述实施例中,该平台包括多租户管理模块、微服务架构模块、服务注册与发现模块以及数据存储和管理模块;其中,多租户管理模块可以根据各个租户的注册信息、业务需求以及预定的资源级别,为每个租户分配独立的资源空间,并根据各个租户的注册信息进行认证和授权,这样既可以通过多租户架构在同一平台上为不同租户提供个性化的服务,同时实现资源的有效隔离和共享,又可以通过多租户架构和资源的灵活分配,避免资源浪费,提高硬件资源的利用率,降低企业运营成本,还可以对多租户数据进行有效隔离和保护,防止数据泄露和非法访问;而本申请的微服务架构模块则可以将本平台的系统功能拆分成多个独立的微服务,并对每个微服务独立开发、部署和扩展,这样既可以通过微服务架构使系统具备更高的灵活性和可扩展性,并且能够快速调整和优化系统功能,适应业务的动态变化,另外,本申请的各个微服务可以独立开发,进而降低了开发的复杂度,缩短了新功能的上线周期,从而加快企业数字化服务的创新速度;本申请的服务注册与发现模块可以通过服务注册中心实现微服务的注册和调用,进而实现微服务之间的动态集成和通信,提高系统的集成效率和可靠性;而数据存储与管理模块则被配置为采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理,并对多租户数据进行备份、恢复和迁移,进而在保障多租户数据的安全性和完整性的同时,为租户提供高效的数据访问和处理能力。In the above embodiment, the platform includes a multi-tenant management module, a microservice architecture module, a service registration and discovery module, and a data storage and management module; wherein the multi-tenant management module can allocate an independent resource space to each tenant according to the registration information, business requirements and predetermined resource levels of each tenant, and perform authentication and authorization according to the registration information of each tenant, so that personalized services can be provided to different tenants on the same platform through the multi-tenant architecture, while achieving effective isolation and sharing of resources, and resource waste can be avoided through the multi-tenant architecture and flexible allocation of resources, the utilization rate of hardware resources can be improved, and the operating costs of the enterprise can be reduced. In addition, multi-tenant data can be effectively isolated and protected to prevent data leakage and illegal access; and the microservice architecture module of the present application can split the system functions of the platform into multiple independent microservices, and independently open each microservice. Development, deployment and expansion, which can not only make the system more flexible and scalable through the microservice architecture, but also quickly adjust and optimize system functions to adapt to dynamic changes in the business. In addition, the various microservices of this application can be developed independently, thereby reducing the complexity of development and shortening the launch cycle of new functions, thereby accelerating the innovation speed of enterprise digital services; the service registration and discovery module of this application can realize the registration and call of microservices through the service registration center, thereby realizing dynamic integration and communication between microservices, and improving the integration efficiency and reliability of the system; the data storage and management module is configured to adopt distributed database and data warehouse technology to realize the storage and management of multi-tenant data, and back up, restore and migrate multi-tenant data, thereby providing tenants with efficient data access and processing capabilities while ensuring the security and integrity of multi-tenant data.

在一个实施例中,如图2所示,图2为本申请实施例提供的包含监控与运维模块的企业数字化服务平台的系统架构图;所述平台还可以包括:In one embodiment, as shown in FIG. 2 , FIG. 2 is a system architecture diagram of an enterprise digital service platform including a monitoring and operation and maintenance module provided in an embodiment of the present application; the platform may also include:

监控与运维模块,被配置为对本平台的运行状态、性能指标和异常情况进行实时监控和预警。The monitoring and operation and maintenance module is configured to conduct real-time monitoring and early warning of the operating status, performance indicators and abnormal situations of this platform.

本实施例中,为了建立完善的监控与运维体系,实时掌握系统运行状况,及时发现和解决问题,并降低系统运维成本。本申请在企业数字化服务平台中设置了监控与运维模块,该模块可以对本平台的运行状态、性能指标和异常情况进行实时监控和预警。In this embodiment, in order to establish a complete monitoring and operation and maintenance system, grasp the system operation status in real time, discover and solve problems in time, and reduce the system operation and maintenance costs. This application sets up a monitoring and operation and maintenance module in the enterprise digital service platform, which can monitor and warn the operation status, performance indicators and abnormal situations of this platform in real time.

展开来说,监控与运维是保障系统稳定运行和优化性能的关键环节。其中,监控是对系统的各项指标和状态进行持续的观察和测量。其主要包括性能监控、应用监控、网络监控和日志监控等。其中,性能监控主要关注系统的资源使用情况,如CPU利用率、内存使用量、磁盘I/O等;应用监控主要监测本平台的运行状态,如响应时间、错误率、吞吐量等;网络监控主要检查网络的连接状态、流量、延迟等;日志监控则用来分析系统和应用产生的日志,以发现潜在的问题和异常。这样可以及时发现问题,并在故障影响用户之前采取措施,并且可以提前规划资源,如扩展或优化。To elaborate, monitoring and operation and maintenance are key links to ensure stable operation of the system and optimize performance. Among them, monitoring is the continuous observation and measurement of various indicators and states of the system. It mainly includes performance monitoring, application monitoring, network monitoring and log monitoring. Among them, performance monitoring focuses on the resource usage of the system, such as CPU utilization, memory usage, disk I/O, etc.; application monitoring mainly monitors the operating status of the platform, such as response time, error rate, throughput, etc.; network monitoring mainly checks the connection status, traffic, latency, etc. of the network; log monitoring is used to analyze the logs generated by the system and application to find potential problems and anomalies. In this way, problems can be discovered in time, and measures can be taken before the failure affects users, and resources can be planned in advance, such as expansion or optimization.

而本申请的运维则是围绕系统的运行和维护所进行的一系列活动。运维的工作涵盖系统部署与配置、故障处理、性能优化、安全管理、资源管理等;其中,系统部署与配置用于确保系统在新环境中正确安装和配置;故障处理用于当监控发现问题后,迅速进行故障诊断和修复;性能优化用于根据监控数据对系统进行调整,提升性能,比如,通过优化数据库查询语句来提高数据检索速度;安全管理用于保护系统免受外部攻击和内部漏洞的影响,如定期更新系统补丁、设置访问权限等;资源管理用于合理分配和管理硬件、软件资源。这样既可以保障系统的高可用性,使系统尽可能少地出现故障和停机时间,又可以确保系统能够快速、稳定地响应用户请求,进而提升用户体验。The operation and maintenance of this application refers to a series of activities carried out around the operation and maintenance of the system. The work of operation and maintenance covers system deployment and configuration, fault handling, performance optimization, security management, resource management, etc. Among them, system deployment and configuration are used to ensure that the system is correctly installed and configured in the new environment; fault handling is used to quickly diagnose and repair faults when monitoring finds problems; performance optimization is used to adjust the system according to monitoring data to improve performance, for example, by optimizing database query statements to increase data retrieval speed; security management is used to protect the system from external attacks and internal vulnerabilities, such as regularly updating system patches, setting access permissions, etc.; resource management is used to reasonably allocate and manage hardware and software resources. This can not only ensure the high availability of the system, minimize system failures and downtime, but also ensure that the system can respond to user requests quickly and stably, thereby improving user experience.

在一个实施例中,所述多租户管理模块为每个租户分配独立的资源空间的过程,可以包括:In one embodiment, the process of allocating independent resource space to each tenant by the multi-tenant management module may include:

所述多租户管理模块根据各个租户的注册信息、业务需求、预定的资源级别,以及预先配置的资源分配策略和规则,利用虚拟化技术为每个租户分配独立的资源空间。The multi-tenant management module allocates an independent resource space to each tenant using virtualization technology according to the registration information, business requirements, predetermined resource levels, and pre-configured resource allocation strategies and rules of each tenant.

本实施例中,多租户管理模块不仅可以接受用户在租户注册页面输入的注册信息、业务需求以及预定的资源级别,还可以根据预先配置的资源分配策略和规则为其创建专属的虚拟资源环境,并利用虚拟化技术,如容器化或虚拟机技术,将物理资源进行划分和隔离,为每个租户分配独立的计算、存储和网络资源。In this embodiment, the multi-tenant management module can not only accept the registration information, business requirements and predetermined resource levels entered by the user on the tenant registration page, but also create an exclusive virtual resource environment for it according to pre-configured resource allocation policies and rules, and use virtualization technology, such as containerization or virtual machine technology, to divide and isolate physical resources, and allocate independent computing, storage and network resources to each tenant.

示意性地,如图3所示,图3为本申请实施例提供的企业数字化服务平台技术架构图;图3中,各个租户可以根据自身的业务需求在应用服务池里选择相应的服务,租户管理员通过管理平台配置上架,上架后的各个租户的相关服务包括但不限于管理服务、站点服务和基础服务,其中,管理服务包括但不限于产品服务、订单服务、内容服务、搜索服务、统计服务和其他服务;站点服务包括但不限于产品栏目、产品新闻、产品展示和产品搜索;基础服务包括但不限于权限服务、授权服务、日志服务和系统服务;每个租户可以根据自身的业务需求选择管理服务、站点服务和基础服务中不同的子服务,且本平台的多租户管理微服务可以对不同租户的服务和资源进行管理,以便在同一平台上为不同租户提供个性化的服务。Schematically, as shown in Figure 3, Figure 3 is a technical architecture diagram of the enterprise digital service platform provided by an embodiment of the present application; in Figure 3, each tenant can select the corresponding service in the application service pool according to its own business needs, and the tenant administrator configures the listing through the management platform. The relevant services of each tenant after listing include but are not limited to management services, site services and basic services, among which management services include but are not limited to product services, order services, content services, search services, statistical services and other services; site services include but are not limited to product columns, product news, product displays and product searches; basic services include but are not limited to permission services, authorization services, log services and system services; each tenant can choose different sub-services among management services, site services and basic services according to its own business needs, and the multi-tenant management microservices of this platform can manage the services and resources of different tenants so as to provide personalized services for different tenants on the same platform.

在一个实施例中,所述多租户管理模块还可以用于:In one embodiment, the multi-tenant management module may also be used to:

通过访问控制机制确保每个租户只能访问和使用为其分配的资源空间。The access control mechanism ensures that each tenant can only access and use the resource space allocated to it.

本实施例中,多租户管理模块可以通过通过访问控制机制确保每个租户只能访问和使用为其分配的资源空间,这样既可以保护租户隐私和安全,又可以提高资源利用率。In this embodiment, the multi-tenant management module can ensure that each tenant can only access and use the resource space allocated to it through an access control mechanism, which can protect the privacy and security of the tenants and improve resource utilization.

其中,本申请的访问控制机制是一种用于管理和限制对系统资源访问的重要手段。它主要通过身份认证、授权以及访问策略等来实现。例如,本申请可以通过身份认证来确定用户的身份是否真实有效,该过程通常通过用户名、密码、生物识别等方式来实现;本申请也可以通过在认证身份后为用户赋予特定的权限和访问级别来实现,比如,管理员拥有对系统进行全面配置和管理的权限,而普通用户只能进行基本的操作和查看有限的信息;本申请还可以通过访问策略来定义什么角色可以在什么条件下访问哪些资源,该策略可以是基于角色的访问控制策略,根据用户在组织中的角色分配权限;也可以是基于属性的访问控制策略,根据用户的属性、资源的属性以及环境条件等来决定访问权限。Among them, the access control mechanism of this application is an important means for managing and restricting access to system resources. It is mainly implemented through identity authentication, authorization, and access policies. For example, this application can determine whether the user's identity is real and valid through identity authentication, which is usually implemented through username, password, biometrics, etc.; this application can also be implemented by granting specific permissions and access levels to users after authenticating their identities. For example, administrators have the authority to fully configure and manage the system, while ordinary users can only perform basic operations and view limited information; this application can also define which roles can access which resources under what conditions through access policies. The policy can be a role-based access control policy that assigns permissions based on the user's role in the organization; it can also be an attribute-based access control policy that determines access permissions based on the user's attributes, resource attributes, and environmental conditions.

另外,本申请中访问控制机制的类型可以包括:自主访问控制:资源的所有者可以自主决定谁有权访问其资源以及访问的权限级别;强制访问控制:访问权限由系统管理员集中控制,根据安全级别和分类来决定访问权限,用户无法自主更改。本申请通过设置访问控制机制来保护数据安全,防止未经授权的用户访问敏感信息,如财务数据、客户信息等,并通过访问控制机制来维护系统稳定性,避免因不当操作导致系统故障或崩溃。In addition, the types of access control mechanisms in this application may include: autonomous access control: the owner of the resource can independently decide who has access to their resources and the level of access permissions; mandatory access control: access permissions are centrally controlled by the system administrator, who determines access permissions based on security levels and classifications, and users cannot change them independently. This application protects data security by setting up access control mechanisms to prevent unauthorized users from accessing sensitive information such as financial data, customer information, etc., and maintains system stability through access control mechanisms to avoid system failures or crashes due to improper operations.

在一个实施例中,所述资源空间的大小依据租户的规模大小、业务类型、付费等级以及预计的业务增长趋势进行动态调整。In one embodiment, the size of the resource space is dynamically adjusted according to the size of the tenant, the type of business, the payment level, and the expected business growth trend.

本实施例中,多租户管理模块在为租户分配资源空间时,该资源空间的大小可以根据租户的规模大小、业务类型、付费等级以及预计的业务增长趋势进行动态调整。其中,租户的规模大小包括但不限于租户业务用户数量、业务量等;租户的业务类型包括但不限于电商类、咨询类、游戏类等;租户的付费等级可以根据租户的付费套餐进行确定,不同的付费套餐对应不同的付费等级。In this embodiment, when the multi-tenant management module allocates resource space to tenants, the size of the resource space can be dynamically adjusted according to the size of the tenant, the type of business, the payment level and the expected business growth trend. The size of the tenant includes but is not limited to the number of tenant business users, business volume, etc.; the type of business of the tenant includes but is not limited to e-commerce, consulting, games, etc.; the payment level of the tenant can be determined according to the payment package of the tenant, and different payment packages correspond to different payment levels.

当确定租户的规模大小、业务类型、付费等级以及预计的业务增长趋势后,便可以为租户分配对应的资源空间。例如,小型初创企业租户可能被分配较小的初始资源空间,如10GB 存储空间、2核CPU和4GB内存;而大型企业租户可能获得100GB存储空间、16核CPU和32GB内存。并且,随着租户业务的发展,可以根据其实际使用情况和需求动态调整资源空间大小。After determining the size, business type, payment level, and expected business growth trend of the tenant, the corresponding resource space can be allocated to the tenant. For example, a small startup tenant may be allocated a smaller initial resource space, such as 10GB storage space, 2-core CPU, and 4GB memory; while a large enterprise tenant may get 100GB storage space, 16-core CPU, and 32GB memory. In addition, as the tenant's business develops, the resource space size can be dynamically adjusted according to its actual usage and needs.

在一个实施例中,所述服务注册与发现模块可以包括服务注册子模块和服务调用子模块。In one embodiment, the service registration and discovery module may include a service registration submodule and a service invocation submodule.

所述服务注册子模块用于通过服务注册中心接收各个微服务注册的服务信息。The service registration submodule is used to receive service information registered by each microservice through the service registration center.

所述服务调用子模块用于通过所述服务注册中心接收并处理各个微服务发送的服务调用请求。The service calling submodule is used to receive and process service calling requests sent by each microservice through the service registration center.

本实施例中,当微服务架构模块将系统功能拆分为多个微服务后,服务注册子模块可以通过服务注册中心接收各个微服务启动时注册的服务信息。例如,图3中,本申请可以将系统功能拆分为多租户管理微服务、数据库微服务、系统管理微服务、文件管理微服务以及对外微服务等,当其中某个微服务启动时,可以向服务注册中心注册自已的服务信息,该服务信息包括但不限于地址、接口信息以及服务内容等。In this embodiment, after the microservice architecture module splits the system function into multiple microservices, the service registration submodule can receive the service information registered when each microservice is started through the service registration center. For example, in Figure 3, the present application can split the system function into multi-tenant management microservices, database microservices, system management microservices, file management microservices, and external microservices, etc. When one of the microservices is started, it can register its own service information with the service registration center, and the service information includes but is not limited to the address, interface information, and service content.

当各个微服务向服务注册中心注册自己的服务信息后,服务注册中心还可以接收某个或多个微服务发送的服务调用请求,并对该服务调用请求进行处理。例如,服务注册中心可以根据该服务调用请求中包含的请求信息来查找其他符合条件的微服务,并供发送该服务调用请求的微服务进行调用;而当服务注册中心未查找到符合条件的微服务时,还可以根据当前的查找情况来判断是否重新查找,或者判断当前平台是否不存在所需服务,进而采取其他措施。After each microservice registers its service information with the service registration center, the service registration center can also receive service call requests sent by one or more microservices and process the service call requests. For example, the service registration center can find other qualified microservices based on the request information contained in the service call request, and provide the microservice that sent the service call request with the service call request for calling; and when the service registration center fails to find a qualified microservice, it can also determine whether to search again based on the current search situation, or determine whether the required service does not exist on the current platform, and then take other measures.

在一个实施例中,所述服务调用子模块通过所述服务注册中心处理各个微服务发送的服务调用请求的过程,可以包括:In one embodiment, the process of the service calling submodule processing the service calling requests sent by each microservice through the service registration center may include:

所述服务调用子模块通过所述服务注册中心根据各个微服务发送的服务调用请求以及各个微服务的服务信息,查找与各个服务调用请求匹配的其他微服务的地址和接口信息,并将其他微服务的地址和接口信息返回至请求调用的微服务。The service calling submodule searches for the addresses and interface information of other microservices that match each service calling request according to the service calling request sent by each microservice and the service information of each microservice through the service registration center, and returns the addresses and interface information of other microservices to the microservice requesting the call.

本实施例中,服务调用子模块可以通过服务注册中心来接收各个微服务发送的服务调用请求,服务注册中心可以根据该服务调用请求以及各个微服务的服务信息来查找与之匹配的其他微服务的地址和接口信息,当查找到其他微服务的地址和接口信息后,便可以将其他微服务的地址和接口信息返回至请求调用的微服务,以使该微服务根据地址和接口信息调用其他微服务。In this embodiment, the service call submodule can receive the service call request sent by each microservice through the service registration center. The service registration center can search for the address and interface information of other microservices that match the service call request and the service information of each microservice. After finding the address and interface information of other microservices, the address and interface information of other microservices can be returned to the microservice requesting the call, so that the microservice can call other microservices according to the address and interface information.

举例来说,假设一个订单处理微服务需要获取用户管理微服务中的用户信息来验证订单的有效性。订单处理微服务首先向服务注册中心发送请求,描述其所需的服务类型和相关参数(如获取特定用户的信息),服务注册中心根据各个微服务的服务信息,找到提供用户管理服务的微服务的地址和接口信息,并将其返回给订单处理微服务,订单处理微服务通过该地址和接口调用用户管理微服务提供的相应功能,获取所需的用户信息,完成订单验证操作。For example, suppose an order processing microservice needs to obtain user information from the user management microservice to verify the validity of the order. The order processing microservice first sends a request to the service registration center, describing the service type and related parameters it needs (such as obtaining information about a specific user). The service registration center finds the address and interface information of the microservice that provides the user management service based on the service information of each microservice, and returns it to the order processing microservice. The order processing microservice calls the corresponding function provided by the user management microservice through the address and interface to obtain the required user information and complete the order verification operation.

在一个实施例中,所述服务调用子模块还可以用于:In one embodiment, the service calling submodule may also be used to:

在未查找到与任意一个服务调用请求匹配的其他微服务时,根据查找结果使用等待和重试机制或临时替代机制重新寻找其他微服务,或者,使用服务扩展开发机制反馈不存在所需服务后评估扩展开发详情。When no other microservices matching any service call request are found, a wait and retry mechanism or a temporary replacement mechanism is used to search for other microservices based on the search results, or the service extension development mechanism is used to feedback that the required service does not exist and then evaluate the extension development details.

本实施例中,服务调用子模块不仅可以查找与各个服务调用请求匹配的其他微服务,还可以在未查找到与其匹配的其他微服务时,通过等待和重试机制或临时替代机制等来提供进一步的服务。In this embodiment, the service call submodule can not only search for other microservices that match each service call request, but also provide further services through a waiting and retry mechanism or a temporary replacement mechanism when no other microservices that match it are found.

具体来说,本申请的服务调用子模块在未查找到与任意一个服务调用请求匹配的其他微服务时,可以根据查找结果使用等待和重试机制或临时替代机制重新寻找其他微服务,或者,使用服务扩展开发机制反馈不存在所需服务后评估扩展开发详情。Specifically, when the service call submodule of the present application fails to find other microservices that match any service call request, it can use a waiting and retry mechanism or a temporary replacement mechanism based on the search results to re-search for other microservices, or use the service extension development mechanism to feedback that the required service does not exist and then evaluate the extension development details.

其中,本申请的等待和重试机制指的是预先设置一个适当的等待时间间隔,然后再次向服务注册中心发起服务调用请求,以便服务注册中心重新进行查找。可以理解的是,由于所需服务可能正在注册过程中或者暂时出现网络延迟等问题,从而导致当前未能查找到与服务调用请求匹配的其他微服务,此时可以通过等待和重试机制来重新进行查找。Among them, the waiting and retry mechanism of this application refers to presetting an appropriate waiting time interval, and then initiating a service call request to the service registration center again so that the service registration center can search again. It is understandable that because the required service may be in the process of registration or there are temporary network delays and other problems, resulting in the current failure to find other microservices that match the service call request, at this time, the waiting and retry mechanism can be used to search again.

本申请的临时替代机制指的是在未找到确切所需服务的情况下,寻找现有类似功能的服务作为临时替代,同时对其进行必要的调整和适配,以尽量满足当前业务需求。其中,在对现有的微服务进行调整和适配时,可以根据服务调用请求的请求信息进行调整,并且还可以将调整后的微服务作为一个新的服务进行注册,以便后续其他微服务调用。The temporary replacement mechanism of this application refers to finding an existing service with similar functions as a temporary replacement when the exact required service is not found, and making necessary adjustments and adaptations to it to meet the current business needs as much as possible. When adjusting and adapting the existing microservices, adjustments can be made according to the request information of the service call request, and the adjusted microservice can also be registered as a new service for subsequent calls by other microservices.

而本申请的服务扩展开发机制则可以在所需服务确实不存在时,通过开发团队来评估是否需要新开发相应的服务来满足需求,并尽快进行开发、测试和部署。The service extension development mechanism of this application can allow the development team to evaluate whether a new service needs to be developed to meet the demand when the required service does not exist, and develop, test and deploy it as soon as possible.

在一个实施例中,所述数据存储与管理模块采用分布式数据库和数据仓库技术,实现多租户数据的存储和管理的过程,包括:In one embodiment, the data storage and management module uses distributed database and data warehouse technology to implement the process of storing and managing multi-tenant data, including:

所述数据存储与管理模块利用分布式数据库存储多租户数据,并通过数据仓库技术从所述分布式数据库中抽取多租户数据进行清洗、转换和加载,以及将加载后的数据整合到数据仓库中。The data storage and management module uses a distributed database to store multi-tenant data, and extracts multi-tenant data from the distributed database through data warehouse technology for cleaning, conversion and loading, and integrates the loaded data into the data warehouse.

本实施例中,数据存储与管理模块在对多租户数据进行存储和管理时,可以使用分布式数据库来存储多租户数据。其中,分布式数据库是一种将数据分散存储在多个不同的物理节点上,并通过网络进行协同工作的数据库系统。因此,本申请将不同的租户数据存在不同的物理节点上,这样既可以实现数据隔离,并保证用户数据的隐私和安全,还可以提高系统的灵活性和可扩展性。In this embodiment, the data storage and management module can use a distributed database to store multi-tenant data when storing and managing multi-tenant data. Among them, a distributed database is a database system that stores data in a dispersed manner on multiple different physical nodes and works collaboratively through a network. Therefore, this application stores different tenant data on different physical nodes, which can not only achieve data isolation and ensure the privacy and security of user data, but also improve the flexibility and scalability of the system.

而本申请使用的数据仓库技术是一系列用于构建、管理和利用数据仓库的方法和工具,包括但不限于数据提取、转换和加载、数据存储、数据建模、索引和优化、数据治理、数据挖掘和分析等。The data warehouse technology used in this application is a series of methods and tools for building, managing and utilizing data warehouses, including but not limited to data extraction, transformation and loading, data storage, data modeling, indexing and optimization, data governance, data mining and analysis, etc.

举例来说,本申请中各个租户的数据存储至分布式数据库后,可以从分布式数据库中抽取多租户的相关数据,经过清洗、转换和加载(ETL)过程,将数据整合到数据仓库中。然后,使用数据分析工具和算法,如数据挖掘、机器学习算法等,对数据进行深入分析,以发现潜在的业务模式、趋势和问题。例如,通过分析租户的使用行为数据,预测其未来的资源需求,进而为资源分配提供决策依据。For example, after the data of each tenant in this application is stored in a distributed database, the relevant data of multiple tenants can be extracted from the distributed database, and the data can be integrated into the data warehouse after the cleaning, transformation and loading (ETL) process. Then, data analysis tools and algorithms, such as data mining and machine learning algorithms, are used to conduct in-depth analysis of the data to discover potential business patterns, trends and problems. For example, by analyzing the usage behavior data of tenants, their future resource needs can be predicted, thereby providing a decision-making basis for resource allocation.

在一个实施例中,所述数据存储与管理模块对多租户数据进行备份、恢复的过程,可以包括:In one embodiment, the process of backing up and restoring multi-tenant data by the data storage and management module may include:

所述数据存储与管理模块对多租户数据进行定期全量备份,并在每两次全量备份的间隔期间对多租户数据进行增量备份。The data storage and management module performs regular full backup of the multi-tenant data, and performs incremental backup of the multi-tenant data during the interval between two full backups.

所述数据存储与管理模块在数据丢失或损坏时,查找最新的全量备份数据,并结合所述全量备份数据之后备份的增量备份数据以及日志数据,将数据恢复到故障发生前的状态。When data is lost or damaged, the data storage and management module searches for the latest full backup data, and restores the data to a state before the failure occurs in combination with the incremental backup data and log data backed up after the full backup data.

本实施例中,数据存储与管理模块还可以对多租户数据进行备份和恢复。例如,本申请的数据存储与管理模块可以对多租户数据进行定期全量备份,以确保在出现重大故障时能够快速恢复整个数据集;并在每两次全量备份的间隔期间对多租户数据进行增量备份,以减少备份时间和存储空间。另外,当数据丢失或损坏时,可以使用数据恢复策略进行恢复,该数据恢复策略包括在数据丢失或损坏时,从最近的备份中恢复数据,并通过日志和校验机制确保数据的一致性和完整性。例如,如果发生硬件故障导致部分数据丢失,系统首先查找最新的全量备份数据,并结合全量备份数据之后备份的增量备份数据以及日志数据,将数据恢复到故障发生前的状态,以此来提高数据安全性。In this embodiment, the data storage and management module can also back up and restore multi-tenant data. For example, the data storage and management module of the present application can perform regular full backup of multi-tenant data to ensure that the entire data set can be quickly restored in the event of a major failure; and perform incremental backup of multi-tenant data during the interval between every two full backups to reduce backup time and storage space. In addition, when data is lost or damaged, it can be restored using a data recovery strategy, which includes restoring data from the most recent backup when data is lost or damaged, and ensuring data consistency and integrity through log and verification mechanisms. For example, if a hardware failure occurs and causes partial data loss, the system first searches for the latest full backup data, and combines the incremental backup data and log data backed up after the full backup data to restore the data to the state before the failure occurs, thereby improving data security.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间可以根据需要进行组合,且相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

CN202411252390.1A2024-09-092024-09-09 An enterprise digital service platform with multi-tenant and microservice architecturePendingCN118784712A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202411252390.1ACN118784712A (en)2024-09-092024-09-09 An enterprise digital service platform with multi-tenant and microservice architecture

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202411252390.1ACN118784712A (en)2024-09-092024-09-09 An enterprise digital service platform with multi-tenant and microservice architecture

Publications (1)

Publication NumberPublication Date
CN118784712Atrue CN118784712A (en)2024-10-15

Family

ID=92993289

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202411252390.1APendingCN118784712A (en)2024-09-092024-09-09 An enterprise digital service platform with multi-tenant and microservice architecture

Country Status (1)

CountryLink
CN (1)CN118784712A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119917289A (en)*2025-04-012025-05-02杭州美碧软件有限公司 A microservice method and system for multi-business and multi-tenant
CN120602546A (en)*2025-08-082025-09-05恒丰银行股份有限公司Multi-lease outdoor networking platform, using method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109862051A (en)*2017-11-302019-06-07亿阳信通股份有限公司The realization method and system of multi-tenant under a kind of micro services framework
CN114827248A (en)*2022-03-312022-07-29浙江西图盟数字科技有限公司Micro-service resource allocation method and device, electronic equipment and storage medium
CN114928460A (en)*2022-02-142022-08-19上海大学Multi-tenant application integration framework system based on micro-service architecture
CN117331696A (en)*2023-10-102024-01-02东北大学 A multi-tenant-based service provision system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109862051A (en)*2017-11-302019-06-07亿阳信通股份有限公司The realization method and system of multi-tenant under a kind of micro services framework
CN114928460A (en)*2022-02-142022-08-19上海大学Multi-tenant application integration framework system based on micro-service architecture
CN114827248A (en)*2022-03-312022-07-29浙江西图盟数字科技有限公司Micro-service resource allocation method and device, electronic equipment and storage medium
CN117331696A (en)*2023-10-102024-01-02东北大学 A multi-tenant-based service provision system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN119917289A (en)*2025-04-012025-05-02杭州美碧软件有限公司 A microservice method and system for multi-business and multi-tenant
CN119917289B (en)*2025-04-012025-07-08杭州美碧软件有限公司 A microservice method and system for multi-business and multi-tenant
CN120602546A (en)*2025-08-082025-09-05恒丰银行股份有限公司Multi-lease outdoor networking platform, using method and equipment

Similar Documents

PublicationPublication DateTitle
CN113169952B (en) A container cloud management system based on blockchain technology
US10798101B2 (en)Managing security groups for data instances
Bhathal et al.Big Data: Hadoop framework vulnerabilities, security issues and attacks
US11647026B2 (en)Automatically executing responsive actions based on a verification of an account lineage chain
US20220417273A1 (en)Anomalous action security assessor
US10104053B2 (en)System and method for providing annotated service blueprints in an intelligent workload management system
EP2102781B1 (en)Highly available cryptographic key storage (hacks)
CN118784712A (en) An enterprise digital service platform with multi-tenant and microservice architecture
US10686791B1 (en)Secure cloud computing framework
US20100306374A1 (en)Centralized network control
KR102117724B1 (en)Managing distributed operating system physical resources
US12192291B2 (en)Automatically executing responsive actions upon detecting an incomplete account lineage chain
CN118484267B (en)Cloud computing-based online service computing power optimization method and system
US11190549B2 (en)Method and devices for enabling portability of data and client between cloud service providers
US11755374B2 (en)Cloud resource audit system
CN114422197A (en)Permission access control method and system based on policy management
CN114036560B (en) A charging pile subsidy data management method based on blockchain
US9092397B1 (en)Development server with hot standby capabilities
US11496558B2 (en)Peer-to-peer blockchain fabric management mechanism
US20250310411A1 (en)Systems and methods for network discovery
US20240176855A1 (en)Integrated identity management and monitoring system, apparatus, and storage medium
US12432220B2 (en)Dormant service account disablement system
US20240330272A1 (en)Decentralized governance of shared infrastructure
Ajay et al.Why, how cloud computing how not and cloud security issues
CN119299167A (en) File processing method, device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20241015


[8]ページ先頭

©2009-2025 Movatter.jp