Gateway management and control method, platform, device and equipment
The target relationship pairs are obtained and updated through the gateway management and control system, which solves the problem of high operation and maintenance complexity in multi-environment testing, and realizes efficient configuration rule management and data isolation, improving work efficiency and data security.
Patent Information
- Application Number
- CN202411346667.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2044-09-25
AI Technical Summary
In multi-environment testing strategies, the existing technology requires the deployment of multiple gateway management and control instances, which increases the operation and maintenance personnel's operation and hardware requirements, and it is difficult to achieve efficient configuration rule updates and data isolation.
The target relationship pair entered by the gateway management system is obtained through the gateway management system, the target configuration center is determined from multiple configuration centers based on the target attribute identification, and the target relationship pair is sent to the target configuration center. The gateway engine to be updated pulls from the target configuration center and updates the local configuration rules.
It realizes configuration rules that require only one gateway management system to manage different attribute information, reduces the operation complexity of operation and maintenance personnel, improves work efficiency, and improves data security and independence.
Smart Images

Figure CN119211014B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a gateway management and control method, platform, device, and equipment. Background Art
[0002] With the increasing complexity of software development and users' increasing demands for software quality, it is becoming increasingly important to adopt a multi-environment testing strategy (such as development environment, system integration test environment, production environment, etc.). This strategy can significantly improve software quality, stability, and reliability by testing software in different stages and environments.
[0003] In related technologies, independent or corresponding gateway management and control instances are deployed in different environments, and each instance manages the configuration rule data within its own environment to achieve data isolation.
[0004] However, when there are relatively many test environments, multiple gateway management and control instances need to be deployed. This requires users to provide multiple hardware environments, databases, etc. according to the test environment conditions. In addition, operation and maintenance personnel are required to switch to different login URLs according to different test environments, which greatly increases the difficulty of operation for operation and maintenance personnel. Summary of the Invention
[0005] The present disclosure provides a gateway management and control method, platform, device, and apparatus to at least partially address one of the technical issues in the related art. The technical solution of the present disclosure is as follows:
[0006] According to a first aspect of an embodiment of the present disclosure, a gateway management and control method is provided, which is applied to a gateway management and control platform, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines. The method includes:
[0007] Obtaining, through the gateway management and control system, a target relationship pair input by the user; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated;
[0008] Determining, by the gateway management and control system, a target configuration center from the multiple configuration centers based on the target attribute identifier in the target relationship pair, and sending the target relationship pair to the target configuration center;
[0009] Receiving the target relationship pair through the target configuration center, and waiting for the gateway engine to be updated to pull the target configuration rules in the target relationship pair;
[0010] In response to monitoring the target configuration rules from the target configuration center, the target configuration rules are pulled from the target configuration center by the to-be-updated gateway engine, and the local configuration rules are updated based on the pulled target configuration rules.
[0011] According to a second aspect of an embodiment of the present disclosure, a gateway management and control platform is provided, the gateway management and control platform including a gateway management and control system, multiple configuration centers, and multiple gateway engines, wherein:
[0012] The gateway management and control system is configured to obtain a target relationship pair input by a user, wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated, and based on the target attribute information in the target relationship pair, determine a target configuration center from the multiple configuration centers, and send the target relationship pair to the target configuration center;
[0013] The target configuration center is configured to receive the target relationship pair and wait for the gateway engine to be updated to pull the target configuration rules in the target relationship pair;
[0014] The gateway engine to be updated is used to pull the target configuration rules from the target configuration center in response to monitoring the target configuration rules from the target configuration center, and update the local configuration rules based on the pulled target configuration rules.
[0015] According to a third aspect of an embodiment of the present disclosure, a gateway management and control device is provided, which is applied to a gateway management and control platform, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines. The device includes:
[0016] An acquisition module, configured to acquire a target relationship pair input by a user through the gateway management and control system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated;
[0017] A first processing module is configured to determine, through the gateway management and control system, a target configuration center from the multiple configuration centers based on the target attribute identifier in the target relationship pair, and send the target relationship pair to the target configuration center;
[0018] A second processing module is configured to receive the target relationship pair through the target configuration center and wait for the gateway engine to be updated to pull the target configuration rule in the target relationship pair;
[0019] A pulling module, configured to, in response to monitoring a target configuration rule from the target configuration center, pull the target configuration rule from the target configuration center through the gateway engine to be updated;
[0020] An updating module is used to update the local configuration rules based on the pulled target configuration rules through the gateway engine to be updated.
[0021] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the gateway management and control method as described in the embodiment of the first aspect of the present disclosure.
[0022] According to the fifth aspect of the embodiment of the present disclosure, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of an electronic device, the electronic device can execute the gateway management and control method as described in the embodiment of the first aspect of the present disclosure.
[0023] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, including: a computer program, which, when executed by a processor, implements the gateway management and control method as described in the embodiment of the first aspect of the present disclosure.
[0024] The technical solutions provided by the embodiments of the present disclosure bring at least the following beneficial effects:
[0025] In this technical solution, a target relationship pair input by a user is obtained through the gateway management and control system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated; the gateway management and control system determines a target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship pair, and sends the target relationship pair to the target configuration center; the target configuration center receives the target relationship pair and waits for the gateway engine to be updated to pull the target configuration rule in the target relationship pair; in response to monitoring the target configuration rule from the target configuration center, the gateway engine to be updated pulls the target configuration rule from the target configuration center, and updates the local configuration rule based on the pulled target configuration rule. Therefore, only one gateway management and control system (i.e., gateway management and control instance) is needed to manage the target configuration rules corresponding to different attribute information, and the relevant staff only need to deploy it once in the gateway management and control system to update the configuration rules of the gateway engines with different attribute information. There is no need to frequently switch to log in to the gateway management and control system, which greatly reduces the operation complexity of the relevant staff and improves work efficiency. Furthermore, attribute information is used to isolate the target configuration rules of different gateway engines to achieve accurate distribution and accurate retrieval of target configuration rules, which can improve data security and independence between different environments.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0028] Figure 1 This is a flow chart of the gateway management and control method shown in the first embodiment of the present disclosure;
[0029] Figure 2 This is a flow chart of a gateway management and control method according to the second embodiment of the present disclosure;
[0030] Figure 3 is a flow chart of a gateway management and control method according to the third embodiment of the present disclosure;
[0031] Figure 4 Schematic diagram of the structure of the gateway management and control platform shown in the fourth embodiment of the present disclosure;
[0032] Figure 5 It is a schematic diagram of the structure of the gateway management and control platform provided by the present disclosure;
[0033] Figure 6 Schematic diagram of the structure of the gateway control device shown in the fifth embodiment of the present disclosure;
[0034] Figure 7 It is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0036] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0037] It should be noted that in the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are all carried out with the user's consent, and are in compliance with relevant laws and regulations and do not violate public order and good morals.
[0038] The following describes the gateway management and control method, platform, apparatus, and device according to the embodiments of the present disclosure with reference to the accompanying drawings.
[0039] Figure 1 It is a flowchart of the gateway management and control method shown in the first embodiment of the present disclosure.
[0040] It should be noted that the gateway management and control method disclosed herein is applied to a gateway management and control platform, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines.
[0041] like Figure 1 As shown, the gateway management and control method includes the following steps:
[0042] Step 101: Obtain the target relationship pair input by the user through the gateway management and control system.
[0043] The target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule.
[0044] The target attribute identifier is used to uniquely indicate the attribute information of the gateway engine to be updated, wherein the attribute information includes the specific usage environment, computer room, cluster, and business system of the corresponding gateway engine.
[0045] Specific usage environments may include, for example, a development environment (also known as Dev Environment (Develop Environment)), a system integration testing environment (also known as SIT Environment (System Integration Testing Environment)), and a production environment (also known as Pro Environment (Production Environment)).
[0046] Clusters include ingress gateway clusters, front-end gateway clusters, etc.
[0047] The business system may be, for example, a core business system, an Internet financial business system, etc., and this disclosure does not impose any restrictions on this.
[0048] As an example, assuming that the target attribute identifier is 1A2D, the attribute information of the gateway engine to be updated indicated by the target attribute identifier is: the environment is environment 1, the computer room is computer room A, the cluster is cluster 2, and the business system is business system D.
[0049] It should be noted that the examples of target attribute identifiers in the above examples are only exemplary. In actual applications, the target attribute identifiers may also be other, and this disclosure does not impose any limitation on this.
[0050] Among them, the target configuration rules can be used to update the local configuration rules of the gateway engine to be updated, wherein the target configuration rules may include the parameter type (such as integer, string, etc.) of the parameters in the data model of the corresponding gateway, verification rules (such as whether it is empty, whether it is unique), etc., and the present disclosure does not impose any restrictions on this.
[0051] It should be noted that users can pre-register their environments, computer rooms, clusters, and business systems with the gateway management and control system, and generate corresponding attribute identifiers based on the attribute information of each gateway engine. Therefore, in this disclosure, when a user needs to update the configuration of a gateway engine to be updated among multiple gateway engines, the user can select and determine the target attribute identifier corresponding to the attribute information of the gateway engine to be updated from the multiple attribute identifiers displayed on the gateway management and control system's display page, and enter the corresponding target configuration rule. In this way, the gateway management and control system can obtain the target relationship pair entered by the user.
[0052] It should also be noted that the number of target relationship pairs can be, but is not limited to, one, and this disclosure does not impose any restrictions on this.
[0053] In step 102, the gateway management and control system determines a target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship pair, and sends the target relationship pair to the target configuration center.
[0054] As an example, a correspondence between an attribute identifier and a configuration center can be pre-established and saved. Thus, in the present disclosure, after obtaining a target relationship pair, the gateway management and control system can query the correspondence based on the target attribute identifier in the target relationship pair to determine the target configuration center corresponding to the target attribute identifier. The target configuration center corresponding to the target attribute identifier can then be determined as the target configuration center. Furthermore, the target relationship pair can be sent to the target configuration center through the gateway management and control system.
[0055] Step 103: Receive the target relationship pair through the target configuration center, and wait for the gateway engine to be updated to pull the target configuration rules in the target relationship pair.
[0056] Step 104: In response to monitoring the target configuration rules from the target configuration center, the target configuration rules are pulled from the target configuration center by the to-be-updated gateway engine, and the local configuration rules are updated based on the pulled target configuration rules.
[0057] In the embodiment of the present disclosure, the target configuration center can be monitored by the gateway engine to be updated. Thus, when the target configuration rules are monitored from the target configuration center, the target configuration rules can be pulled from the target configuration center by the gateway engine to be updated, and the local configuration rules can be updated based on the pulled target configuration rules.
[0058] The gateway management method of the embodiment of the present disclosure obtains a target relationship pair input by a user through a gateway management system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated; the gateway management system determines a target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship pair, and sends the target relationship pair to the target configuration center; the target configuration center receives the target relationship pair and waits for the gateway engine to be updated to pull the target configuration rule in the target relationship pair; in response to monitoring the target configuration rule from the target configuration center, the gateway engine to be updated pulls the target configuration rule from the target configuration center, and updates the local configuration rule based on the pulled target configuration rule. Thus, only one gateway management system (i.e., a gateway management instance) is required to manage the target configuration rules corresponding to different attribute information, and the relevant staff only needs to deploy once in the gateway management system to update the configuration information of the gateway engines with different attribute information, without frequently switching to log in to the gateway management system, which greatly reduces the operation complexity of the relevant staff and improves work efficiency.
[0059] In the case where there is at least one target relationship, in order to clearly illustrate how the gateway management and control system determines the target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship in the above embodiment of the present disclosure, the present disclosure also proposes a gateway management and control method.
[0060] Figure 2 It is a flow chart of the gateway management and control method shown in the second embodiment of the present disclosure.
[0061] like Figure 2 As shown, the gateway management and control method includes the following steps:
[0062] Step 201: Obtain the target relationship pair input by the user through the gateway management and control system.
[0063] It should be noted that the execution process of step 201 can refer to the execution process of any embodiment of the present disclosure and will not be described in detail here.
[0064] Step 202: For any target relationship pair, the gateway management and control system determines target attribute information based on the target attribute identifier in the target relationship pair.
[0065] It can be understood that the correspondence between the attribute identifier and the attribute information can be established in advance and the above correspondence can be saved. Therefore, in the present disclosure, the gateway management and control system can query the above correspondence based on the target attribute information in the target relationship to determine the target attribute information indicated by the target attribute identifier.
[0066] Step 203: extract target attribute information through the gateway management and control system to obtain target key information.
[0067] As a possible implementation manner, the target key information may include at least one of a specific usage environment, a corresponding computer room, and a corresponding cluster.
[0068] As an example, assuming that the specific usage environment of the gateway engine corresponding to the target attribute information is environment 1, the computer room it belongs to is computer room 2, the cluster it belongs to is cluster 3, and the business system it belongs to is business system 1, and the target key information includes the specific usage environment, then the target attribute information is extracted through the gateway management and control system, and the target key information can be extracted from the above target attribute information as "environment 1". For another example, assuming that the target key information includes the computer room it belongs to, then the target attribute information is extracted through the gateway management and control system, and the target key information can be extracted from the above target attribute information as "computer room 2".
[0069] In step 204, the gateway management and control system determines a target configuration center that matches the target relationship from multiple configuration centers based on the target key information.
[0070] In an embodiment of the present disclosure, the correspondence between the target key information and the configuration center can be established and saved in advance in response to the user's operation. Thus, after the target key information is obtained through the gateway management and control system, the above correspondence can be queried based on the target key information through the gateway management and control system to determine the configuration center corresponding to the target key information from multiple configuration centers, and determine the configuration center corresponding to the target key information as the target configuration center that matches the target relationship.
[0071] As an example, assuming that the target key information includes specific usage environments, the specific usage environments include environment 1, environment 2, environment 3, and environment 4, and the configuration centers include configuration center 1, configuration center 2, configuration center 3, configuration center 4, and configuration center 5, in response to user operations, the correspondence between the environments and configuration centers is pre-established and saved as shown in Table 1:
[0072] Table 1 Correspondence between environments and configuration centers
[0073] Specific usage environment Configuration center corresponding to the specific usage environment Environment 1 Configuration Center 2 Environment 2 Configuration Center 4 Environment 3 Configuration Center 1 Environment 4 Configuration Center 5
[0074] After obtaining the specific usage environment as environment 3 through the gateway management and control system, based on the correspondence in environment 3 query table 1, the configuration center corresponding to environment 3 is determined from multiple configuration centers as configuration center 1, and configuration center 1 is determined to be the target configuration center that matches the gateway engine to be updated.
[0075] Step 205: Send the target relationship pair to the target configuration center through the gateway management and control system.
[0076] Step 206: Receive the target relationship pair through the target configuration center, and wait for the gateway engine to be updated to pull the target configuration rules in the target relationship pair.
[0077] Step 207: Pull the target configuration rules from the target configuration center through the gateway engine to be updated, and update the local configuration rules based on the corresponding target configuration rules.
[0078] It should be noted that the execution process of steps 205 to 207 can refer to the execution process of any embodiment of the present disclosure and will not be described in detail here.
[0079] Optionally, when there is at least one target relationship pair and correspondingly, there is at least one gateway engine to be updated, in order to accurately pull the corresponding target configuration rule, in a possible implementation method of the embodiment of the present disclosure, for any gateway engine to be updated, in response to monitoring the corresponding target configuration center to obtain at least one target relationship pair, the gateway engine to be updated can determine whether there is a first relationship pair that matches the attribute information in the at least one target relationship pair based on the corresponding attribute information; when there is a first relationship pair that matches the attribute information in the at least one target relationship pair, the gateway engine to be updated can obtain the target configuration rule corresponding to the gateway engine to be updated from the first relationship pair.
[0080] It is understood that any gateway engine can have a corresponding configuration center and can monitor the corresponding configuration center to monitor whether the corresponding configuration center obtains the relationship pair for configuration update. Therefore, in the present disclosure, for any gateway engine to be updated, the corresponding target configuration center can be monitored to monitor whether the corresponding target configuration center obtains the target relationship pair.
[0081] It should also be noted that when there is at least one target relationship pair, the target relationship pair acquired by any target configuration center may be, but is not limited to, one, and this disclosure does not impose any restrictions on this.
[0082] In an embodiment of the present disclosure, for any gateway engine to be updated, when the corresponding target configuration center is monitored to obtain at least one target relationship pair, the gateway engine to be updated can determine whether there is a first relationship pair that matches the attribute information in the at least one target relationship pair based on its corresponding attribute information. When there is a first relationship pair that matches its attribute information in the at least one target relationship pair, the gateway engine to be updated obtains the target configuration rule corresponding to the gateway engine to be updated from the first relationship pair.
[0083] As an example, for any gateway engine to be updated, when the corresponding target configuration center is monitored to obtain at least one target relationship pair, the gateway engine to be updated can determine the first attribute identifier of the gateway engine to be updated based on its corresponding attribute information, and based on the first attribute identifier, query at least one target relationship pair to determine whether there is a first relationship pair that matches the first attribute identifier in at least one target relationship pair. Therefore, when there is a first relationship pair that matches the first attribute identifier in at least one target relationship pair, the gateway engine to be updated obtains the target configuration rule corresponding to the gateway engine to be updated from the first relationship pair.
[0084] For example, assuming that gateway engine A is the gateway engine to be updated, the target relationship pairs obtained by the target configuration center corresponding to gateway engine A include relationship pair 1 and relationship pair 2. For gateway engine A, when it is monitored that the target configuration center corresponding to gateway engine A obtains at least one target relationship pair, gateway engine A can determine the first attribute identifier corresponding to gateway engine A based on its corresponding attribute information, and query the above-mentioned relationship pair 1 and relationship pair 2 based on the first attribute identifier to determine whether there is a first relationship pair with the same first attribute identifier in relationship pair 1 and relationship pair 2; when there is a first relationship pair with the same first attribute identifier in relationship pair 1 and relationship pair 2, that is, relationship pair 2, the target configuration rule corresponding to the gateway engine to be updated can be obtained from the first relationship pair, that is, the target configuration rule in relationship pair 2 is determined as the target configuration rule corresponding to the gateway engine to be updated.
[0085] Therefore, attribute information is used to isolate the configuration rules of different gateway engines and accurately pull the configuration rules, which can improve the data security and independence between different environments.
[0086] The gateway management and control method of the disclosed embodiment determines target attribute information for any target relationship pair based on the target attribute identifier in the target relationship pair through the gateway management and control system; extracts target attribute information through the gateway management and control system to obtain target key information; and determines, based on the target key information, a target configuration center that matches the target relationship pair from multiple configuration centers through the gateway management and control system. Thus, by extracting the target key information, the target configuration center that matches the target relationship pair, i.e., the target configuration center that matches the gateway engine to be updated, can be quickly found based on the target key information, facilitating the accurate delivery of configuration rules in subsequent applications.
[0087] It is understandable that after the updated gateway engine pulls the target configuration rules from the target configuration center, it needs to load the target configuration rules into the corresponding database. Since the database and the configuration center are independent of each other, the configuration center cannot perceive whether the target configuration rules have been loaded into the corresponding database. When the updated gateway engine fails to pull the corresponding target configuration rules, it may cause omissions or errors in the configuration update, resulting in inconsistencies between the database and the configuration center data. In order to improve the accuracy and reliability of configuration updates and avoid omissions in configuration updates, the present disclosure also proposes a gateway management and control method.
[0088] Figure 3 It is a flow chart of the gateway management and control method shown in the third embodiment of the present disclosure.
[0089] like Figure 3 As shown, based on any embodiment of the present disclosure, the gateway management and control method further includes the following steps:
[0090] Step 301 : In any statistical period of a set number of statistical periods, a judgment module in the gateway management and control platform performs a first statistical analysis on at least one target relationship pair input by the user to obtain a first quantity.
[0091] The set number may be pre-set, such as 1, 2, 3, etc., and the present disclosure does not impose any limitation on this.
[0092] The duration of the statistical period may be pre-set, such as 2ms, 4ms, etc., and this disclosure does not impose any limitation on this.
[0093] In an embodiment of the present disclosure, after the target relationship pairs are sent to the target configuration center through the gateway management and control system, the target relationship pairs input by the user can be counted through the judgment module in the gateway management and control platform in any statistical period of a set number of statistical periods to obtain a first quantity.
[0094] Step 302: The judgment module performs second statistics on the to-be-updated gateway engines that have pulled the target configuration rules to obtain a second number.
[0095] In the embodiment of the present disclosure, the judgment module may also count the gateway engines to be updated that have pulled the target configuration rules, that is, count the number of gateway engines to be updated that have pulled the target configuration rules, thereby obtaining the second number.
[0096] Step 303: The judgment module determines whether the data in the database and the configuration center are consistent in the statistical period based on the first quantity and the second quantity.
[0097] As an example, when the first number and the second number are the same, the judgment module can determine that the data of the gateway management and control platform is consistent during the statistical period; on the contrary, when the first number and the second number are different, the judgment module can determine that the data of the database and the configuration center are inconsistent during the statistical period.
[0098] It is understandable that there may be a situation where the data in the database and the configuration center are inconsistent in each statistical period. At this time, as a possible implementation method, when the data in the database and the configuration center are inconsistent in each statistical period, the judgment module can generate a notification message and send the notification message to the updated gateway engine that has pulled the corresponding target configuration rules to inform it to stop loading the target configuration rules.
[0099] The gateway management and control method of the disclosed embodiment involves, during any of a set number of statistical periods, using a judgment module to perform a first statistical analysis on at least one target relationship pair input by a user to obtain a first number; performing a second statistical analysis on the to-be-updated gateway engines that have pulled target configuration rules, using the judgment module to obtain a second number; and determining, based on the first and second numbers, whether the database and the configuration center have consistent data during the statistical period using the judgment module. This ensures data consistency between the database and the configuration center, maintains the accuracy and reliability of configuration updates, and effectively prevents information omissions during the configuration update process.
[0100] In order to implement the above embodiments, the present disclosure also proposes a gateway management and control platform.
[0101] Figure 4 This is a schematic diagram of the structure of the gateway management and control platform provided in the fourth embodiment of the present disclosure.
[0102] like Figure 4 As shown, the gateway management and control platform 400 includes a gateway control system 410, multiple configuration centers 420 and multiple gateway engines 430. Among them:
[0103] The gateway management and control system is used to obtain the target relationship pair input by the user, wherein the target relationship pair is the relationship pair between the target attribute identifier and the target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated, and based on the target attribute identifier in the target relationship pair, determine the target configuration center from multiple configuration centers, and send the target relationship pair to the target configuration center.
[0104] The target configuration center is used to receive target relationship pairs and wait for the updated gateway engine to pull the target configuration rules in the target relationship pairs.
[0105] The gateway engine to be updated is used to pull the target configuration rules from the target configuration center in response to monitoring the target configuration rules from the target configuration center, and update the local configuration rules based on the pulled target configuration rules.
[0106] It should be noted that the explanation of the gateway control method in any of the above embodiments is also applicable to this embodiment, and the implementation principles are similar, so they will not be repeated here.
[0107] It should be noted here that the gateway management and control platform provided in the embodiment of the present disclosure can realize all the functions realized by the gateway management and control method in any of the above embodiments, and can achieve the same technical effects. The parts and beneficial effects of this embodiment that are the same as those in the method embodiment will not be described in detail here.
[0108] In order to more clearly understand the gateway management and control method disclosed herein, a detailed description is given below with reference to examples.
[0109] As an example, Figure 5 This is a structural diagram of the gateway management and control platform provided by the present disclosure in multiple environments, multiple clusters and multiple business systems, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines, wherein any gateway engine has a corresponding usage environment, cluster, and business system.
[0110] Applying the gateway management and control method disclosed in this disclosure to Figure 5 The gateway management and control platform shown, specifically:
[0111] Step 1: In response to the administrator's operation, the information of the environment (such as development environment, system integration test environment, production environment, etc.), cluster (entry gateway cluster, front-end gateway cluster, etc.), and business system (core business system, Internet financial business system, etc.) is registered (or registered) to the gateway management and control system. Among them, any set of environments has a corresponding configuration center, that is, a corresponding relationship between the environment and the configuration center can be established.
[0112] It should be noted that the configuration centers corresponding to any two environments may be the same or different. For example, assuming there are environment 1 and environment 2, the configuration center corresponding to environment 1 may be the same as the configuration center corresponding to environment 2, or the configuration center corresponding to environment 1 may be different from the configuration center corresponding to environment 2. This disclosure does not impose any restrictions on this.
[0113] It should also be noted that the present disclosure does not limit the objects (referred to as target key information in the present disclosure) that establish a corresponding relationship with the configuration center. For example, clusters, computer rooms, etc. can also be used to establish a corresponding relationship between them and the configuration center.
[0114] Step 2: The gateway management and control system can receive the target relationship pair input by the operation and maintenance personnel in its display interface, where the target relationship pair includes a target attribute identifier and a target configuration rule. The target attribute identifier is used to indicate the attribute information of the gateway engine to be updated. The attribute information includes the specific usage environment, the cluster to which it belongs, and the business system to which it belongs. The target configuration rule is used to update the local configuration rules of the gateway engine to be updated.
[0115] Among them, the display interface can display attribute identifiers, where the attribute identifiers are used to indicate the attribute information of the corresponding gateway engine. The operation and maintenance personnel can select and determine the target attribute identifier corresponding to the gateway engine to be updated based on the attribute identifiers displayed on the display page, and enter the target configuration rules corresponding to the gateway engine to be updated.
[0116] In this way, it is possible to manage and maintain the configuration or input of the target configuration rules of the gateway engine under different attribute information with one login, and to display the data of different environments in isolation through attribute identification (or data identification), which is convenient for user operation.
[0117] Step 3: The gateway management and control system determines the target configuration center that matches the target relationship pair from multiple configuration centers based on the target attribute identifier in the target relationship pair, and sends the target relationship pair to the corresponding target configuration center.
[0118] Step 4: After the corresponding target configuration center receives the corresponding configuration update information, in response to the gateway engine to be updated monitoring the data changes in the corresponding target configuration center, the gateway engine to be updated pulls the corresponding target configuration rules from the corresponding target configuration center based on the corresponding attribute information, and updates the local configuration rules based on the pulled target configuration rules.
[0119] It should be noted that since the configuration center and the database are independent of each other, data consistency between the configuration center and the database needs to be ensured.
[0120] Therefore, in a possible implementation of the present disclosure, the gateway management and control platform may further include a judgment module, wherein the judgment module is used to: perform a first statistics on at least one target correspondence input by the user in any statistical period of a set number of statistical periods to obtain a first quantity; perform a second statistics on the gateway engine to be updated that has pulled the target configuration rules to obtain a second quantity; based on the first quantity and the second quantity, determine whether the data in the database and the configuration center are consistent in the statistical period.
[0121] As can be seen from the above, the gateway control method disclosed in this disclosure mainly adopts the following technical means:
[0122] 1. The data dimensions are divided into four dimensions: computer room, business system, cluster, and environment. The target configuration rules of the gateway management and control system can isolate data through these four dimensions. Users can use dimension parameters (recorded as attribute identifiers in this disclosure) to achieve unified management of different target configuration rules.
[0123] 2. When sending target configuration rules to the configuration center, the gateway management and control system can send the target configuration rules to the configuration center that matches the gateway engine to be updated (or the target relationship pair) based on at least one of the specific usage environment, the computer room to which it belongs, and the cluster to which it belongs. The configuration center can also implement data isolation for the target configuration rules based on dimensional parameters.
[0124] 3. Any gateway engine can pull the corresponding target configuration rules from the corresponding configuration center based on dimension parameters.
[0125] The gateway control method disclosed in this disclosure can embody the following advantages:
[0126] 1. Isolating target configuration rules through four dimensions greatly reduces the operational complexity of operation and maintenance personnel. Operation and maintenance personnel do not need to frequently switch login systems, thereby improving their work efficiency.
[0127] 2. By isolating data at the business system, environment, computer room, and cluster levels, we achieve the isolation of business systems, environments, computer rooms, and other data in non-production environments. Compared to traditional data isolation methods, this data isolation method is more flexible and efficient, effectively protecting the security of important application business data.
[0128] 3. Users only need to deploy once in the gateway management and control system. That means users can deploy configuration updates for multiple gateway engines at once according to different business scenarios, thereby implementing business data calls, greatly reducing operational complexity and time costs. At the same time, the gateway management and control system can accurately send target configuration rules to the corresponding gateway engines.
[0129] 4. Isolate target configuration rules through four dimensions, reducing the consumption of server hardware resources.
[0130] Corresponding to the gateway control method provided in the above embodiment, the present disclosure also provides a gateway control device. Since the gateway control device provided in the embodiment of the present disclosure corresponds to the gateway control method provided in the above embodiment, the implementation method of the gateway control method is also applicable to the gateway control device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.
[0131] Figure 6 It is a structural diagram of the gateway control device shown in the fifth embodiment of the present disclosure.
[0132] like Figure 6 As shown, the gateway management and control device 600 includes: an acquisition module 610, a first processing module 620, a second processing module 630, a pulling module 640 and an updating module 650.
[0133] Among them, the acquisition module 610 is used to obtain the target relationship pair input by the user through the gateway management and control system; wherein, the target relationship pair is the relationship pair between the target attribute identifier and the target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rules of the gateway engine to be updated.
[0134] The first processing module 620 is configured to determine a target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship pair through the gateway management and control system, and send the target relationship pair to the target configuration center.
[0135] The second processing module 630 is configured to receive the target relationship pair through the target configuration center, and wait for the gateway engine to be updated to pull the target configuration rules in the target relationship pair.
[0136] The pulling module 640 is configured to pull the target configuration rules from the target configuration center through the to-be-updated gateway engine in response to monitoring the target configuration rules from the target configuration center.
[0137] The updating module 650 is configured to update the local configuration rules based on the pulled target configuration rules through the gateway engine to be updated.
[0138] As a possible implementation method of the embodiment of the present disclosure, there is at least one target relationship pair; the first processing module 620 is used to: for any target relationship pair, determine the target attribute information based on the target attribute identifier in the target relationship pair through the gateway management and control system; extract the target attribute information through the gateway sensing control system to obtain target key information; determine the target configuration center that matches the target relationship pair from multiple configuration centers based on the target key information through the gateway management and control system.
[0139] As a possible implementation manner of the embodiment of the present disclosure, the target key information includes at least one of a specific usage environment, a computer room, and a cluster.
[0140] As a possible implementation of the embodiment of the present disclosure, there is at least one target relationship pair, and the gateway management and control device 600 may further include:
[0141] The first statistical module is used to perform first statistics on at least one target relationship pair input by the user through the judgment module in the gateway management and control platform in any statistical period of a set number of statistical periods to obtain a first quantity.
[0142] The second statistical module is used to perform second statistics on the to-be-updated gateway engines that have pulled the target configuration rules through the judgment module to obtain a second number.
[0143] The third processing module is used to determine whether the data in the database and the configuration center are consistent in the statistical period based on the first quantity and the second quantity through the judgment module.
[0144] As a possible implementation method of the embodiment of the present disclosure, the third processing module is used to: in response to the first quantity and the second quantity being the same, determine through the judgment module that the data of the database and the configuration center are consistent in the statistical period; in response to the first quantity and the second quantity being different, determine through the judgment module that the data of the database and the configuration center are inconsistent in the statistical period.
[0145] As a possible implementation of the embodiment of the present disclosure, the gateway management and control device 600 may further include:
[0146] The fourth processing module is used to generate notification information through the judgment module in response to the data inconsistency between the database and the configuration center in each statistical period, and send the notification information to the gateway engine to be updated that has pulled the target configuration rules to inform it to stop loading the target configuration rules.
[0147] As a possible implementation of the embodiment of the present disclosure, there is at least one target relationship pair, and correspondingly, there is at least one gateway engine to be updated; the pulling module 640 is used to: for any gateway engine to be updated, in response to monitoring the corresponding target configuration center to obtain at least one target relationship pair, determine, by the gateway engine to be updated based on the corresponding attribute information, whether there is a first relationship pair that matches the attribute information in the at least one target relationship pair; in response to the presence of the first relationship pair that matches the attribute information in the at least one target relationship pair, obtain, by the gateway engine to be updated, the target configuration rule corresponding to the gateway engine to be updated from the first relationship pair.
[0148] The gateway control device of the embodiment of the present disclosure obtains a target relationship pair input by a user through a gateway control system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated; the gateway control system determines a target configuration center from multiple configuration centers based on the target attribute identifier in the target relationship pair, and sends the target relationship pair to the target configuration center; receives the target relationship pair through the target configuration center, and waits for the gateway engine to be updated to pull the target configuration rule in the target relationship pair; in response to monitoring the target configuration rule from the target configuration center, the gateway engine to be updated pulls the target configuration rule from the target configuration center, and updates the local configuration rule based on the pulled target configuration rule. Thus, only one gateway control system (i.e., a gateway control instance) is required to manage the target configuration rules corresponding to different attribute information, and the relevant staff only needs to deploy once in the gateway control system to update the configuration information of the gateway engines with different attribute information, without frequently switching to log in to the gateway control system, which greatly reduces the operation complexity of the relevant staff and improves work efficiency.
[0149] In an exemplary embodiment, an electronic device is also provided.
[0150] Among them, electronic equipment includes:
[0151] processor;
[0152] a memory for storing processor-executable instructions;
[0153] The processor is configured to execute instructions to implement the gateway management and control method proposed in any of the aforementioned embodiments.
[0154] As an example, Figure 7 is a structural diagram of an electronic device 700 shown in an exemplary embodiment of the present disclosure, such as Figure 7 As shown, the electronic device 700 may further include:
[0155] The memory 710 and the processor 720, a bus 730 connecting different components (including the memory 710 and the processor 720), the memory 710 stores a computer program, and when the processor 720 executes the program, the gateway management and control method described in the embodiment of the present disclosure is implemented.
[0156] Bus 730 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0157] The electronic device 700 typically includes a variety of electronic device-readable media, which can be any available media that can be accessed by the electronic device 700, including volatile and non-volatile media, removable and non-removable media.
[0158] The memory 710 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 740 and / or cache memory 750. The server 700 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 760 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 Not shown, often called a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 730 via one or more data medium interfaces. Memory 710 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present disclosure.
[0159] A program / utility 780 having a set (at least one) of program modules 770 may be stored, for example, in memory 710. Such program modules 770 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 770 generally implement the functions and / or methods of the embodiments described herein.
[0160] The electronic device 700 can also communicate with one or more external devices 790 (e.g., a keyboard, a pointing device, a display 791, etc.), one or more devices that enable a user to interact with the electronic device 700, and / or any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication can occur via an input / output (I / O) interface 792. Furthermore, the electronic device 700 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 793. As shown, the network adapter 793 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 700, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0161] The processor 720 executes various functional applications and data processing by running the programs stored in the memory 710.
[0162] It should be noted that the implementation process and technical principles of the electronic device of this embodiment can be found in the above explanation of the gateway management and control method of the embodiment of the present disclosure, and will not be repeated here.
[0163] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions. The instructions can be executed by a processor of an electronic device to implement the gateway management and control method proposed in any of the above embodiments. Alternatively, the computer-readable storage medium can be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0164] In an exemplary embodiment, a computer program product is further provided, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the gateway management and control method proposed in any of the above embodiments is implemented.
[0165] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0166] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A gateway management and control method, characterized in that: Applied to a gateway management and control platform, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines, the method includes: Obtaining a target relationship pair input by the user through the gateway management and control system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate attribute information of the gateway engine to be updated, the attribute information includes the specific usage environment, the computer room, the cluster, and the business system of the corresponding gateway engine, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated. There is at least one target relationship pair, and the target relationship pair is obtained by the user selecting and determining the target attribute identifier corresponding to the attribute information of the gateway engine to be updated from multiple attribute identifiers displayed on the display page of the gateway management and control system, and entering the corresponding target configuration rule; For any of the target relationship pairs, determining target attribute information based on the target attribute identifier in the target relationship pair by the gateway management and control system; Extracting target attribute information through the gateway management and control system to obtain target key information; Determining, by the gateway management and control system, a target configuration center that matches the target relationship pair from the multiple configuration centers based on the target key information; Sending the target relationship pair to the target configuration center; Receiving the target relationship pair through the target configuration center, and waiting for the gateway engine to be updated to pull the target configuration rules in the target relationship pair; In response to monitoring the target configuration rules from the target configuration center, the target configuration rules are pulled from the target configuration center by the to-be-updated gateway engine, and the local configuration rules are updated based on the pulled target configuration rules.
2. The method according to claim 1, characterized in that The target key information includes at least one of a specific usage environment, a computer room, and a cluster.
3. The method according to claim 1, characterized in that The gateway management and control platform further includes a judgment module, wherein the target relationship pair is at least one; After sending the target relationship pair to the target configuration center through the gateway management and control system, the method further includes: In any of the statistical periods of the set number of statistical periods, the judgment module performs a first statistical analysis on the at least one target relationship pair input by the user to obtain a first quantity; Performing a second count of the to-be-updated gateway engines that have pulled the target configuration rules by the judgment module to obtain a second number; The judgment module determines whether the data in the database and the configuration center are consistent in the statistical period based on the first number and the second number.
4. The method according to claim 3, characterized in that The determining module determines whether the data in the database and the configuration center are consistent during the statistical period based on the first number and the second number, including: In response to the first number and the second number being the same, determining, by the judgment module, that the data in the database and the configuration center are consistent in the statistical period; In response to the first number and the second number being different, the judgment module determines that the data in the database and the configuration center are inconsistent in the statistical period.
5. The method according to claim 4, characterized in that The method further comprises: In response to the data inconsistency between the database and the configuration center in each statistical period, a notification message is generated by the judgment module, and the notification message is sent to the gateway engine to be updated that has pulled the target configuration rule to inform the engine to stop loading the configuration rule.
6. The method according to any one of claims 1 to 5, characterized in that: There is at least one target relationship pair, and correspondingly, there is at least one gateway engine to be updated; In response to monitoring a target configuration rule from the target configuration center, pulling the target configuration rule from the target configuration center by the to-be-updated gateway engine includes: For any of the to-be-updated gateway engines, in response to monitoring the corresponding target configuration center to obtain at least one of the target relationship pairs, determining, by the to-be-updated gateway engine based on the corresponding attribute information, whether there is a first relationship pair in the at least one target relationship pair that matches the attribute information; In response to a first relationship pair matching the attribute information existing in the at least one target relationship pair, the target configuration rule corresponding to the gateway engine to be updated is acquired from the first relationship pair by the gateway engine to be updated.
7. A gateway management and control platform, characterized in that: The gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines, wherein: The gateway management and control system is used to obtain a target relationship pair input by a user, wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, the target attribute identifier is used to indicate the attribute information of the gateway engine to be updated, the attribute information includes the specific usage environment, the computer room, the cluster and the business system of the corresponding gateway engine, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated. There is at least one target relationship pair, and the target relationship pair is obtained by the user selecting and determining the target attribute identifier corresponding to the attribute information of the gateway engine to be updated from multiple attribute identifiers displayed on the display page of the gateway management and control system, and inputting the corresponding target configuration rule; for any of the target relationship pairs, the gateway management and control system determines the target attribute information based on the target attribute identifier in the target relationship pair; the gateway management and control system extracts information from the target attribute information to obtain target key information; the gateway management and control system determines the target configuration center that matches the target relationship pair from the multiple configuration centers based on the target key information; and sends the target relationship pair to the target configuration center; The target configuration center is configured to receive the target relationship pair and wait for the gateway engine to be updated to pull the target configuration rules in the target relationship pair; The gateway engine to be updated is used to pull the target configuration rules from the target configuration center in response to monitoring the target configuration rules from the target configuration center, and update the local configuration rules based on the pulled target configuration rules.
8. A gateway control device, characterized in that: Applied to a gateway management and control platform, wherein the gateway management and control platform includes a gateway management and control system, multiple configuration centers, and multiple gateway engines, and the device includes: An acquisition module is configured to acquire a target relationship pair input by a user through the gateway management and control system; wherein the target relationship pair is a relationship pair between a target attribute identifier and a target configuration rule, wherein the target attribute identifier is used to indicate attribute information of the gateway engine to be updated, wherein the attribute information includes the specific usage environment, computer room, cluster, and business system of the corresponding gateway engine, and the target configuration rule is used to update the local configuration rule of the gateway engine to be updated. There is at least one target relationship pair, and the target relationship pair is obtained by the user selecting and determining the target attribute identifier corresponding to the attribute information of the gateway engine to be updated from multiple attribute identifiers displayed on the display page of the gateway management and control system, and inputting the corresponding target configuration rule; The first module is configured to determine, for any target relationship pair, target attribute information based on the target attribute identifier in the target relationship pair through the gateway management and control system; extract information from the target attribute information through the gateway management and control system to obtain target key information; determine, through the gateway management and control system, a target configuration center that matches the target relationship pair from the multiple configuration centers based on the target key information; and send the target relationship pair to the target configuration center; A second processing module is configured to receive the target relationship pair through the target configuration center and wait for the gateway engine to be updated to pull the target configuration rule in the target relationship pair; A pulling module, configured to, in response to monitoring a target configuration rule from the target configuration center, pull the target configuration rule from the target configuration center through the gateway engine to be updated; An updating module is used to update the local configuration rules based on the pulled target configuration rules through the gateway engine to be updated.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Configuration method and equipment of acquisition gateway
CN111092774A