Microservice Management and Control Platform for One-stop Service-based Real-time Dynamic Governance
Through a one-stop service-oriented real-time dynamic governance microservice management platform, the problem of insufficient encapsulation of microservice governance components is solved, global semantic governance and second-level configuration issuance is realized, configuration management is simplified, and governance efficiency and unity is improved.
Patent Information
- Application Number
- CN202211237617.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-10-08
AI Technical Summary
The existing microservice governance components are insufficiently packaged, lack unified management, cumbersome configuration, unfriendly, and highly invasive, making it difficult to achieve real-time dynamic governance at the system level.
It provides a one-stop service-oriented real-time dynamic governance microservice management platform, including interactive interfaces, management and control platforms, business systems, configuration adaptation modules and configuration center modules. Through the polling and pulling hot loading mechanism of built-in modules and configuration centers, global semantic governance is achieved, reducing intrusion, and providing diversified interactive interfaces, supporting out-of-the-box governance capabilities such as current limiting, fuse degradation, and load balancing.
It realizes dynamic governance with global semantics, reduces the invasiveness of the management and control platform, provides the issuance and dynamic implementation of the second-level governance configuration, supports diversified interactive interfaces, simplifies configuration management, and improves the unity and efficiency of governance.
Smart Images

Figure CN115617332B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed microservice software, and more specifically, to a microservice control platform for one-stop service-oriented real-time dynamic governance. Background Art
[0002] As the monolithic architecture system faces problems such as reduced system maintainability and availability, increased deployment difficulty, and coupling of each module after the project requirements surge and the code reaches a certain level. The microservice system architecture has gradually become the mainstream development architecture due to its characteristics such as loose coupling, clear responsibilities, convenient expansion and maintenance, and high reusability. The microservice architecture splits the system into multiple microservices, which communicate with each other through RPC (Remote Procedure Call) to complete their respective responsibilities and jointly complete the business functions. As the system iterates and is maintained, problems such as interface compatibility, deployment performance, access authorization, fault tolerance, and service online / offline between microservices gradually emerge. How to manage all components of the business system using the microservice architecture, conduct unified governance, and adjust the governance strategy in real time according to system deployment changes, business requirements, version management, etc. has become a bottleneck in the development of the microservice architecture.
[0003] Currently, open-source technologies such as Spring Cloud (a collection of a series of governance components provided by the open-source framework Spring) and Dobbe (a microservice development framework open-sourced by Alibaba) only provide some governance components, and the entire microservice governance ability is discrete and abstract. For example, Spring Cloud provides a series of integrated components to achieve traffic limiting, circuit breaker degradation, load balancing, and configuration hot reloading for microservices. For each microservice's own situation, developers need to introduce governance capabilities by themselves and manage them one by one through configuration. As open-source components, although they ensure sufficient expansion capabilities, they have defects such as fragmented governance capabilities due to insufficient encapsulation, lack of unified management at the system level, cumbersome and unfriendly configuration, poor readability of configuration items, and large invasiveness, requiring a large amount of integration work.
[0004] Therefore, a new technical solution needs to be proposed to improve the above technical problems. Summary of the Invention
[0005] Aiming at the defects in the prior art, the purpose of the present invention is to provide a microservice control platform for one-stop service-oriented real-time dynamic governance.
[0006] According to the microservice control platform for one-stop service-oriented real-time dynamic governance provided by the present invention, it includes an interaction interface, a control platform, a business system, a configuration adaptation module, and a configuration center module;
[0007] The interactive interface is connected to the management and control platform for coordinated operation; the management and control platform is respectively connected to the business system and the configuration adaptation module for coordinated operation; the configuration adaptation module is connected to the configuration center module for coordinated operation; the configuration center module is connected to the business system for coordinated operation.
[0008] Preferably, the interactive interface includes a Web front-end, a command-line tool, and a microservice management and control SDK; the Web front-end, the command-line tool, and the microservice management and control SDK are three user interactive interfaces provided by the management and control platform, and users issue semantic governance policies through the interfaces.
[0009] Preferably, the management and control platform includes an application governance module, a gateway governance module, and a registry center module;
[0010] The registry center module maintains information related to the registry center components of the business system, communicates with the registry center components of the business system, obtains application instance information, performs instance online / offline management, and assists the application governance module and the gateway governance module in performing some governance functions;
[0011] The application governance module provides setting functions including information management, instance online / offline, interface online / offline, instance traffic limiting, circuit breaking and degradation, load balancing, and fault tolerance for each application within the business system;
[0012] The gateway governance module performs configuration management on the service gateway of the business system, provides gateway instance online / offline, interface publishing authorization, subscriber management, routing setting, and setting functions at three granularities of global level, application level, and service level.
[0013] Preferably, the registry center module communicates with the registry deployed in the business system through the registry center information of the business system input by the user, obtains the registry component information and corresponding instance information of the business system, provides them to the user interactive interface for display, and provides application query and instance online / offline functions.
[0014] Preferably, the business system includes multiple built-in modules; the built-in modules are basic libraries built into the business system applications and gateways, integrating specific governance strategy functions and the functions of pulling, parsing, and hot-loading configurations from the configuration center.
[0015] Preferably, the configuration adaptation module manages configuration transformation and adaptation, converts the semantic configuration issued by the user into a governance configuration that can be parsed by the built-in module, and communicates with the configuration center through the interface protocol, and calls the relevant interfaces of the configuration center to change the governance configuration.
[0016] Preferably, the configuration adaptation module undertakes the configuration escape work of the management and control platform, and the configuration adaptation module converts the configuration according to the specific design of the built-in module.
[0017] Preferably, the configuration center module maintains a long connection with the built-in module, solidifies the governance configuration pushed by the configuration adaptation module in the database, and publishes the configuration change information.
[0018] Preferably, after receiving the governance configuration transferred and issued by the configuration adaptation module, the configuration center module generates configuration change information. The built-in modules of the business application and the gateway establish a long connection with the configuration center, and obtain the configuration change information in a polling manner, and update the locally cached governance configuration information incrementally; provide the functions of database solidification, distribution, and display of the transferred configuration information for the management and control platform.
[0019] Preferably, the built-in module integrates a series of open-source components and expands functions, and endows the gateway and the application with diverse governance capabilities by using reflection, proxy, and filter technologies; the built-in module has the ability to obtain configurations, interacts with the configuration center, and parses and hot-validates the latest governance configuration issued by users in real time.
[0020] Compared with the prior art, the present invention has the following beneficial effects:
[0021] 1. By introducing the built-in module into the business system components with a microservices architecture, the present invention can achieve global semantic dynamic governance, reduce the invasiveness of the management and control platform, and realize out-of-the-box governance capabilities.
[0022] 2. Through the polling and hot-loading mechanism of the built-in module and the configuration center, the present invention realizes the second-level distribution and dynamic implementation of the governance configuration.
[0023] 3. The present invention provides diverse interaction interfaces for users, facilitating the business system to select according to specific usage scenarios.
[0024] 4. The present invention encapsulates common governance capabilities such as traffic limiting, circuit breaking and degradation, load balancing, fault tolerance, and gray release. By introducing the encapsulated built-in module into the business system application components and the service gateway, out-of-the-box capabilities can be achieved.
[0025] 5. By entering the access addresses of the registration center, gateway, and application of the business system, the management and control platform can obtain relevant governance information by accessing the corresponding components, such as interface information, instance information, call dependencies, etc. Relying on this information, the top-down governance capabilities can be realized, and management at different granularities such as system level, component level, instance level, and interface level can be achieved.
[0026] 6. The present invention provides three interaction interfaces: Web interface, command line, and SDK. Through interface encapsulation, users do not need to pay attention to the specific configuration item content, focus on the business, and semantically issue governance policies to the governance objects.
[0027] 7. The present invention deploys the configuration center in the same network domain as the business system. System components establish long connections with the configuration center, and monitor configuration changes in real time by polling, obtain the latest governance policies in real time, and implement the hot effectiveness of the policies by means of reflection and the like. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Other features, objects, and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0029] Figure 1 It is a functional architecture design diagram of the microservice management and control platform for one-stop service-oriented real-time dynamic governance of the present invention;
[0030] Figure 2 It is a functional architecture design diagram of the built-in module of the service gateway of the present invention;
[0031] Figure 3 It is a flow chart of the application governance fuse policy distribution of the present invention;
[0032] Figure 4 It is a schematic diagram of the deployment of the microservice management and control platform of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0033] The present invention will be described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several changes and improvements can still be made. These all belong to the protection scope of the present invention.
[0034] Example 1:
[0035] A microservice management and control platform for one-stop service-oriented real-time dynamic governance provided by the present invention includes an interaction interface, a management and control platform, a business system, a configuration adaptation module, and a configuration center module; the interaction interface is connected to the management and control platform in a working cooperation manner; the management and control platform is respectively connected to the business system and the configuration adaptation module in a working cooperation manner; the configuration adaptation module is connected to the configuration center module in a working cooperation manner; the configuration center module is connected to the business system in a working cooperation manner.
[0036] The interaction interface includes a Web front end, a command line tool, and a microservice management and control SDK; the Web front end, the command line tool, and the microservice management and control SDK are three user interaction interfaces provided by the management and control platform, and users issue semantic governance policies through the interfaces.
[0037] The management and control platform includes an application governance module, a gateway governance module, and a registration center module; the registration center module maintains information related to the business system registration center component, communicates with the business system registration center component, obtains application instance information, manages instance online and offline, and assists the application governance module and the gateway governance module in performing some governance functions; the application governance module provides information management, instance online and offline, interface online and offline, instance current limiting, circuit breaking and degradation, load balancing, and fault tolerance for each application in the business system; the gateway governance module performs configuration management on the service gateway of the business system, provides gateway instance online and offline, interface publishing authorization, subscriber management, routing settings, and three granularity settings: global level, application level, and service level.
[0038] The registration center module communicates with the registration center deployed by the business system through the business system registration center information entered by the user, obtains the registration component information and corresponding instance information of the business system, provides it to the user interactive interface for display, and provides application query and instance online and offline functions.
[0039] The business system includes multiple built-in modules; built-in modules are basic class libraries built into business system applications and gateways, integrating specific governance policy functions as well as configuration pulling, parsing, and hot loading functions for the configuration center.
[0040] The configuration adapter module manages configuration conversion and adaptation, converting the semantic configuration issued by the user into a governance configuration parsed by the built-in module. It then communicates with the configuration center through the gateway according to the interface protocol and calls the relevant interfaces of the configuration center to change the governance configuration. The configuration adapter module is responsible for the configuration translation of the control platform and converts the configuration according to the specific design of the built-in module.
[0041] The configuration center module maintains a persistent connection with built-in modules, solidifying the governance configuration pushed by the configuration adapter module into the database and publishing configuration change information. After receiving the governance configuration translated and issued by the configuration adapter module, the configuration center module generates configuration change information. Business applications and built-in modules of the gateway establish a persistent connection with the configuration center, obtaining configuration change information through polling, and incrementally updating the locally cached governance configuration information. This provides the management and control platform with database solidification, distribution, and display capabilities for translated configuration information.
[0042] The built-in modules integrate a series of open source components and expand their functions, using reflection, proxy, and filter technologies to give gateways and applications diverse governance capabilities; the built-in modules have the ability to obtain configurations, interact with the configuration center, and obtain the latest governance configurations issued by users in real time for analysis and hot implementation.
[0043] Example 2:
[0044] Example 2 is a preferred example of Example 1 to illustrate the present invention more specifically.
[0045] The present invention provides a semantic microservice management and control platform for low-invasive global real-time dynamic governance. By introducing built-in modules into the business system components adopting the microservice architecture, global semantic dynamic governance can be realized, the invasiveness of the management and control platform is reduced, and the governance ability can be used out of the box. Through the polling and hot loading mechanism between the built-in module and the configuration center, the second-level distribution and dynamic implementation of governance configurations are realized. And a variety of interactive interfaces are provided for users to facilitate the selection by the business system according to specific usage scenarios.
[0046] The present invention provides a semantic microservice management and control platform for one-stop service-oriented real-time dynamic governance, which provides friendly and diverse user interactive interfaces to realize the global governance and control of the business system and the second-level policy distribution. The technical details are expanded in the following modules. The functions are as Figure 1 shown, and its features include a Web front end, a command-line tool, a microservice management and control SDK (abbreviation of Software Development Kit), a registration center module, an application governance module, a gateway governance module, a configuration adaptation module, a configuration center module, and a built-in module.
[0047] The Web front end, the command-line tool, and the microservice management and control SDK are three user interactive interfaces provided by the management and control platform, and users issue semantic governance policies through the interfaces;
[0048] The registration center module is responsible for maintaining the information related to the registration center components of the business system, communicating with the registration center components of the business system, obtaining application instance information, performing instance online and offline management, and assisting the application governance module and the gateway governance module in performing some governance functions;
[0049] The application governance module is responsible for providing setting functions including information management, instance online and offline, interface online and offline, instance flow limiting, fuse degradation, load balancing, and fault tolerance for each application within the business system;
[0050] The gateway governance module is responsible for the configuration management of the service gateway of the business system, providing gateway instance online and offline, interface release authorization, subscriber management, routing setting, and setting functions at three granularities of global level, application level, and service level;
[0051] The configuration adaptation module is responsible for the conversion and adaptation of governance configurations, converting the semantic configurations issued by users into governance configurations convenient for the built-in module to parse, and communicating with the configuration center through the gateway according to the interface protocol, and calling the relevant interfaces of the configuration center to change the governance configurations;
[0052] The configuration center module is responsible for maintaining a long connection with the built-in module, solidifying the governance configuration pushed by the configuration adaptation module into the database and publishing configuration change information to ensure the real-time distribution of the configuration.
[0053] The built-in module is a basic class library built into the business system application and the gateway, integrating specific governance strategy functions and the functions of pulling, parsing, and hot-loading configurations from the configuration center.
[0054] Users dynamically distribute governance strategies through the interaction interface. The service gateway and service cluster rely on the built-in module to pull governance strategies from the configuration center in real time and take effect immediately.
[0055] Based on the current status of microservice governance, the present invention provides the following features: 1. Built-in governance capabilities: Common governance capabilities such as flow limiting, circuit breaking and degradation, load balancing, fault tolerance, and gray release are encapsulated. By introducing the encapsulated built-in module into the business system application components and service gateways, it can be used out of the box; 2. Unified management of governance capabilities: By entering the access addresses of the registration center, gateway, and application of the business system, the management platform can obtain relevant governance information by accessing the corresponding components, such as interface information, instance information, call dependencies, etc. Relying on this information, top-down governance capabilities can be realized to achieve management at different granularities such as system level, component level, instance level, and interface level; 3. Diverse user interfaces: Provide three interaction interfaces: Web interface, command line, and SDK. Through interface encapsulation, users do not need to pay attention to the specific configuration item content, focus on the business, and semantically distribute governance strategies to governance objects; 4. Governance strategies take effect in seconds: The configuration center is deployed in the same network domain as the business system. System components establish a long connection with the configuration center, and monitor configuration changes in real time through polling, obtain the latest governance strategies in real time, and use reflection and other methods to achieve the hot effect of the strategies.
[0056] The present invention provides a microservice management and control platform, method, and medium for real-time dynamic governance, and the specific content is as follows:
[0057] In the first aspect, a semantic microservice governance user interaction interface is provided. It includes a Web front end, a command line tool, and a microservice management and control SDK (abbreviation for Software Development Kit).
[0058] For the Web front end, it is divided into four parts: the registration center, application governance, gateway governance, and configuration center. The registration center interface provides the registration center setting function, setting information such as the access address, username, and password of the registration center components of the business system, enabling the control platform to have the access ability to the registration center within the system; at the same time, it displays the registered applications and the online and offline status of the corresponding instances in the registration center. For the application governance interface, it provides operation panels such as application addition, application instance group addition, application instance management, application interface management (online and offline), application traffic limiting, circuit breaker degradation, load balancing, and fault tolerance governance strategy settings. The gateway governance interface provides service gateway addition, gateway interface management (creation, publishing, authorization), subscriber creation, routing settings, global-level / application-level / service-level governance strategy settings, etc.; the configuration center interface displays the running information of the center, and presents the governance strategy configuration items actually sent after being converted by the configuration adaptation module to the user in text or list form.
[0059] The functions and transmitted content of the interfaces provided by the command-line tool and the microservice control SDK are consistent with those of the Web front end, providing users with the ability to access through scripts and software, and maintaining a unified interaction style.
[0060] On the second aspect, a registration center module, an application governance module, a gateway governance module, a configuration adaptation module, and a configuration center module are provided to implement the business functions of the control platform.
[0061] The registration center module communicates with the registration center deployed in the business system through the registration center information of the business system input by the user, obtains the registration component information and corresponding instance information of the business system, provides it to the user interaction interface for display, and provides application query and instance online and offline functions.
[0062] After the application governance module obtains the business application information input by the user, there are three ways to interact with the application: 1. Obtain the application instance information by accessing the registration center and then access. 2. According to the application service address input by the user, such as the access address exposed by technologies such as F5 (a network device for traffic load and domain name resolution), Nginx (an open-source high-performance HTTP and reverse proxy Web server), or LVS (the virtual server function provided by the Linux system), access. 3. Access through the gateway and use the routing function of the gateway to forward the access to the corresponding application. Obtain service interface and call dependency and other information from the application. Provide the ability to issue governance strategies including instance online and offline, application interface management, application traffic limiting, circuit breaker degradation, load balancing, and fault tolerance, solidify the governance strategies formulated by the user into the database, and send them to the configuration adaptation module for configuration translation. The gateway governance module is similar to the application governance module, establishes communication with the service gateway according to the information provided by the user, solidifies the governance strategies set by the user into the database, and sends them to the configuration adaptation module.
[0063] The configuration adapter module primarily handles configuration translation for the control platform. User-defined governance policies are semantically based and unsuitable for configuration parsing and logical processing by built-in modules. The configuration adapter module converts configurations based on the specific designs of built-in modules. As an adapter module, it reduces the coupling between the control platform and built-in modules, addressing issues such as redundant governance configuration information and complex parsing.
[0064] After receiving the governance configuration from the configuration adapter module, the configuration center module generates configuration change information. Business applications and gateway built-in modules establish a persistent connection with the configuration center, obtain configuration change information through polling, and incrementally update the locally cached governance configuration information. This provides the management and control platform with database consolidation, distribution, and display capabilities for the converted configuration information.
[0065] Third, built-in modules are provided. By integrating a series of open source components and expanding their functionality, they leverage technologies such as reflection, proxying, and filtering to empower gateways and applications with diverse governance capabilities. These built-in modules also have configuration acquisition capabilities, interacting with the configuration center to obtain the latest user-issued governance configurations in real time for analysis and hot-enforcement.
[0066] This embodiment of the present invention provides a semantic microservices management and control platform with low-intrusive global, real-time, dynamic governance. It offers a user-friendly and diverse interface for global governance and control of business systems, as well as policy issuance within seconds. The following sections describe the technical details in separate modules.
[0067] 1. The built-in module is an agent dispatched by the management platform to each business component and is the actual executor of governance policies. The built-in modules in the application are integrated and extended based on the open-source microservices framework Spring Cloud. Hystrix (an open-source library for handling latency and fault tolerance in distributed systems provided by Netflix) is used as the native component for the circuit breaker and fallback governance strategy, and Ribbon (a client-side load balancing tool provided by Netflix) is used as the native component for load balancing and fault tolerance. For traffic limiting, it is implemented by combining Guava (a core Java open-source library provided by Google) with the filters of Spring MVC (a lightweight Web development framework based on the MVC design pattern provided by Spring). Interface management utilizes Swagger (an open-source Web interface generation, description, invocation, and visualization framework) technology combined with the filter mechanism. By extending and transforming these native components and integrating them with the configuration center, the latest governance policies pulled from the configuration center are dynamically loaded through reflection and AOP (Aspect Oriented Programming) technology. For the built-in module in the service gateway, Gateway in Spring Cloud (an open-source service gateway component provided by Spring) is used as the native component, and its routing and filters are customized and extended to provide governance capabilities such as interface publishing, authorization, and routing. For the four common governance aspects of traffic limiting, circuit breaker and fallback, load balancing, and fault tolerance, the native components used are the same as those in the built-in modules of the application. Through the setting of specific values of configuration items, governance at three different levels, namely global level, application level, and service level, is achieved.
[0068] 2. For the registration center module, by interacting with the business system registration center, it provides the registered components and corresponding instance information to the user interaction interface; it is responsible for encapsulating and forwarding the requests for the online and offline of relevant instances of the business components initiated by the user to the business system registration; the management platform can also obtain the access addresses of business components through the registration center module and assist the application governance module in obtaining component call information, etc.
[0069] 3. For the application governance module, it is responsible for receiving and processing all application governance-related requests initiated by the user interaction interface:
[0070] 1. Application creation request: The application governance module retrieves the registered applications from the registration center and gives a prompt during creation;
[0071] 2. Application instance online / offline request: It involves two steps. Taking the offline of an application instance as an example:
[0072] S1: First, the instance status information obtained from the registration center will be presented on the Web interface. For instances in the online state, after the application governance module obtains the instance offline request, it will encapsulate the offline request and send it to the registration center to implement the offline of the instance in the registration center.
[0073] S2: All instance information in the registration center will be cached in each business component. Before updating the cache, the business component may cause some call requests to be sent to the offline application instances. To handle these requests, the application governance module will send the offline configuration to the application instances, and use the filter principle through the built-in module of the application to intercept these expired requests.
[0074] 3. Application interface management request: For interface management, it involves two aspects. The first aspect is the addition, deletion, modification, and query of interfaces. There are two ways to obtain interfaces. The first is to directly obtain them through the Swagger interface, and the second is to import them through an Excel file. The second aspect is the online and offline of interfaces, which is also through the filter method. After the built-in module detects that the interface is offline, it will directly filter and discard subsequent requests for this interface.
[0075] 4. Application governance request: For the four general governance strategies of traffic limiting, circuit breaking and degradation, load balancing, and fault tolerance, using the capabilities of the built-in module, the application governance module will solidify the governance strategies in the database and then send the strategy information to the configuration adaptation module for configuration translation.
[0076] IV. For the gateway governance module, it is divided into four parts:
[0077] 1. Gateway interface management request: The creation of gateway interfaces depends on application interfaces. By specifying an application, obtaining the application interface, selecting the interfaces to be exposed, and adding a custom business prefix. The created gateway interfaces only exist in the database of the control platform. When publishing, the gateway governance module will send the corresponding publishing configuration to the service gateway. Only publishing the interfaces cannot perform business access, and authorization is also required. This platform provides a mapping method between subscribers and authorization interfaces. According to the access requirements, the business system creates several subscribers, and each subscriber has the corresponding authorized interfaces. When a business request carries the subscriber and subscriber credential information, the service gateway first determines the accessed application and specific interface according to the routing after receiving the business request, then judges whether the subscriber credential carried by the request is valid, and then judges whether this subscriber has subscribed to this interface. After passing the verification, the service gateway can forward the request. All interface publishing authorization, subscribers, and subscription credential information are maintained through the gateway governance module.
[0078] 2. Gateway routing request: Based on the routing mechanism of the native Gateway, the gateway governance module extends the ability of dynamic loading to realize dynamic addition, deletion, and modification operations on routes.
[0079] 3. Gateway governance request: Based on application governance, level division is carried out, providing three levels of governance granularity: global level, application level, and service level. The ability to manage black and white lists is added, enabling IP filtering of requests, so that the service gateway of the business system has the ability to filter malicious requests. For the problem of governance judgment order caused by different governance granularities, the module judges in the order of service level > application level > global level. For black and white lists, only the global level is available.
[0080] V. For the configuration adaptation module, its core role is to decouple the strong coupling between the management and control platform and the built-in modules, reducing the impact of changes in the mechanisms of the built-in modules on the core modules (application governance module, gateway governance module) of the management and control platform. Through the adaptation development of the built-in modules, the management and control platform's support for different microservice frameworks is realized.
[0081] VI. The configuration center module uses Apollo (a distributed configuration center open-sourced by Ctrip) as the native middleware and is implemented by integrating the interfaces provided by Apollo. Its core role is the distribution of configurations. By maintaining a long connection communication with the built-in modules, after the configuration center obtains the governance configuration of a certain component from the configuration adaptation module, it forms a change information for that component. The built-in modules of the component obtain the change information of their own component's governance configuration in real time by polling the configuration center. To ensure second-level delivery, the configuration center should be deployed in the same computer room as the business system as much as possible during deployment to reduce the configuration delay caused by network transmission.
[0082] Those skilled in the art can understand this embodiment as a more specific illustration of Embodiment 1.
[0083] Those skilled in the art know that in addition to implementing the system and its various devices, modules, and units provided by the present invention in the form of pure computer-readable program code, the method steps can be logically programmed to enable the system and its various devices, modules, and units provided by the present invention to be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers, etc., to achieve the same functions. Therefore, the system and its various devices, modules, and units provided by the present invention can be regarded as a kind of hardware component, and the devices, modules, and units included therein for implementing various functions can also be regarded as the structures within the hardware component; the devices, modules, and units for implementing various functions can also be regarded as either software modules for implementing the method or structures within the hardware component.
[0084] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above specific implementation manners. Those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. Without conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A microservice control platform for one-stop service-oriented real-time dynamic governance, characterized in that, It includes an interaction interface, a management and control platform, a business system, a configuration adaptation module, and a configuration center module; The interaction interface is connected to the management and control platform for coordinated operation; the management and control platform is respectively connected to the business system and the configuration adaptation module for coordinated operation; the configuration adaptation module is connected to the configuration center module for coordinated operation; the configuration center module is connected to the business system for coordinated operation; The management and control platform includes an application governance module, a gateway governance module, and a registration center module; The registration center module maintains information related to the registration center components of the business system, communicates with the registration center components of the business system, obtains application instance information, performs instance online / offline management, and assists the application governance module and the gateway governance module in performing some governance functions; The application governance module provides setting functions including information management, instance online / offline, interface online / offline, instance traffic limiting, circuit breaker degradation, load balancing, and fault tolerance for each application within the business system; The gateway governance module performs configuration management on the service gateway of the business system, provides gateway instance online / offline, interface release authorization, subscriber management, routing setting, and setting functions at three granularities: global level, application level, and service level; The configuration center module maintains a long connection with the built-in module, solidifies the governance configuration pushed by the configuration adaptation module into the database and publishes configuration change information; After receiving the governance configuration transferred and issued by the configuration adaptation module, the configuration center module generates configuration change information. The built-in modules of the business application and the gateway establish a long connection with the configuration center, obtain the configuration change information in a polling manner, and update the locally cached governance configuration information incrementally; it provides functions for database solidification, distribution, and display of the transferred configuration information for the management and control platform; The built-in module endows the gateway and the application with diverse governance capabilities by integrating a series of open-source components, performing function expansion, and using reflection, proxy, and filter technologies; The built-in module has the ability to obtain configurations, interacts with the configuration center, and parses and hot-validates the latest governance configuration issued by the user in real time.
2. The microservice control platform for one-stop service-based real-time dynamic governance according to claim 1, characterized in that, The interaction interface includes a Web front end, a command-line tool, and a microservice management and control SDK; the Web front end, the command-line tool, and the microservice management and control SDK are three user interaction interfaces provided by the management and control platform, and users issue semantic governance policies through the interfaces.
3. The microservice control platform for one-stop service-based real-time dynamic governance according to claim 1, characterized in that, The registration center module communicates with the registration center deployed in the business system through the business system registration center information input by the user, obtains the registration component information and corresponding instance information of the business system, provides them for display by the user interaction interface, and provides application query and instance online / offline functions.
4. The microservice control platform for one-stop service-based real-time dynamic governance according to claim 1, wherein The business system includes multiple built-in modules; the built-in modules are basic class libraries built into the business system applications and gateways, integrating specific governance strategy functions and functions for pulling, parsing, and hot-loading configurations from the configuration center.
5. The microservice control platform for one-stop service-based real-time dynamic governance according to claim 1, characterized in that The configuration adaptation module performs governance configuration conversion and adaptation, converts the semantic configuration issued by the user into the governance configuration parsed by the built-in module, and communicates with the configuration center through the interface protocol, calling the relevant interfaces of the configuration center to change the governance configuration.
6. The microservice control platform for one-stop service-based real-time dynamic governance according to claim 5, wherein The configuration adaptation module undertakes the configuration escape work of the management and control platform, and the configuration adaptation module converts the configuration according to the specific design of the built-in module.
Citation Information
Patent Citations
Industrial Internet distributed system safety access control device
CN102487383A
Service governance component parameter configuration device and method
CN114237697A