Information checking method and device, electronic equipment and computer readable storage medium
By responding to business change operations in a distributed system, determining the business call type, and verifying information, the problem of unreasonable service configuration is solved, and efficient and accurate business configuration governance is achieved.
Patent Information
- Application Number
- CN202310261301.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2043-03-14
AI Technical Summary
In existing technologies, the service configuration governance of distributed systems suffers from problems such as unreasonable or incorrect parameter values, which makes it impossible to guarantee the efficiency and accuracy of service configuration.
An information verification method is provided, which determines the business call type by responding to business change operations, obtains business configuration information under the first-level call, and verifies the business configuration value using predetermined verification rules, including threshold, regular expression and compliance verification, to ensure the accuracy of the information verification results.
It improves the efficiency and accuracy of information verification, ensures the accuracy of business configuration governance, reduces the risk of parameter configuration errors, and enhances the efficiency of service configuration governance.
Smart Images

Figure CN116226236B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, the technical field of data processing and the field of finance, and more particularly, to an information verification method and device, an electronic device, a computer readable storage medium and a computer program product. BACKGROUND
[0002] With the development of computer technology, a distributed system (Distributed Database System, DDBS) emerges as the times require.
[0003] The distributed system can refer to a loosely coupled system formed by multiple processors interconnected through communication lines. The distributed system can run multiple distributed application programs. How to provide consistent service configuration governance for multiple distributed application programs is a problem to be solved.
[0004] In the process of implementing the present disclosure, the inventors found that at least the following problems exist in the related art: Since service governance is usually based on the architecture level, there is a problem of unreasonable or incorrect parameter value configuration, which further leads to the inability to guarantee the efficiency and accuracy of service configuration governance. SUMMARY
[0005] Therefore, the present disclosure provides an information verification method and device, an electronic device, a computer readable storage medium and a computer program product.
[0006] According to one aspect of the present disclosure, an information verification method is provided, comprising:
[0007] In response to receiving a service configuration request corresponding to a service change operation, in the case that a service change type in the service configuration request is a node addition operation, determining a service call type corresponding to the service change operation;
[0008] In the case that the service call type is a first-level call, obtaining service configuration information corresponding to the service change operation, wherein the service configuration information comprises at least one service configuration name and a service configuration value corresponding to each of the at least one service configuration name; and
[0009] According to the at least one service configuration name, the service configuration values corresponding to each of the at least one service configuration name are verified respectively to obtain an information verification result.
[0010] According to the embodiments of the present disclosure, the service change type further comprises a node deletion operation and a node modification operation, and the service call type further comprises an N-level call, N being a positive integer greater than 1.
[0011] According to an embodiment of the present disclosure, the information verification method further includes:
[0012] In a case where the service change type in the service configuration request is any one of the node deletion operation and the node modification operation, determining the information verification result indicating that the service configuration information verification is passed; and
[0013] In a case where the service invocation type is the Nth-level invocation, determining the information verification result indicating that the service configuration information verification is passed.
[0014] According to an embodiment of the present disclosure, in response to receiving the service configuration request corresponding to the service change operation, in a case where the service change type in the service configuration request is the node addition operation, the service invocation type corresponding to the service change operation includes:
[0015] In response to receiving the service configuration request, determining the service change type according to the service configuration request;
[0016] In a case where the service change type is the node addition operation, determining address information corresponding to the service change operation, wherein the address information includes path information; and
[0017] Determining the service invocation type according to the path information.
[0018] According to an embodiment of the present disclosure, the address information further includes domain name information.
[0019] According to an embodiment of the present disclosure, in a case where the service invocation type is the first-level invocation, the service configuration information corresponding to the service change operation includes:
[0020] In a case where the service invocation type is the first-level invocation, sending an information acquisition request to a target distributed application coordination service corresponding to the domain name information according to the domain name information;
[0021] Receiving original service configuration information from the target distributed application coordination service; and
[0022] Determining the service configuration information according to the original service configuration information.
[0023] According to an embodiment of the present disclosure, the determining the service configuration information according to the original service configuration information includes:
[0024] Performing character matching on the original service configuration information according to a first predetermined character to obtain at least one service configuration key-value pair; and
[0025] for each of the at least one service configuration key-value pair,
[0026] According to the second predetermined character, character matching is performed on the service configuration key-value pair to obtain a service configuration name and a service configuration value corresponding to the service configuration key-value pair.
[0027] According to an embodiment of the present disclosure, the information verification result is obtained by performing verification on the service configuration values corresponding to the at least one service configuration name respectively according to the at least one service configuration name.
[0028] for each of the at least one service configuration name,
[0029] According to the service configuration name, a predetermined verification rule corresponding to the service configuration name is determined;
[0030] According to the predetermined verification rule, verification is performed on the service configuration value corresponding to the service configuration name to obtain a sub-verification result; and
[0031] The information verification result is determined according to the sub-verification results corresponding to the at least one service configuration name respectively.
[0032] According to an embodiment of the present disclosure, the predetermined verification rule includes at least one of a threshold verification rule, a regular verification rule, and a compliance verification rule.
[0033] According to an embodiment of the present disclosure, in the case where the predetermined verification rule is a threshold verification rule, the verification on the service configuration value corresponding to the service configuration name according to the predetermined verification rule to obtain a sub-verification result includes:
[0034] Threshold verification is performed on the service configuration value based on a predetermined threshold to obtain a threshold verification result;
[0035] In the case where the threshold verification result indicates that the predetermined threshold and the service configuration value match, the sub-verification result indicating that the service configuration information verification passes is determined; and
[0036] In the case where the threshold verification result indicates that the predetermined threshold and the service configuration value do not match, the sub-verification result indicating that the service configuration information verification fails is determined.
[0037] According to an embodiment of the present disclosure, in the case where the predetermined verification rule is a regular verification rule, the verification on the service configuration value corresponding to the service configuration name according to the predetermined verification rule to obtain a sub-verification result includes:
[0038] The regularity check result is obtained by performing regularity check on the service configuration value based on the predetermined text information.
[0039] In a case where the regularity check result indicates that the predetermined text information matches the service configuration value, the sub-check result indicating that the service configuration information check is passed is determined.
[0040] In a case where the regularity check result indicates that the predetermined text information does not match the service configuration value, the sub-check result indicating that the service configuration information check is failed is determined.
[0041] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a compliance check rule, the sub-check result obtained by performing check on the service configuration value corresponding to the service configuration name according to the predetermined check rule includes:
[0042] According to the service configuration name, a target service configuration value corresponding to the service configuration name is obtained from a data source by using a data interface;
[0043] The compliance check result is obtained by performing compliance check on the service configuration value according to the target service configuration value;
[0044] In a case where the compliance check result indicates that the target service configuration value matches the service configuration value, the sub-check result indicating that the service configuration information check is passed is determined.
[0045] In a case where the compliance check result indicates that the target service configuration value does not match the service configuration value, the sub-check result indicating that the service configuration information check is failed is determined.
[0046] According to an embodiment of the present disclosure, the information check result is determined according to the sub-check result corresponding to each of the at least one service configuration name.
[0047] In a case where the sub-check result indicating that the service configuration information check is failed exists in the sub-check result corresponding to each of the at least one service configuration name, the information check result indicating that the service configuration information check is failed is determined.
[0048] In a case where each of the sub-check result corresponding to each of the at least one service configuration name indicates that the service configuration information check is passed, the information check result indicating that the service configuration information check is passed is determined.
[0049] According to an embodiment of the present disclosure, the information checking method further includes, before the determining the service invocation type corresponding to the service change operation in the case that the service change type in the service configuration information is the node addition operation in response to receiving the service configuration information corresponding to the service change operation:
[0050] establishing a communication connection with the distributed application coordination service cluster; and
[0051] receiving the service configuration request based on the communication connection.
[0052] According to an embodiment of the present disclosure, the information checking method further includes, after the checking the service configuration values corresponding to the at least one service configuration name respectively according to the at least one service configuration name to obtain an information checking result:
[0053] in the case that the information checking result indicates that the service configuration information passes the checking, permitting execution of the service configuration information; and
[0054] in the case that the information checking result indicates that the service configuration information fails the checking, outputting an early warning information.
[0055] According to another aspect of the present disclosure, an information checking device is provided, which includes:
[0056] a determining module configured to, in response to receiving a service configuration request corresponding to a service change operation, determine a service invocation type corresponding to the service change operation in the case that a service change type in the service configuration request is a node addition operation;
[0057] an obtaining module configured to, in the case that the service invocation type is a first-level invocation, obtain service configuration information corresponding to the service change operation, wherein the service configuration information includes at least one service configuration name and service configuration values corresponding to the at least one service configuration name respectively; and
[0058] a checking module configured to check the service configuration values corresponding to the at least one service configuration name respectively according to the at least one service configuration name to obtain an information checking result.
[0059] According to another aspect of the present disclosure, an electronic device is provided, which includes:
[0060] one or more processors;
[0061] a memory configured to store one or more instructions,
[0062] When the one or more instructions are executed by the one or more processors, the one or more processors implement a method as described in the present disclosure.
[0063] According to another aspect of the present disclosure, a computer-readable storage medium is provided, having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in the present disclosure.
[0064] According to another aspect of the present disclosure, a computer program product is provided, the computer program product comprising computer executable instructions that, when executed by a processor, are configured to implement a method as described in the present disclosure.
[0065] According to an embodiment of the present disclosure, since the service configuration information is acquired in the case that the service invocation type is the first level invocation in the case that the service change type in the service configuration request is the node addition operation, the service configuration information in the case that the service change type is the node addition operation and the service invocation type is the first level invocation can be automatically acquired, thereby improving the efficiency of information verification. On this basis, since the service configuration values corresponding to the at least one service configuration name can be verified respectively, at least part of the technical problems of unreasonable or incorrect parameter value configuration in the related art are overcome, the accuracy of information verification is improved, and the accuracy of service configuration management is further improved. BRIEF DESCRIPTION OF DRAWINGS
[0066] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description when taken in conjunction with the accompanying drawings, in which:
[0067] Figure 1 A system architecture to which an information verification method according to an embodiment of the present disclosure can be applied is schematically shown;
[0068] Figure 2 A flowchart of an information verification method according to an embodiment of the present disclosure is schematically shown;
[0069] Figure 3 An example schematic diagram of a process of determining a service invocation type corresponding to a service change operation in the case that the service change type in a service configuration request corresponding to the service change operation is a node addition operation is schematically shown according to an embodiment of the present disclosure;
[0070] Figure 4A An example schematic diagram of a process of acquiring service configuration information corresponding to a service change operation in the case that the service invocation type is a first level invocation is schematically shown according to an embodiment of the present disclosure;
[0071] Figure 4B An example schematic diagram of a process of determining service configuration information according to original service configuration information is illustratively shown according to an embodiment of the present disclosure;
[0072] Figure 5 An example schematic diagram of a process of verifying service configuration values corresponding to each of at least one service configuration name respectively to obtain information verification results is illustratively shown according to an embodiment of the present disclosure;
[0073] Figure 6 An example schematic diagram of an information verification process is illustratively shown according to an embodiment of the present disclosure;
[0074] Figure 7 A block diagram of an information verification device is illustratively shown according to an embodiment of the present disclosure; and
[0075] Figure 8 A block diagram of an electronic device adapted to implement an information verification method is illustratively shown according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0076] Embodiments of the present disclosure will be described herein below with reference to the accompanying drawings. It should be understood, however, that the description that follows is merely exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description of embodiments of the present disclosure, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent to one skilled in the art that one or more embodiments of the present disclosure can be practiced without these specific details. In other instances, well-known structures and functions have not been described in detail in order to avoid obscuring aspects of the present disclosure.
[0077] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used herein, the term "includes" and tautological expressions thereof, means the inclusion of the stated features, steps, operations, and / or components but not to the exclusion of one or more other features, steps, operations, or components.
[0078] All terms used herein (including technical and scientific terms) have the meanings commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein are to be interpreted as having a meaning that is consistent with the understanding of those terms by those in the relevant art, and not in an overly idealized or overly formal sense.
[0079] In the case of using expressions similar to "at least one of A, B, and C, etc.", it should generally be interpreted that the meaning is the same as "at least one of A or B; at least one of A or C; at least one of B or C; at least one of A, B, and C; and the like." In the case of using expressions similar to "at least one of A, B, or C, etc.", it should generally be interpreted that the meaning is the same as "at least one of A or B; at least one of A or C; at least one of B or C; at least one of A, B, and C; and the like."
[0080] In the technical solutions of the present disclosure, the acquisition, storage and application of user personal information comply with relevant laws and regulations, necessary security measures are taken, and the public order and good customs are not violated.
[0081] In the technical solutions of the present disclosure, the authorization or consent of the user is obtained before the user personal information is acquired or collected.
[0082] In the related art, Zookeeper is usually used to provide consistent service configuration management for multiple distributed application programs.
[0083] Zookeeper can refer to an open source distributed application coordination service. The distributed application can realize functions such as data publishing and subscribing, load balancing, distributed coordination and notification, cluster management, distributed lock and distributed queue based on Zookeeper.
[0084] However, since the service management based on the architecture layer is not sensitive to the configuration parameters of the service, the problem of the parameter configuration of the service itself cannot be timely managed, and thus the efficiency of the service configuration management cannot be guaranteed. In addition, since some parameters are directly brought out to production in the form of variable files, it is easy to cause the omission of the test phase, so that there is a hidden danger that the parameter configuration causes the production problem, and thus the accuracy of the service configuration management cannot be guaranteed.
[0085] To at least partially solve the technical problems existing in the related art, the present disclosure provides an information verification method and device, an electronic device and a computer readable storage medium, which can be applied to the fields of computer technology, data processing technology and finance. The information verification method comprises: in response to receiving a service configuration request corresponding to a service change operation, in the case that a service change type in the service configuration request is a node addition operation, determining a service call type corresponding to the service change operation; in the case that the service call type is a first level call, obtaining service configuration information corresponding to the service change operation, wherein the service configuration information comprises at least one service configuration name and service configuration values corresponding to the at least one service configuration name respectively; and according to the at least one service configuration name, verifying the service configuration values corresponding to the at least one service configuration name respectively to obtain an information verification result.
[0086] It should be noted that the information verification method and device provided by the embodiments of the present disclosure can be applied to the fields of computer technology, data processing technology and finance, for example, applied to the field of Internet technology. The information verification method and device provided by the embodiments of the present disclosure can also be applied to any field other than the fields of computer technology, data processing technology and finance, for example, applied to the field of business governance. The application field of the information verification method and device provided by the embodiments of the present disclosure is not limited.
[0087] Figure 1 The system architecture to which the information verification method according to the embodiments of the present disclosure can be applied is schematically shown. It should be noted that, Figure 1 The system architecture shown is only an example of the system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be applied to other devices, systems, environments or scenarios.
[0088] As Figure 1 shown, the system architecture 100 according to the embodiment can include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104 and a server 105. The network 104 is a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0089] A user can use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0090] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, etc.
[0091] The server 105 can be a server providing various services, such as a background management server providing support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (only as an example). The background management server can analyze and process received user requests and other data, and feed back the processing results (such as web pages, information, or data, etc. obtained or generated according to user requests) to the terminal devices.
[0092] It should be noted that the information verification method provided by the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the information verification apparatus provided by the embodiments of the present disclosure can generally be arranged in the server 105. The information verification method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105. Correspondingly, the information verification apparatus provided by the embodiments of the present disclosure can also be arranged in a server or a server cluster different from the server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or the server 105.
[0093] Alternatively, the information verification method provided by the embodiments of the present disclosure can also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Correspondingly, the information verification apparatus provided by the embodiments of the present disclosure can also be arranged in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.
[0094] It should be understood that, Figure 1The number of terminal devices, networks and servers in the figure is only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
[0095] It should be noted that the serial numbers of the various operations in the following method are only used as a representation of the operation in order to describe, and should not be regarded as representing the execution order of the various operations. The method does not need to be executed in the order shown unless explicitly indicated.
[0096] Figure 2 A flowchart of an information verification method according to an embodiment of the disclosure is schematically shown.
[0097] As Figure 2 The information verification method 200 includes operations S210-S230.
[0098] At operation S210, in response to receiving a service configuration request corresponding to a service change operation, in a case where a service change type in the service configuration request is a node addition operation, a service invocation type corresponding to the service change operation is determined.
[0099] At operation S220, in a case where the service invocation type is a first-level invocation, service configuration information corresponding to the service change operation is obtained, wherein the service configuration information includes at least one service configuration name and a service configuration value corresponding to each of the at least one service configuration name.
[0100] At operation S230, according to the at least one service configuration name, the service configuration value corresponding to each of the at least one service configuration name is verified respectively to obtain an information verification result.
[0101] According to an embodiment of the disclosure, the information verification method can be applied to, for example, an open source client to verify information pushed by a distributed application coordination service (i.e., Zookeeper).
[0102] According to an embodiment of the disclosure, the distributed application coordination service can refer to a distributed service framework that can be used to solve the consistency problem of application systems in a distributed cluster. The distributed application coordination service can provide data storage based on a directory node tree similar to a file system, so as to facilitate the maintenance and monitoring of the state changes of the stored data. By monitoring the data state changes, a service configuration request is generated according to the data state changes, and the service configuration request is sent to the open source client, so that the open source client verifies the pushed information, and then completes the cluster management based on the data.
[0103] According to an embodiment of the present disclosure, code for generating the service configuration request can be pre-written in a script, and the distributed application coordination service can run the script to generate the service configuration request message in response to detecting the service change operation and the state change of the stored data. The distributed application coordination service can send the service configuration request message to the open-source client, so that the open-source client verifies the service configuration information corresponding to the service change operation according to the service configuration request message.
[0104] According to an embodiment of the present disclosure, after the open-source client receives the service configuration request, the service change type in the service configuration request can be determined according to the service configuration request. The service change type can be used to represent the change type corresponding to the service change operation. The service change type can include at least one of the following: a node addition operation, a node deletion operation, and a node modification operation. The node addition operation can refer to a creation operation of a node, i.e., a provider instance or a provider node created by a certain distributed service. The node deletion operation can refer to a deletion operation of a node. The node modification operation can refer to a modification, addition, or deletion operation of node data.
[0105] According to an embodiment of the present disclosure, in the case where the service change type in the service configuration request is any one of the node deletion operation and the node modification operation, an information verification result representing that the service configuration information verification is passed can be determined. In the case where the service change type in the service configuration request is the node addition operation, a service invocation type can be determined. The service invocation type can be used to represent the invocation type corresponding to the service change operation. The service invocation type can include at least one of the following: a first-level invocation and an Nth-level invocation. The first-level invocation can refer to a service invocation directly associated with the providers directory. The Nth-level invocation can refer to a service invocation indirectly associated with the providers directory.
[0106] According to an embodiment of the present disclosure, in the case where the service invocation type is the Nth-level invocation, an information verification result representing that the service configuration information verification is passed can be determined. In the case where the service invocation type is the first-level invocation, service configuration information corresponding to the service change operation can be obtained from a first data source. The service configuration information can include at least one service configuration key-value pair. Each of the at least one service configuration key-value pair can correspond to a service configuration name and a service configuration value. The first data source can include at least one of the following: a first local database, a first cloud database, and a first network resource. For example, a data interface can be called to obtain the service configuration information corresponding to the service change operation from the data source.
[0107] According to an embodiment of the present disclosure, after obtaining the service configuration information, a predetermined check rule corresponding to each of the at least one service configuration name can be obtained from a second data source. The predetermined check rule can include at least one of a threshold check rule, a regular check rule, and a compliance check rule. The second data source can include at least one of a second local database, a second cloud database, and a second network resource. After obtaining the predetermined check rule corresponding to the service configuration name, the service configuration value corresponding to the service configuration name can be checked according to the predetermined check rule to obtain an information check result.
[0108] According to an embodiment of the present disclosure, the information check result can be used to represent whether the service configuration information passes the check. In the case that the information check result represents that the service configuration information passes the check, the service configuration request can be permitted to be executed. In the case that the information check result represents that the service configuration information fails the check, a warning information can be output.
[0109] According to an embodiment of the present disclosure, since the service configuration information is obtained in the case that the service invocation type is the first level invocation, and the service invocation type is determined in the case that the service change type in the service configuration request is the node addition operation, the automatic obtaining of the service configuration information in the case that the service change type is the node addition operation and the service invocation type is the first level invocation can be implemented, thereby improving the efficiency of information check. On this basis, since the service configuration values corresponding to the at least one service configuration name respectively can be checked, at least part of the technical problems of unreasonable or incorrect parameter value configuration in the related art are overcome, the accuracy of information check is improved, and the accuracy of service configuration management is further improved.
[0110] The information check method 200 according to an embodiment of the present disclosure will be further described below with reference to Figure 3 、 Figure 4A 、 Figure 4B 、 Figure 5 and Figure 6 .
[0111] According to an embodiment of the present disclosure, the information check method 200 can further include the following operations.
[0112] A communication connection between the distributed application coordination service ware cluster and the distributed application coordination service ware cluster is established. Based on the communication connection, a service configuration request is received.
[0113] According to an embodiment of the present disclosure, the distributed application coordination service cluster can include at least one distributed application coordination service (i.e., a zookeeper). A communication connection can be established with the distributed application coordination service cluster that needs to be governed. For example, a cluster identity that needs to be governed can be acquired, and a communication connection can be established with the distributed application coordination service cluster that needs to be governed according to the cluster identity.
[0114] According to an embodiment of the present disclosure, after the communication connection between the open source client and the distributed application coordination service cluster is established, the state changes of each node in the distributed application coordination service cluster can be monitored based on the communication connection. In the case that any node in the distributed application coordination service cluster has a state change, a monitoring event can be triggered, and a service configuration request can be generated. The distributed application coordination service cluster can send the service configuration request to the open source client, so that the open source client can verify the service configuration information corresponding to the service change operation according to the service configuration request.
[0115] According to an embodiment of the present disclosure, since the service configuration request is received based on the communication connection, and the communication connection is established between the open source client and the distributed application coordination service cluster, automatic monitoring of the service change operation can be achieved, and the efficiency of information verification is improved.
[0116] According to an embodiment of the present disclosure, the information verification method 200 can further include the following operations.
[0117] In the case that the service change type in the service configuration request is any one of a node deletion operation and a node modification operation, an information verification result indicating that the service configuration information verification is passed is determined. In the case that the service invocation type is an N-level invocation, an information verification result indicating that the service configuration information verification is passed is determined.
[0118] According to an embodiment of the present disclosure, the service change type can further include a node deletion operation and a node modification operation. The service invocation type can further include an N-level invocation. N can be a positive integer greater than 1.
[0119] According to an embodiment of the present disclosure, the node deletion operation can refer to a deletion operation of a node. The node modification operation can refer to a modification, addition or deletion operation of node data. In the case that the service change type in the service configuration request is any one of a node deletion operation and a node modification operation, an information verification result indicating that the service configuration information verification is passed can be directly determined.
[0120] According to an embodiment of the present disclosure, the Nth level call can refer to a business call indirectly associated with the providers directory. In a case where the business call type is the Nth level call, the information check result representing that the business configuration information check passes can be directly determined.
[0121] According to an embodiment of the present disclosure, since in a case where the business change type in the business configuration request is any one of the node deletion operation and the node modification operation or the business call type is the Nth level call, the information check result representing that the business configuration information check passes can be directly determined, the efficiency of the information check is improved, and thus the efficiency of the business configuration governance is improved.
[0122] According to an embodiment of the present disclosure, the operation S210 can include the following operations.
[0123] In response to receiving the business configuration request, a business change type is determined according to the business configuration request. In a case where the business change type is the node addition operation, address information corresponding to the business change operation is determined, wherein the address information includes path information. According to the path information, a business call type is determined.
[0124] According to an embodiment of the present disclosure, in a case where the business change type is the node addition operation, address information corresponding to the business change operation can be determined. The address information can include a uniform resource locator (URL). The uniform resource locator can refer to a representation method used to specify the location of information on the World Wide Web service program of the Internet. The address information can include at least one of the following: protocol information, server host address information, port information, path information, and parameter information.
[0125] According to an embodiment of the present disclosure, the protocol information can include at least one of the following: HyperText Transfer Protocol (HTTP), Hypertext Transfer Protocol Secure (HTTPS), and Transmission Control Protocol / Internet Protocol (TCP / IP), etc.
[0126] According to an embodiment of the present disclosure, the server host address information can include at least one of the following: domain name information, host name, and Internet Protocol (IP) address. The port information can be used to represent the port set by the server. The parameter information can be used to represent the parameters of the query search.
[0127] According to an embodiment of the present disclosure, the path information can be used to represent the relative path of the service corresponding to the service change operation under the server, for example, the path information can include at least one of the following: directory and file address. After obtaining the address information, the service call type can be determined according to the path information in the address information.
[0128] Figure 3 An example schematic diagram of a process of determining the service call type corresponding to the service change operation is shown in response to receiving the service configuration request corresponding to the service change operation, and the service change type in the service configuration request is a node addition operation according to an embodiment of the present disclosure.
[0129] As shown in FIG. 3, in operation S310, in response to receiving the service configuration request 301, the service change type 302 can be determined according to the service configuration request 301. After obtaining the service change type 302, operation S310 can be performed. Figure 3
[0130] If no, the information verification result 303 representing that the service configuration information verification is passed can be determined.
[0131] If yes, the address information 304 corresponding to the service change operation can be determined. The address information 304 can include path information 304_1. After obtaining the path information 304_1, the service call type 305 can be determined according to the path information 304_1.
[0132] According to an embodiment of the present disclosure, operation S220 can include the following operations.
[0133] In the case of the service call type being the first level call, an information acquisition request can be sent to the target distributed application coordination service according to the domain name information. The original service configuration information can be received from the target distributed application coordination service. The service configuration information can be determined according to the original service configuration information.
[0134] According to an embodiment of the present disclosure, the address information can further include domain name information.
[0135] According to an embodiment of the present disclosure, the domain name information can be used to locate and identify a computer or a computer group when data is transmitted. In the case of the service call type being the first level call, the open source client can send an information acquisition request to the target distributed application coordination service according to the domain name information in the address information.
[0136]
[0137] According to an embodiment of the present disclosure, after receiving the information acquisition request from the open-source client, the target distributed application coordination service can acquire the original service configuration information corresponding to the service change operation. After obtaining the original service configuration information, the target distributed application coordination service can send the original service configuration information to the open-source client.
[0138] According to an embodiment of the present disclosure, after receiving the original service configuration information from the target distributed application coordination service, the open-source client can determine the service configuration information according to the original service configuration information.
[0139] Figure 4A An example schematic diagram of a process of acquiring service configuration information corresponding to a service change operation is schematically shown according to an embodiment of the present disclosure, in a case where the service invocation type is a first-level invocation.
[0140] As shown in 400A, after obtaining the service invocation type 401, operation S410 can be performed. Figure 4A
[0141] In operation S410, is the service invocation type a first-level invocation?
[0142] If not, an information check result 402 indicating that the service configuration information check is passed can be determined.
[0143] If yes, an information acquisition request can be sent to a target distributed application coordination service 404 corresponding to the domain name information 403_1 in the domain name information 403_1 in the address information 403 according to the domain name information 403_1. Original service configuration information 405 from the target distributed application coordination service 404 can be received. The service configuration information 406 can be determined according to the original service configuration information 405.
[0144] According to an embodiment of the present disclosure, determining the service configuration information according to the original service configuration information can include the following operations.
[0145] According to a first predetermined character, character matching is performed on the original service configuration information to obtain at least one service configuration key-value pair. For each service configuration key-value pair in the at least one service configuration key-value pair, character matching is performed on the service configuration key-value pair according to a second predetermined character to obtain a service configuration name and a service configuration value corresponding to the service configuration key-value pair.
[0146] According to an embodiment of the present disclosure, the first predetermined character and the second predetermined character can be set according to actual business needs, which are not limited herein. For example, the first predetermined character can be “&”, and the second predetermined character can be “=”. The service configuration name may, for example, include service concurrency configuration and service timeout configuration, etc.
[0147] According to an embodiment of this disclosure, taking the original service configuration information as “key1=value1&key2=value2&key3=value3” as an example, the original service configuration information can be matched with characters according to “&” to obtain the service configuration key-value pair “key1=value1”, the service configuration key-value pair “key2=value2” and the service configuration key-value pair “key3=value3”.
[0148] According to embodiments of this disclosure, character matching can be performed on the service configuration key-value pair "key1=value1" using "=" to obtain the service configuration name "key1" and service configuration value "value1" corresponding to the service configuration key-value pair "key1=value1". Character matching can be performed on the service configuration key-value pair "key2=value2" using "=" to obtain the service configuration name "key2" and service configuration value "value2" corresponding to the service configuration key-value pair "key12=value2". Character matching can be performed on the service configuration key-value pair "key3=value3" using "=" to obtain the service configuration name "key3" and service configuration value "value3" corresponding to the service configuration key-value pair "key3=value3".
[0149] According to the embodiments of this disclosure, since the service configuration name and service configuration value are obtained by matching the service configuration key-value pairs with the second predetermined character, and the service configuration key-value pairs are obtained by matching the original service configuration information with the first predetermined character, the service configuration information is automatically determined based on the original service configuration information from the target distributed application coordinator, which helps to ensure the efficiency and accuracy of subsequent information verification.
[0150] Figure 4B The illustration shows an example diagram of a process for determining service configuration information based on original service configuration information according to an embodiment of the present disclosure.
[0151] like Figure 4B As shown, in 400B, after obtaining the original service configuration information 407, character matching can be performed on the original service configuration information 407 according to the first predetermined character 408 to obtain at least one service configuration key-value pair. For each service configuration key-value pair 409 in the at least one service configuration key-value pair, character matching can be performed on the service configuration key-value pair 409 according to the second predetermined character 410 to obtain the service configuration name 411 and service configuration value 412 corresponding to the service configuration key-value pair 409.
[0152] According to embodiments of this disclosure, operation S230 may include the following operations.
[0153] For each service configuration name in at least one service configuration name, a predefined verification rule corresponding to the service configuration name is determined. The service configuration value corresponding to the service configuration name is verified according to the predefined verification rule to obtain a sub-verification result. Based on the sub-verification results corresponding to each of the at least one service configuration name, the information verification result is determined.
[0154] According to embodiments of this disclosure, after obtaining at least one service configuration name and the service configuration value corresponding to each of the at least one service configuration name, a predetermined verification rule corresponding to each of the at least one service configuration name can be determined. After obtaining the predetermined verification rule, the service configuration value corresponding to the service configuration name can be verified according to the predetermined verification rule.
[0155] For example, if the service configuration name is "Service Concurrency Configuration", the predefined validation rules can be used to determine whether the service configuration value corresponding to "Service Concurrency Configuration" is too small or too large. If the service configuration name is "Service Timeout Configuration", the predefined validation rules can be used to determine whether the service configuration value corresponding to "Service Timeout Configuration" is too small or too large.
[0156] Figure 5 The illustration shows an example of a process according to an embodiment of the present disclosure, in which a service configuration value corresponding to each of the at least one service configuration name is verified to obtain an information verification result.
[0157] like Figure 5 As shown in 500, a predefined verification rule corresponding to the service configuration name 501 can be determined based on the service configuration name 501. The predefined verification rule may include at least one of the following: threshold verification rule 502_1, regular expression verification rule 502_2, and compliance verification rule 502_3.
[0158] If the predetermined verification rule is threshold verification rule 502_1, the service configuration value can be threshold verified to obtain threshold verification result 503_1.
[0159] If the predefined validation rule is regular expression validation rule 502_2, the business configuration value can be validated using regular expression to obtain regular expression validation result 503_2.
[0160] If the predefined verification rule is compliance verification rule 502_3, the business configuration value can be verified for compliance, and the compliance verification result 503_3 can be obtained.
[0161] The information check result 504 can be determined according to at least one of the threshold check result 503_1, the regular check result 503_2, and the compliance check result 503_3.
[0162] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a threshold check rule, the checking, according to the predetermined check rule, of the service configuration value corresponding to the service configuration name to obtain a sub-check result can include the following operations.
[0163] The service configuration value is checked based on a predetermined threshold value to obtain a threshold check result. In a case where the threshold check result indicates that the predetermined threshold value matches the service configuration value, a sub-check result indicating that the service configuration information check is passed is determined. In a case where the threshold check result indicates that the predetermined threshold value does not match the service configuration value, a sub-check result indicating that the service configuration information check is failed is determined.
[0164] According to an embodiment of the present disclosure, the predetermined check rule can include at least one of a threshold check rule, a regular check rule, and a compliance check rule.
[0165] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a threshold check rule, the threshold check result can be used to indicate whether the predetermined threshold value matches the service configuration value. The predetermined threshold value can be set according to actual business needs, which is not limited herein. For example, the predetermined threshold value can include one of the following: a one-sided threshold value and a two-sided threshold value.
[0166] For example, the one-sided threshold value can include "greater than 5", in which case it is necessary to determine whether the service configuration value is greater than 5. In a case where the service configuration value is greater than 5, it can be determined that the predetermined threshold value matches the service configuration value, and further a sub-check result indicating that the service configuration information check is passed can be determined.
[0167] For example, the two-sided threshold value can include "greater than 5" and "less than 10", in which case it is necessary to determine whether the service configuration value is greater than 5 and less than 10. In a case where the service configuration value is greater than 5 and less than 10, it can be determined that the predetermined threshold value matches the service configuration value, and further a sub-check result indicating that the service configuration information check is passed can be determined.
[0168] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a regular check rule, the checking, according to the predetermined check rule, of the service configuration value corresponding to the service configuration name to obtain a sub-check result can include the following operations.
[0169] The regular check result is obtained by performing regular check on the service configuration value based on the predetermined text information. In a case where the regular check result indicates that the predetermined text information and the service configuration value are matched, a sub-check result indicating that the service configuration information check is passed is determined. In a case where the regular check result indicates that the predetermined text information and the service configuration value are not matched, a sub-check result indicating that the service configuration information check is failed is determined.
[0170] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a regular check rule, the predetermined text information can be set according to actual service requirements, which is not limited herein. For example, the predetermined text information can be "\a / n+-\a / n+-", and "\a / n+" can indicate that at least one character composed of a letter or a number is contained in the "-" sign. In this case, the regular check result can be obtained by performing regular check on the service configuration value based on the predetermined text information "\a / n+-\a / n+-". The regular check result can be used to indicate whether the predetermined text information and the service configuration value are matched.
[0171] According to an embodiment of the present disclosure, in a case where the regular check result indicates that the predetermined text information and the service configuration value are matched, i.e., the service configuration value contains at least one letter or number, a sub-check result indicating that the service configuration information check is passed can be determined. In a case where the regular check result indicates that the predetermined text information and the service configuration value are not matched, i.e., the service configuration value does not contain at least one letter or number, a sub-check result indicating that the service configuration information check is failed can be determined.
[0172] According to an embodiment of the present disclosure, in a case where the predetermined check rule is a compliance check rule, the sub-check result can include the following operations.
[0173] According to the service configuration name, a target service configuration value corresponding to the service configuration name is obtained from a data source by using a data interface. The compliance check result is obtained by performing compliance check on the service configuration value according to the target service configuration value. In a case where the compliance check result indicates that the target service configuration value and the service configuration value are matched, a sub-check result indicating that the service configuration information check is passed is determined. In a case where the compliance check result indicates that the target service configuration value and the service configuration value are not matched, a sub-check result indicating that the service configuration information check is failed is determined.
[0174] According to an embodiment of the present disclosure, the compliance verification rule can indicate that the business configuration value corresponding to the business configuration name needs to be registered in another system. In a case where the predetermined verification rule is the compliance verification rule, the target business configuration value corresponding to the business configuration name can be obtained from the data source according to the business configuration name by using the data interface. After obtaining the target business configuration value, the compliance verification of the business configuration value can be performed according to the target business configuration value, and a compliance verification result can be obtained. The compliance verification result can be used to represent whether the target business configuration value and the business configuration value match.
[0175] According to an embodiment of the present disclosure, determining the information verification result according to the sub-verification results corresponding to the at least one business configuration name can include the following operations.
[0176] In a case where there is a sub-verification result representing that the business configuration information verification fails in the sub-verification results corresponding to the at least one business configuration name, an information verification result representing that the business configuration information verification fails can be determined. In a case where each of the sub-verification results corresponding to the at least one business configuration name represents that the business configuration information verification passes, an information verification result representing that the business configuration information verification passes can be determined.
[0177] According to an embodiment of the present disclosure, after obtaining the sub-verification results corresponding to the at least one business configuration name, the information verification result can be determined according to the sub-verification results corresponding to the at least one business configuration name. For example, in a case where there is a sub-verification result representing that the business configuration information verification fails in the at least one sub-verification result, an information verification result representing that the business configuration information verification fails can be determined. Alternatively, in a case where there is a sub-verification result representing that the business configuration information verification fails in the at least one sub-verification result, an information verification result representing that the business configuration information verification fails can be determined. The first predetermined ratio can be set according to actual business needs, which is not limited herein. For example, the first predetermined ratio can be 0.1.
[0178] According to an embodiment of the present disclosure, in a case where each of the at least one sub-verification result represents that the business configuration information verification passes, an information verification result representing that the business configuration information verification passes can be determined. Alternatively, in a case where there is a sub-verification result representing that the business configuration information verification passes in the at least one sub-verification result, an information verification result representing that the business configuration information verification passes can be determined. The second predetermined ratio can be set according to actual business needs, which is not limited herein. For example, the second predetermined ratio can be 0.9.
[0179] According to embodiments of this disclosure, since the sub-verification results are obtained by verifying the service configuration value corresponding to the service configuration name based on at least one of the threshold verification rules, regular expression verification rules, and compliance verification rules, the sub-verification results can characterize whether the service configuration value corresponding to the service configuration name passes the verification. Furthermore, since the information verification results are determined based on the sub-verification results corresponding to at least one service configuration name, the accuracy of the information verification results is improved, thereby improving the accuracy of service configuration governance.
[0180] According to embodiments of this disclosure, the information verification method 200 may further include the following operations.
[0181] If the information verification result indicates that the service configuration information has passed verification, the service configuration request is authorized to be executed. If the information verification result indicates that the service configuration information has failed verification, a warning message is output.
[0182] According to embodiments of this disclosure, if the information verification result indicates that the service configuration information verification has passed, the service configuration request can be directly allowed, i.e., execution of the service configuration request is permitted. If the information verification result indicates that the service configuration information verification has failed, warning information can be output through various means such as alarms or information notifications to facilitate the arrangement of responsible personnel for remediation. The warning information can be used to indicate that the execution of the service configuration request is prohibited.
[0183] Figure 6 The illustration shows an example diagram of an information verification process according to an embodiment of the present disclosure.
[0184] like Figure 6 As shown in step 600, in response to receiving a service configuration request 601, the service change type 602 can be determined based on the service configuration request 601. After obtaining the service change type 602, operation S610 can be executed.
[0185] When operating S610, is the business change type "node addition operation"?
[0186] If not, then the verification result 603, representing the successful verification of the service configuration information, can be determined.
[0187] If so, the business call type 604 corresponding to the business change operation can be determined. After obtaining the business call type 604, operation S620 can be executed.
[0188] When operating S620, is the business call type a first-level call?
[0189] If not, then the verification result 603, representing the successful verification of the service configuration information, can be determined.
[0190] If so, the service configuration information 605 corresponding to the service change operation can be obtained. The service configuration information 605 may include at least one service configuration name and the service configuration value corresponding to each of the at least one service configuration name.
[0191] For at least one service configuration name 605_1, a predetermined verification rule 606 corresponding to service configuration name 605_1 can be determined. According to the predetermined verification rule 606, the service configuration value 605_2 corresponding to service configuration name 605_1 is verified to obtain a sub-verification result 607. After obtaining the sub-verification result 607, operation S630 is executed.
[0192] When operating S630, are there sub-validation results indicating that the validation of a business configuration request failed?
[0193] If not, then the verification result 603, representing the successful verification of the service configuration information, can be determined.
[0194] If so, then the verification result 608, which indicates that the verification of the business configuration information failed, can be determined.
[0195] If the information verification result 603 indicates that the service configuration information verification has passed, the execution of the service configuration request 601 can be permitted. If the information verification result 608 indicates that the service configuration information verification has failed, a warning message 609 can be output.
[0196] The above are merely exemplary embodiments, but are not limited to them. Other information verification methods known in the art may also be included, as long as they can improve the efficiency and accuracy of business configuration governance.
[0197] Figure 7 A block diagram of an information verification apparatus according to an embodiment of the present disclosure is shown schematically.
[0198] like Figure 7 As shown, the information verification device 700 may include a first determining module 710, an acquiring module 720, and a verification module 730.
[0199] The first determining module 710 is used to respond to a business configuration request corresponding to a business change operation, and to determine the business call type corresponding to the business change operation if the business change type in the business configuration request is a node addition operation.
[0200] The acquisition module 720 is used to acquire business configuration information corresponding to the business change operation when the business call type is a first-level call. The business configuration information includes at least one business configuration name and a business configuration value corresponding to each of the at least one business configuration name.
[0201] The checking module 730 is configured to check the service configuration values corresponding to the at least one service configuration name respectively according to the at least one service configuration name, to obtain an information checking result.
[0202] According to an embodiment of the present disclosure, the service change type further includes a node deletion operation and a node modification operation, and the service calling type further includes an Nth level calling, where N is a positive integer greater than 1.
[0203] According to an embodiment of the present disclosure, the information checking device 700 can include a second determination module and a third determination module.
[0204] The second determination module is configured to, in a case where the service change type in the service configuration request is any one of a node deletion operation and a node modification operation, determine an information checking result indicating that the service configuration information checking is passed.
[0205] The third determination module is configured to, in a case where the service calling type is an Nth level calling, determine an information checking result indicating that the service configuration information checking is passed.
[0206] According to an embodiment of the present disclosure, the first determination module 710 can include a first determination submodule, a second determination submodule, and a third determination submodule.
[0207] The first determination submodule is configured to, in response to receiving the service configuration request, determine the service change type according to the service configuration request.
[0208] The second determination submodule is configured to, in a case where the service change type is a node addition operation, determine address information corresponding to the service change operation, where the address information includes path information.
[0209] The third determination submodule is configured to determine the service calling type according to the path information.
[0210] According to an embodiment of the present disclosure, the address information further includes domain name information.
[0211] According to an embodiment of the present disclosure, the obtaining module 720 can include a sending submodule, a receiving submodule, and a fourth determination submodule.
[0212] The sending submodule is configured to, in a case where the service calling type is a first level calling, send an information obtaining request to a target distributed application coordination service according to the domain name information.
[0213] The receiving submodule is configured to receive original service configuration information from the target distributed application coordination service.
[0214] The fourth determination submodule is configured to determine the service configuration information according to the original service configuration information.
[0215] According to an embodiment of the present disclosure, the fourth determining sub-module can include a first matching unit and a second matching unit.
[0216] The first matching unit is configured to perform character matching on the original service configuration information according to a first predetermined character, to obtain at least one service configuration key-value pair.
[0217] The second matching unit is configured to, for each service configuration key-value pair in the at least one service configuration key-value pair, perform character matching on the service configuration key-value pair according to a second predetermined character, to obtain a service configuration name and a service configuration value corresponding to the service configuration key-value pair.
[0218] According to an embodiment of the present disclosure, for each service configuration name in the at least one service configuration name, the checking module 730 can include a fifth determining sub-module, a checking sub-module, and a sixth determining sub-module.
[0219] The fifth determining sub-module is configured to determine a predetermined checking rule corresponding to the service configuration name according to the service configuration name.
[0220] The checking sub-module is configured to perform checking on the service configuration value corresponding to the service configuration name according to the predetermined checking rule, to obtain a sub-checking result.
[0221] The sixth determining sub-module is configured to determine an information checking result according to the sub-checking result corresponding to each of the at least one service configuration name.
[0222] According to an embodiment of the present disclosure, the predetermined checking rule includes at least one of a threshold checking rule, a regular checking rule, and a compliance checking rule.
[0223] According to an embodiment of the present disclosure, in a case where the predetermined checking rule is a threshold checking rule, the checking sub-module can include a first checking unit, a first determining unit, and a second determining unit.
[0224] The first checking unit is configured to perform threshold checking on the service configuration value based on a predetermined threshold, to obtain a threshold checking result.
[0225] The first determining unit is configured to, in a case where the threshold checking result indicates that the predetermined threshold and the service configuration value match, determine a sub-checking result indicating that the service configuration information passes the checking.
[0226] The second determining unit is configured to, in a case where the threshold checking result indicates that the predetermined threshold and the service configuration value do not match, determine a sub-checking result indicating that the service configuration information fails the checking.
[0227] According to an embodiment of the present disclosure, when the predetermined check rule is a regular check rule, the check submodule can include a second check unit, a third determination unit, and a fourth determination unit.
[0228] The second check unit is configured to perform regular check on the service configuration value based on the predetermined text information, to obtain a regular check result.
[0229] The third determination unit is configured to determine a sub-check result representing that the service configuration information check is passed, when the regular check result represents that the predetermined text information and the service configuration value are matched.
[0230] The fourth determination unit is configured to determine a sub-check result representing that the service configuration information check is failed, when the regular check result represents that the predetermined text information and the service configuration value are not matched.
[0231] According to an embodiment of the present disclosure, when the predetermined check rule is a compliance check rule, the check submodule can include an acquisition unit, a third check unit, a fifth determination unit, and a sixth determination unit.
[0232] The acquisition unit is configured to acquire, according to the service configuration name, a target service configuration value corresponding to the service configuration name from a data source by using a data interface.
[0233] The third check unit is configured to perform compliance check on the service configuration value according to the target service configuration value, to obtain a compliance check result.
[0234] The fifth determination unit is configured to determine a sub-check result representing that the service configuration information check is passed, when the compliance check result represents that the target service configuration value and the service configuration value are matched.
[0235] The sixth determination unit is configured to determine a sub-check result representing that the service configuration information check is failed, when the compliance check result represents that the target service configuration value and the service configuration value are not matched.
[0236] According to an embodiment of the present disclosure, the sixth determination submodule can include a seventh determination unit and an eighth determination unit.
[0237] The seventh determination unit is configured to determine an information check result representing that the service configuration information check is failed, when there is a sub-check result representing that the service configuration information check is failed in the sub-check results corresponding to the at least one service configuration name respectively.
[0238] The eighth determination unit is configured to determine an information check result representing that the service configuration information check is passed, when each of the sub-check results corresponding to the at least one service configuration name respectively represents that the service configuration information check is passed.
[0239] According to an embodiment of the present disclosure, the information checking apparatus 700 can further include an establishing module and a receiving module.
[0240] The establishing module is configured to establish a communication connection between the distributed application coordination service cluster.
[0241] The receiving module is configured to receive the service configuration request based on the communication connection.
[0242] According to an embodiment of the present disclosure, the information checking apparatus 700 can further include a permitting module and an outputting module.
[0243] The permitting module is configured to permit execution of the service configuration request in a case where the information checking result indicates that the service configuration information passes the check.
[0244] The outputting module is configured to output an early warning information in a case where the information checking result indicates that the service configuration information fails the check.
[0245] Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure, or at least part of functions of any one or more of the modules, sub-modules, units, sub-units can be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be split into multiple modules for implementation. Any one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be implemented at least in part as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable manner of hardware or firmware through integration or packaging of circuits, or in any one of software, hardware and firmware or in an appropriate combination of any of the above. Alternatively, one or more of the modules, sub-modules, units, sub-units according to the embodiments of the present disclosure can be implemented at least in part as computer program modules, which can perform corresponding functions when the computer program modules are run.
[0246] For example, any of the first determining module 710, the obtaining module 720 and the checking module 730 can be combined in one module / unit / sub-unit, or any of the modules / units / sub-units can be split into multiple modules / units / sub-units. Or, at least part of the function of one or more of the modules / units / sub-units can be combined with at least part of the function of other modules / units / sub-units, and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determining module 710, the obtaining module 720 and the checking module 730 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on board, a system on package, an application specific integrated circuit (ASIC), or any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or implemented in any one of software, hardware and firmware or in a proper combination of any of them. Or, at least one of the first determining module 710, the obtaining module 720 and the checking module 730 can be at least partially implemented as a computer program module which can perform the corresponding function when the computer program module is run.
[0247] It should be noted that the information checking device part in the embodiments of the present disclosure corresponds to the information checking method part in the embodiments of the present disclosure, and the description of the information checking device part is specifically referred to the information checking method part, which will not be repeated here.
[0248] Figure 8 A block diagram of an electronic device suitable for implementing the information checking method according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example, and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
[0249] As shown in Figure 8 The computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 which can perform various appropriate actions and processes according to the program stored in a read only memory (ROM) 802 or the program loaded from a storage part 809 into a random access memory (RAM) 803. The processor 801 can include, for example, a general purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special purpose microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 801 can also include an on-board memory for cache use. The processor 801 can include a single processing unit or multiple processing units for performing different actions of the method processes according to the embodiments of the present disclosure.
[0250] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other via the bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing the programs in the ROM 802 and / or the RAM 803. It is noted that the programs can also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 can also perform various operations of the method flow according to the embodiments of the present disclosure by executing the programs stored in the one or more memories.
[0251] According to an embodiment of the present disclosure, the electronic device 800 can further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 can further include one or more of the following components connected to the input / output (I / O) interface 805: an input part 806 including a keyboard, a mouse, etc.; an output part 807 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 808 including a hard disk, etc.; and a communication part 809 including a network interface card such as a LAN card, a modem, etc. The communication part 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 810 as necessary, so that a computer program read therefrom is installed in the storage part 808 as necessary.
[0252] According to an embodiment of the present disclosure, the method flow according to the embodiments of the present disclosure can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable storage medium, the computer program containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-described functions defined in the system of the embodiments of the present disclosure are performed. According to an embodiment of the present disclosure, the system, the device, the apparatus, the module, the unit, etc. described above can be implemented by computer program modules.
[0253] The present disclosure also provides a computer readable storage medium, which can be included in the device / apparatus / system described in the above embodiments, or exist independently without being assembled into the device / apparatus / system. The above computer readable storage medium carries one or more programs, which when executed, implement the method according to the embodiments of the present disclosure.
[0254] According to the embodiments of the present disclosure, the computer readable storage medium can be a non-volatile computer readable storage medium. For example, it can include, but is not limited to: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in connection with an instruction execution system, apparatus, or device.
[0255] For example, according to the embodiments of the present disclosure, the computer readable storage medium can include one or more memories of the ROM 802 and / or the RAM 803 described above and / or other than the ROM 802 and the RAM 803.
[0256] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program codes for executing the method provided by the embodiments of the present disclosure, and when the computer program product is run on an electronic device, the program codes are used to make the electronic device implement the information verification method provided by the embodiments of the present disclosure.
[0257] When the computer program is executed by the processor 801, the above functions defined in the system / apparatus of the embodiments of the present disclosure are performed. According to the embodiments of the present disclosure, the above described system, apparatus, module, unit, etc. can be implemented by computer program modules.
[0258] In one embodiment, the computer program can rely on tangible storage media such as optical storage media, magnetic storage media, etc. In another embodiment, the computer program can also be transmitted, distributed, downloaded and installed in the form of signals on a network medium, and be downloaded and installed through the communication part 809 and / or installed from the detachable medium 811. The program codes contained in the computer program can be transmitted by any appropriate network medium, including but not limited to wireless, wired, etc., or any appropriate combination thereof.
[0259] According to embodiments of the present disclosure, program code of a computer program provided by embodiments of the present disclosure can be written in any combination of one or more programming languages, and specifically, can be implemented using a high-level procedural and / or object-oriented programming language, and / or an assembly / machine language. Programming languages include, but are not limited to, Java, C++, python, "C" language, or similar programming languages. Program code can execute entirely on a user's computing device, partly on a user device, partly on a remote computing device, or entirely on a remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider.
[0260] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0261] Embodiments of the present disclosure have been described above. However, these embodiments are merely intended to illustrate the present disclosure, and are not intended to limit the scope of the present disclosure. Although each of the embodiments is described above separately, this does not mean that the measures in each of the embodiments cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and these substitutions and modifications should all fall within the scope of the present disclosure.
Claims
1. An information verification method, comprising: In response to receiving a business configuration request corresponding to a business change operation, if the business change type in the business configuration request is a node addition operation, the business call type corresponding to the business change operation is determined, wherein the business call type includes at least one of the following: a first-level call and an Nth-level call, wherein the first-level call refers to a business call directly associated with the providers directory, and the Nth-level call refers to a business call indirectly associated with the providers directory; When the service call type is a first-level call, obtain the service configuration information corresponding to the service change operation, wherein the service configuration information includes at least one service configuration name and a service configuration value corresponding to each of the at least one service configuration name; and Based on the at least one service configuration name, the service configuration values corresponding to each of the at least one service configuration names are verified to obtain information verification results.
2. The method of claim 1, wherein, The business change types also include node deletion operations and node modification operations, and the business call types also include Nth-level calls, where N is a positive integer greater than 1; The method further includes: If the service change type in the service configuration request is either the node deletion operation or the node modification operation, determine the information verification result indicating that the service configuration information verification has passed; and When the service call type is the Nth level call, determine the information verification result that indicates the service configuration information has passed verification.
3. The method of claim 1, wherein, In response to receiving a business configuration request corresponding to a business change operation, if the business change type in the business configuration request is a node addition operation, determining the business call type corresponding to the business change operation includes: In response to receiving the service configuration request, determine the service change type based on the service configuration request; When the service change type is a node addition operation, determine the address information corresponding to the service change operation, wherein the address information includes path information; and The service call type is determined based on the path information.
4. The method of claim 3, wherein, The address information also includes domain name information; When the service call type is a first-level call, obtaining the service configuration information corresponding to the service change operation includes: When the business call type is a first-level call, an information retrieval request is sent to the target distributed application coordinator corresponding to the domain name information according to the domain name information; Receive raw service configuration information from the target distributed application coordinator; and The service configuration information is determined based on the original service configuration information.
5. The method of claim 4, wherein, The step of determining the service configuration information based on the original service configuration information includes: Based on the first predetermined character, character matching is performed on the original service configuration information to obtain at least one service configuration key-value pair; and For each of at least one service configuration key-value pair, According to a second predetermined character, character matching is performed on the service configuration key-value pair to obtain a service configuration name and a service configuration value corresponding to the service configuration key-value pair.
6. The method of any one of claims 1 to 3, wherein, The information verification result is obtained by performing verification on the service configuration values corresponding to the at least one service configuration name respectively according to the at least one service configuration name. For each service configuration name in the at least one service configuration name, According to the service configuration name, a predetermined verification rule corresponding to the service configuration name is determined; According to the predetermined verification rule, verification is performed on the service configuration value corresponding to the service configuration name to obtain a sub-verification result; and The information verification result is determined according to the sub-verification results corresponding to the at least one service configuration name respectively.
7. The method of claim 6, wherein, The predetermined verification rule includes at least one of a threshold verification rule, a regular verification rule, and a compliance verification rule; In the case where the predetermined verification rule is a threshold verification rule, the verification on the service configuration value corresponding to the service configuration name according to the predetermined verification rule to obtain a sub-verification result includes: Threshold verification is performed on the service configuration value based on a predetermined threshold to obtain a threshold verification result; In the case where the threshold verification result indicates that the predetermined threshold and the service configuration value match, the sub-verification result indicating that the service configuration information verification passes is determined; and In the case where the threshold verification result indicates that the predetermined threshold and the service configuration value do not match, the sub-verification result indicating that the service configuration information verification fails is determined.
8. The method of claim 7, wherein, In the case where the predetermined verification rule is a regular verification rule, the verification on the service configuration value corresponding to the service configuration name according to the predetermined verification rule to obtain a sub-verification result includes: Regular verification is performed on the service configuration value based on predetermined text information to obtain a regular verification result; In the case where the regular verification result indicates that the predetermined text information and the service configuration value match, the sub-verification result indicating that the service configuration information verification passes is determined; and In the case where the regular verification result indicates that the predetermined text information and the service configuration value do not match, the sub-verification result indicating that the service configuration information verification fails is determined.
9. The method of claim 7, wherein, In the case where the predetermined verification rule is a compliance verification rule, the verification on the service configuration value corresponding to the service configuration name according to the predetermined verification rule to obtain a sub-verification result includes: According to the service configuration name, a target service configuration value corresponding to the service configuration name is obtained from a data source by using a data interface; Compliance verification is performed on the service configuration value according to the target service configuration value to obtain a compliance verification result; In the case where the compliance verification result indicates that the target service configuration value and the service configuration value match, the sub-verification result indicating that the service configuration information verification passes is determined; and In the case where the compliance verification result indicates that the target service configuration value and the service configuration value do not match, the sub-verification result indicating that the service configuration information verification fails is determined.
10. The method of claim 6, wherein, The step of determining the information verification result based on the sub-verification results corresponding to each of the at least one service configuration name includes: If, in the sub-verification results corresponding to each of the at least one service configuration name, there exists a sub-verification result indicating that the service configuration information verification failed, then the information verification result indicating that the service configuration information verification failed is determined; and If each sub-verification result in the sub-verification results corresponding to the at least one service configuration name indicates that the service configuration information has passed verification, then the information verification result indicating that the service configuration information has passed verification is determined.
11. The method according to any one of claims 1 to 3, further comprising, before determining the service call type corresponding to the service change operation in response to receiving a service configuration request corresponding to a service change operation, provided that the service change type in the service configuration request is a node addition operation: Establish communication connections between the distributed application coordinator cluster and the business unit cluster; and Based on the communication connection, the service configuration request is received.
12. The method according to any one of claims 1 to 3, further comprising, after verifying the service configuration value corresponding to each of the at least one service configuration name according to the at least one service configuration name, and obtaining the information verification result: If the information verification result indicates that the service configuration information has passed verification, then the execution of the service configuration request is permitted; and If the information verification result indicates that the service configuration information has failed verification, a warning message will be output.
13. An information verification device, comprising: The determination module is used to respond to receiving a business configuration request corresponding to a business change operation. If the business change type in the business configuration request is a node addition operation, the module determines the business call type corresponding to the business change operation. The business call type includes at least one of the following: a first-level call and an Nth-level call. The first-level call refers to a business call directly associated with the providers directory, and the Nth-level call refers to a business call indirectly associated with the providers directory. The acquisition module is configured to, when the business call type is a first-level call, acquire business configuration information corresponding to the business change operation, wherein the business configuration information includes at least one business configuration name and a business configuration value corresponding to each of the at least one business configuration name; and The verification module is used to verify the service configuration values corresponding to each of the at least one service configuration name, and obtain the information verification result.
14. An electronic device, comprising: One or more processors; Memory, used to store one or more instructions. When the one or more instructions are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method of any one of claims 1 to 12.
15. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method of any of claims 1 to 12.
16. A computer program product comprising computer-executable instructions that, when executed, perform the method of any of claims 1 to 12.
Citation Information
Patent Citations
Distributed database data processing method and device, storage medium and electronic device
CN110019469A
Service configuration method and device
CN114064035A