[go: up one dir, main page]

CN116226236A - Information verification method and device, electronic device, and computer-readable storage medium - Google Patents

Information verification method and device, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN116226236A
CN116226236A CN202310261301.9A CN202310261301A CN116226236A CN 116226236 A CN116226236 A CN 116226236A CN 202310261301 A CN202310261301 A CN 202310261301A CN 116226236 A CN116226236 A CN 116226236A
Authority
CN
China
Prior art keywords
service configuration
service
verification
information
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310261301.9A
Other languages
Chinese (zh)
Other versions
CN116226236B (en
Inventor
高楚皓
桑银邦
魏鑫
孙才婵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310261301.9A priority Critical patent/CN116226236B/en
Publication of CN116226236A publication Critical patent/CN116226236A/en
Application granted granted Critical
Publication of CN116226236B publication Critical patent/CN116226236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Fuzzy Systems (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure provides an information verification method and device, electronic equipment and a computer readable storage medium, and can be applied to the technical field of computers, the technical field of data processing and the financial field. The information verification method comprises the following steps: in response to receiving a service configuration request corresponding to a service change operation, determining a service call type corresponding to the service change operation under the condition that the service change type in the service configuration request is a node newly-added operation; acquiring service configuration information corresponding to the service change operation under the condition that the service call type is a first-level call, 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; and respectively checking the service configuration values corresponding to the at least one service configuration name according to the at least one service configuration name to obtain an information checking result.

Description

信息校验方法及装置、电子设备和计算机可读存储介质Information verification method and device, electronic device, and computer-readable storage medium

技术领域technical field

本公开涉及计算机技术领域、数据处理技术领域和金融领域,更具体地,涉及一种信息校验方法及装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the field of computer technology, the field of data processing technology, and the field of finance, and more specifically, to an information verification method and device, electronic equipment, a computer-readable storage medium, and a computer program product.

背景技术Background technique

随着计算机技术的发展,分布式系统(Distributed Database System,DDBS)应运而生。With the development of computer technology, Distributed Database System (DDBS) came into being.

分布式系统可以指多个处理机通过通信线路互联而构成的松散耦合的系统。分布式系统可以运行有多个分布式应用程序。如何为多个分布式应用程序提供一致性的服务配置的治理是亟待解决的问题。A distributed system can refer to a loosely coupled system composed of multiple processors interconnected by communication lines. A distributed system can run multiple distributed applications. How to provide consistent service configuration governance for multiple distributed applications is an urgent problem to be solved.

在实现本公开构思的过程中,发明人发现相关技术中至少存在如下问题:由于通常基于架构层面进行服务治理,因而容易存在参数值配置不合理或者配置错误的问题,进而导致无法保障服务配置的治理的效率和准确性。In the process of realizing the disclosed concept, the inventors found at least the following problems in the related technologies: because the service governance is usually based on the architecture level, it is easy to have the problem of unreasonable or wrong parameter value configuration, which leads to the inability to guarantee the service configuration. Efficiency and accuracy of governance.

发明内容Contents of the invention

有鉴于此,本公开提供了一种信息校验方法及装置、电子设备、计算机可读存储介质和计算机程序产品。In view of this, the present disclosure provides an information verification method and device, electronic equipment, a computer-readable storage medium, and a computer program product.

根据本公开的一个方面,提供了一种信息校验方法,包括:According to an aspect of the present disclosure, a method for verifying information is provided, including:

响应于接收到与业务变更操作对应的业务配置请求,在上述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与上述业务变更操作对应的业务调用类型;In response to receiving a service configuration request corresponding to a service change operation, if the service change type in the above service configuration request is a node addition operation, determine the service call type corresponding to the above service change operation;

在上述业务调用类型为第一层级调用的情况下,获取与上述业务变更操作对应的业务配置信息,其中,上述业务配置信息包括至少一个业务配置名称和与上述至少一个业务配置名称各自对应的业务配置值;以及In the case that the above-mentioned service call type is a first-level call, obtain the service configuration information corresponding to the above-mentioned service change operation, wherein the above-mentioned service configuration information includes at least one service configuration name and the service corresponding to each of the above-mentioned at least one service configuration name configuration values; and

根据上述至少一个业务配置名称,对与上述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。According to the at least one service configuration name, the service configuration values corresponding to the at least one service configuration name are respectively checked to obtain an information check result.

根据本公开的实施例,上述业务变更类型还包括节点删除操作和节点修改操作,上述业务调用类型还包括第N层级调用,N为大于1的正整数。According to an embodiment of the present disclosure, the above-mentioned service change type also includes node deletion operation and node modification operation, and the above-mentioned service call type also includes Nth-level call, where N is a positive integer greater than 1.

根据本公开的实施例,上述信息校验方法还包括:According to an embodiment of the present disclosure, the above information verification method further includes:

在上述业务配置请求中的业务变更类型为上述节点删除操作和上述节点修改操作中的任一项的情况下,确定表征上述业务配置信息校验通过的上述信息校验结果;以及When the service change type in the above service configuration request is any one of the above node deletion operation and the above node modification operation, determine the above information verification result representing the passing of the above service configuration information verification; and

在上述业务调用类型为上述第N层级调用的情况下,确定表征上述业务配置信息校验通过的上述信息校验结果。In the case that the service invocation type is the Nth level invocation, determine the information verification result indicating that the service configuration information has passed the verification.

根据本公开的实施例,上述响应于接收到与业务变更操作对应的业务配置请求,在上述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与上述业务变更操作对应的业务调用类型包括:According to an embodiment of the present disclosure, in response to receiving the service configuration request corresponding to the service change operation, if the service change type in the service configuration request is a node addition operation, determine the service corresponding to the service change operation Call types include:

响应于接收到上述业务配置请求,根据上述业务配置请求,确定上述业务变更类型;In response to receiving the above service configuration request, determine the above service change type according to the above service configuration request;

在上述业务变更类型为上述节点新增操作的情况下,确定与上述业务变更操作对应的地址信息,其中,上述地址信息包括路径信息;以及When the above-mentioned service change type is the above-mentioned node addition operation, determine the address information corresponding to the above-mentioned service change operation, wherein the above-mentioned address information includes path information; and

根据上述路径信息,确定上述业务调用类型。According to the above path information, the above service call type is determined.

根据本公开的实施例,上述地址信息还包括域名信息。According to an embodiment of the present disclosure, the above address information further includes domain name information.

根据本公开的实施例,上述在上述业务调用类型为第一层级调用的情况下,获取与上述业务变更操作对应的业务配置信息包括:According to an embodiment of the present disclosure, in the case where the above-mentioned service call type is a first-level call, obtaining the service configuration information corresponding to the above-mentioned service change operation includes:

在上述业务调用类型为第一层级调用的情况下,根据上述域名信息,向与上述域名信息对应的目标分布式应用程序协调业务器发送信息获取请求;In the case that the above-mentioned business call type is a first-level call, according to the above-mentioned domain name information, send an information acquisition request to the target distributed application coordinator corresponding to the above-mentioned domain name information;

接收来自于上述目标分布式应用程序协调业务器的原始业务配置信息;以及receiving the original service configuration information from the target distributed application coordinator; and

根据上述原始业务配置信息,确定上述业务配置信息。The above service configuration information is determined according to the above original service configuration information.

根据本公开的实施例,上述根据上述原始业务配置信息,确定上述业务配置信息包括:According to an embodiment of the present disclosure, determining the above-mentioned service configuration information according to the above-mentioned original service configuration information includes:

根据第一预定字符,对上述原始业务配置信息进行字符匹配,得到至少一个业务配置键值对;以及Perform character matching on the original service configuration information according to the first predetermined character to obtain at least one service configuration key-value pair; and

针对至少一个业务配置键值对中的每个业务配置键值对,For each business configuration key-value pair in at least one business configuration key-value pair,

根据第二预定字符,对上述业务配置键值对进行字符匹配,得到与上述业务配置键值对对应的业务配置名称和业务配置值。Perform character matching on the above-mentioned service configuration key-value pair according to the second predetermined character, and obtain the service configuration name and service configuration value corresponding to the above-mentioned service configuration key-value pair.

根据本公开的实施例,上述根据上述至少一个业务配置名称,对与上述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果包括:According to an embodiment of the present disclosure, the service configuration values corresponding to the at least one service configuration name are respectively verified according to the at least one service configuration name, and the information verification results obtained include:

针对上述至少一个业务配置名称中的每个业务配置名称,for each business configuration name in at least one of the above business configuration names,

根据上述业务配置名称,确定与上述业务配置名称对应的预定校验规则;According to the above-mentioned service configuration name, determine a predetermined verification rule corresponding to the above-mentioned service configuration name;

根据上述预定校验规则,对与上述业务配置名称对应的业务配置值进行校验,得到子校验结果;以及According to the above-mentioned predetermined verification rules, verify the service configuration value corresponding to the above-mentioned service configuration name to obtain a sub-verification result; and

根据与上述至少一个业务配置名称各自对应的子校验结果,确定上述信息校验结果。The information verification result is determined according to the sub-verification results respectively corresponding to the at least one service configuration name.

根据本公开的实施例,上述预定校验规则包括阈值校验规则、正则校验规则和合规校验规则中的至少之一。According to an embodiment of the present disclosure, the predetermined verification rule includes at least one of a threshold verification rule, a regularity verification rule, and a compliance verification rule.

根据本公开的实施例,在上述预定校验规则为阈值校验规则的情况下,上述根据上述预定校验规则,对与上述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:According to an embodiment of the present disclosure, when the above-mentioned predetermined verification rule is a threshold value verification rule, according to the above-mentioned predetermined verification rule, the service configuration value corresponding to the above-mentioned service configuration name is verified to obtain a sub-verification result include:

基于预定阈值,对上述业务配置值进行阈值校验,得到阈值校验结果;Based on a predetermined threshold, threshold verification is performed on the above service configuration value to obtain a threshold verification result;

在上述阈值校验结果表征上述预定阈值和上述业务配置值相匹配的情况下,确定表征上述业务配置信息校验通过的上述子校验结果;以及When the threshold verification result indicates that the predetermined threshold matches the service configuration value, determine the sub-verification result indicating that the service configuration information passes the verification; and

在上述阈值校验结果表征上述预定阈值和上述业务配置值未匹配的情况下,确定表征上述业务配置信息校验未通过的上述子校验结果。If the threshold verification result indicates that the predetermined threshold does not match the service configuration value, determine the sub-verification result indicating that the service configuration information has not passed the verification.

根据本公开的实施例,在上述预定校验规则为正则校验规则的情况下,上述根据上述预定校验规则,对与上述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:According to an embodiment of the present disclosure, in the case where the above-mentioned predetermined verification rule is a regular verification rule, according to the above-mentioned predetermined verification rule, the service configuration value corresponding to the above-mentioned service configuration name is verified to obtain a sub-verification result include:

基于预定文本信息,对上述业务配置值进行正则校验,得到正则校验结果;Based on the predetermined text information, regularity verification is performed on the above service configuration value to obtain a regularity verification result;

在上述正则校验结果表征上述预定文本信息和上述业务配置值相匹配的情况下,确定表征上述业务配置信息校验通过的上述子校验结果;以及In the case where the above-mentioned regular check result indicates that the above-mentioned predetermined text information matches the above-mentioned service configuration value, determine the above-mentioned sub-check result indicating that the above-mentioned service configuration information passes the check; and

在上述正则校验结果表征上述预定文本信息和上述业务配置值未匹配的情况下,确定表征上述业务配置信息校验未通过的上述子校验结果。In a case where the regular check result indicates that the predetermined text information does not match the service configuration value, determine the sub-check result indicating that the service configuration information fails the check.

根据本公开的实施例,在上述预定校验规则为合规校验规则的情况下,上述根据上述预定校验规则,对与上述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:According to an embodiment of the present disclosure, when the above-mentioned predetermined verification rule is a compliance verification rule, the above-mentioned service configuration value corresponding to the above-mentioned service configuration name is verified according to the above-mentioned predetermined verification rule to obtain a sub-verification Results include:

根据上述业务配置名称,利用数据接口从数据源中获取与上述业务配置名称对应的目标业务配置值;According to the above business configuration name, use the data interface to obtain the target business configuration value corresponding to the above business configuration name from the data source;

根据上述目标业务配置值,对上述业务配置值进行合规校验,得到合规校验结果;According to the above-mentioned target service configuration value, perform a compliance check on the above-mentioned service configuration value, and obtain a compliance check result;

在上述合规校验结果表征上述目标业务配置值和上述业务配置值相匹配的情况下,确定表征上述业务配置信息校验通过的上述子校验结果;以及In the case where the above-mentioned compliance check result indicates that the above-mentioned target service configuration value matches the above-mentioned service configuration value, determine the above-mentioned sub-check result that indicates that the above-mentioned service configuration information passes the check; and

在上述合规校验结果表征上述目标业务配置值和上述业务配置值未匹配的情况下,确定表征上述业务配置信息校验未通过的上述子校验结果。In a case where the compliance verification result indicates that the target service configuration value does not match the service configuration value, determine the sub-verification result indicating that the service configuration information verification fails.

根据本公开的实施例,上述根据与上述至少一个业务配置名称各自对应的子校验结果,确定上述信息校验结果包括:According to an embodiment of the present disclosure, determining the above-mentioned information verification result according to the sub-verification results corresponding to the above-mentioned at least one service configuration name includes:

在与上述至少一个业务配置名称各自对应的子校验结果中存在表征上述业务配置信息校验未通过的上述子校验结果的情况下,确定表征上述业务配置信息校验未通过的上述信息校验结果;以及In the case that the sub-verification results corresponding to the at least one service configuration name respectively have the above-mentioned sub-verification results that indicate that the above-mentioned service configuration information has not passed the verification, determine the above-mentioned information verification that indicates that the above-mentioned business configuration information has not passed the verification. test results; and

在与上述至少一个业务配置名称各自对应的子校验结果中的每个子校验结果均表征上述业务配置信息校验通过的情况下,确定表征上述业务配置信息校验通过的上述信息校验结果。In the case where each of the sub-verification results corresponding to the at least one service configuration name respectively indicates that the above-mentioned service configuration information has passed the verification, determine the above-mentioned information verification result that indicates that the above-mentioned business configuration information has passed the verification .

根据本公开的实施例,信息校验方法还包括,在上述响应于接收到与业务变更操作对应的业务配置信息,在上述业务配置信息中的业务变更类型为节点新增操作的情况下,确定与上述业务变更操作对应的业务调用类型之前:According to an embodiment of the present disclosure, the information verification method further includes, in response to receiving the service configuration information corresponding to the service change operation, when the service change type in the service configuration information is a node addition operation, determine Before the business call type corresponding to the above business change operation:

建立与分布式应用程序协调业务器集群之间的通信连接;以及establishing a communication connection with the distributed application coordinating business server cluster; and

基于上述通信连接,接收上述业务配置请求。Based on the communication connection, the service configuration request is received.

根据本公开的实施例,信息校验方法还包括,在上述根据上述至少一个业务配置名称,对与上述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果之后:According to an embodiment of the present disclosure, the information verification method further includes, after verifying the service configuration values respectively corresponding to the at least one service configuration name according to the above at least one service configuration name, and obtaining the information verification result:

在上述信息校验结果表征上述业务配置信息校验通过的情况下,许可执行上述业务配置信息;以及In the case where the above-mentioned information verification result indicates that the above-mentioned business configuration information has passed the verification, the execution of the above-mentioned business configuration information is permitted; and

在上述信息校验结果表征上述业务配置信息校验未通过的情况下,输出预警信息。If the information verification result indicates that the service configuration information verification fails, output warning information.

根据本公开的另一个方面,提供了一种信息校验装置,包括:According to another aspect of the present disclosure, an information verification device is provided, including:

确定模块,用于响应于接收到与业务变更操作对应的业务配置请求,在上述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与上述业务变更操作对应的业务调用类型;A determination module, configured to, in response to receiving a service configuration request corresponding to a service change operation, determine a service call type corresponding to the above service change operation when the service change type in the above service configuration request is a node addition operation;

获取模块,用于在上述业务调用类型为第一层级调用的情况下,获取与上述业务变更操作对应的业务配置信息,其中,上述业务配置信息包括至少一个业务配置名称和与上述至少一个业务配置名称各自对应的业务配置值;以及An obtaining module, configured to obtain service configuration information corresponding to the above-mentioned service change operation when the above-mentioned service call type is a first-level call, wherein the above-mentioned service configuration information includes at least one service configuration name and the at least one service configuration name. The business configuration values corresponding to the respective names; and

校验模块,用于根据上述至少一个业务配置名称,对与上述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。The checking module is configured to check the service configuration values respectively corresponding to the at least one service configuration name according to the at least one service configuration name, and obtain information verification results.

根据本公开的另一个方面,提供了一种电子设备,包括:According to another aspect of the present disclosure, an electronic device is provided, including:

一个或多个处理器;one or more processors;

存储器,用于存储一个或多个指令,memory for storing one or more instructions,

其中,当上述一个或多个指令被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如本公开所述的方法。Wherein, when the above-mentioned one or more instructions are executed by the above-mentioned one or more processors, the above-mentioned one or more processors are made to implement the method as described in the present disclosure.

根据本公开的另一个方面,提供了一种计算机可读存储介质,其上存储有可执行指令,上述可执行指令被处理器执行时使处理器实现如本公开所述的方法。According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored, and when executed by a processor, the executable instruction causes the processor to implement the method as described in the present disclosure.

根据本公开的另一个方面,提供了一种计算机程序产品,上述计算机程序产品包括计算机可执行指令,上述计算机可执行指令在被执行时用于实现如本公开所述的方法。According to another aspect of the present disclosure, there is provided a computer program product comprising computer-executable instructions for implementing the method as described in the present disclosure when executed.

根据本公开的实施例,由于业务配置信息是在业务调用类型为第一层级调用的情况下获取的,业务调用类型是在业务配置请求中的业务变更类型为节点新增操作的情况下确定的,因而能够实现业务变更类型为节点新增操作且业务调用类型为第一层级调用情况下的业务配置信息的自动获取,由此提高了信息校验的效率。在此基础上,由于能够针对与至少一个业务配置名称各自对应的业务配置值分别进行校验,因而至少部分地克服了相关技术中存在参数值配置不合理或者配置错误的技术问题,提高了信息校验的准确性,进而提高了业务配置治理的准确性。According to the embodiment of the present disclosure, since the service configuration information is obtained when the service call type is a first-level call, the service call type is determined when the service change type in the service configuration request is a node addition operation , so it is possible to realize the automatic acquisition of the service configuration information when the service change type is a node addition operation and the service call type is a first-level call, thereby improving the efficiency of information verification. On this basis, since the business configuration values corresponding to at least one business configuration name can be verified separately, the technical problem of unreasonable or wrong configuration of parameter values in the related technology is at least partially overcome, and the information is improved. The accuracy of verification improves the accuracy of business configuration management.

附图说明Description of drawings

通过以下参照附图对本公开实施例的描述,本公开的上述以及其他目的、特征和优点将更为清楚,在附图中:The above and other objects, features and advantages of the present disclosure will be more clearly described through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

图1示意性示出了根据本公开实施例的可以应用信息校验方法的系统架构;FIG. 1 schematically shows a system architecture to which an information verification method can be applied according to an embodiment of the present disclosure;

图2示意性示出了根据本公开实施例的信息校验方法的流程图;FIG. 2 schematically shows a flowchart of an information verification method according to an embodiment of the present disclosure;

图3示意性示出了根据本公开实施例的响应于接收到与业务变更操作对应的业务配置请求,在业务配置请求中的业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的业务调用类型过程的示例示意图;Fig. 3 schematically shows that according to an embodiment of the present disclosure, in response to receiving a service configuration request corresponding to a service change operation, in the case that the service change type in the service configuration request is a node addition operation, determining the corresponding service change operation An example schematic diagram of the corresponding business call type process;

图4A示意性示出了根据本公开实施例的在业务调用类型为第一层级调用的情况下,获取与业务变更操作对应的业务配置信息过程的示例示意图;Fig. 4A schematically shows an example schematic diagram of the process of obtaining service configuration information corresponding to a service change operation when the service call type is a first-level call according to an embodiment of the present disclosure;

图4B示意性示出了根据本公开实施例的根据原始业务配置信息,确定业务配置信息过程的示例示意图;Fig. 4B schematically shows an exemplary schematic diagram of a process of determining service configuration information according to original service configuration information according to an embodiment of the present disclosure;

图5示意性示出了根据本公开实施例的根据至少一个业务配置名称,对与至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果过程的示例示意图;Fig. 5 schematically shows an exemplary schematic diagram of the process of respectively verifying service configuration values corresponding to at least one service configuration name according to at least one service configuration name to obtain information verification results according to an embodiment of the present disclosure;

图6示意性示出了根据本公开实施例的信息校验过程的示例示意图;FIG. 6 schematically shows an exemplary schematic diagram of an information verification process according to an embodiment of the present disclosure;

图7示意性示出了根据本公开的实施例的信息校验装置的框图;以及Fig. 7 schematically shows a block diagram of an information verification device according to an embodiment of the present disclosure; and

图8示意性示出了根据本公开实施例的适于实现信息校验方法的电子设备的框图。Fig. 8 schematically shows a block diagram of an electronic device suitable for implementing an information verification method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下,将参照附图来描述本公开的实施例。但是应该理解,这些描述只是示例性的,而并非要限制本公开的范围。在下面的详细描述中,为便于解释,阐述了许多具体的细节以提供对本公开实施例的全面理解。然而,明显地,一个或多个实施例在没有这些具体细节的情况下也可以被实施。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本公开的概念。Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. It should be understood, however, that these descriptions are exemplary only, and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

在此使用的术语仅仅是为了描述具体实施例,而并非意在限制本公开。在此使用的术语“包括”、“包含”等表明了所述特征、步骤、操作和/或部件的存在,但是并不排除存在或添加一个或多个其他特征、步骤、操作或部件。The terminology used herein is for the purpose of describing particular embodiments only, and is not intended to be limiting of the present disclosure. The terms "comprising", "comprising", etc. used herein indicate the presence of stated features, steps, operations and/or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.

在此使用的所有术语(包括技术和科学术语)具有本领域技术人员通常所理解的含义,除非另外定义。应注意,这里使用的术语应解释为具有与本说明书的上下文相一致的含义,而不应以理想化或过于刻板的方式来解释。All terms (including technical and scientific terms) used herein have the meaning commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted to have a meaning consistent with the context of this specification, and not be interpreted in an idealized or overly rigid manner.

在使用类似于“A、B和C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B和C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。在使用类似于“A、B或C等中至少一个”这样的表述的情况下,一般来说应该按照本领域技术人员通常理解该表述的含义来予以解释(例如,“具有A、B或C中至少一个的系统”应包括但不限于单独具有A、单独具有B、单独具有C、具有A和B、具有A和C、具有B和C、和/或具有A、B、C的系统等)。Where expressions such as "at least one of A, B, and C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, and C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ). Where expressions such as "at least one of A, B, or C, etc." are used, they should generally be interpreted as those skilled in the art would normally understand the expression (for example, "having A, B, or C A system of at least one of "shall include, but not be limited to, systems with A alone, B alone, C alone, A and B, A and C, B and C, and/or A, B, C, etc. ).

在本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,采取了必要保密措施,且不违背公序良俗。In the technical solution of the present disclosure, the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, necessary confidentiality measures have been taken, and they do not violate public order and good customs.

在本公开的技术方案中,在获取或采集用户个人信息之前,均获取了用户的授权或同意。In the technical solution of the present disclosure, before acquiring or collecting the user's personal information, the user's authorization or consent is obtained.

在相关技术中,通常采用Zookeeper来为多个分布式应用程序提供一致性的服务配置的治理。In related technologies, Zookeeper is usually used to provide consistent service configuration management for multiple distributed applications.

Zookeeper可以指开源的分布式应用程序协调服务。分布式应用程序可以基于Zookeeper实现数据的发布和订阅、负载均衡、分布式协调和通知、集群管理、分布式锁和分布式队列等功能。Zookeeper can refer to an open source distributed application coordination service. Distributed applications can implement functions such as data publishing and subscription, load balancing, distributed coordination and notification, cluster management, distributed locks and distributed queues based on Zookeeper.

但是,由于基于架构层面的服务治理对服务的配置参数不敏感,因而无法及时治理服务本身参数配置的问题,进而导致无法保障服务配置治理的效率。此外,由于某些参数采取变量文件等方式直接带出到生产,因而容易导致遗漏测试阶段,从而存在参数配置引发生产问题的隐患,进而无法保障服务配置治理的准确性。However, since the service governance based on the architecture level is not sensitive to the configuration parameters of the service, it cannot manage the parameter configuration of the service itself in a timely manner, which leads to the inability to guarantee the efficiency of the service configuration governance. In addition, because some parameters are directly brought out to production by means of variable files, etc., it is easy to miss the testing stage, so there is a hidden danger of parameter configuration causing production problems, and the accuracy of service configuration governance cannot be guaranteed.

为了至少部分地解决相关技术中存在的技术问题,本公开提供了一种信息校验方法及装置、电子设备和计算机可读存储介质,可以应用于计算机技术领域、数据处理技术领域和金融领域。该信息校验方法包括:响应于接收到与业务变更操作对应的业务配置请求,在业务配置请求中的业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的业务调用类型;在业务调用类型为第一层级调用的情况下,获取与业务变更操作对应的业务配置信息,其中,业务配置信息包括至少一个业务配置名称和与至少一个业务配置名称各自对应的业务配置值;根据至少一个业务配置名称,对与至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。In order to at least partly solve the technical problems in related technologies, the present disclosure provides an information verification method and device, electronic equipment, and a computer-readable storage medium, which can be applied in the fields of computer technology, data processing technology, and financial fields. The information verification method includes: in response to receiving a service configuration request corresponding to a service change operation, determining the service call type corresponding to the service change operation when the service change type in the service configuration request is a node addition operation; In the case where the service call type is a first-level call, 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 at least one service configuration name; according to At least one service configuration name, respectively verifying the service configuration values corresponding to the at least one service configuration name, to obtain information verification results.

需要说明的是,本公开实施例提供的信息校验方法和装置可用于计算机技术领域、数据处理技术领域和金融领域,例如应用于互联网技术领域。本公开实施例提供的信息校验方法和装置也可用于除计算机技术领域、数据处理技术领域和金融领域之外的任意领域,例如应用于业务治理领域。本公开实施例提供的信息校验方法和装置的应用领域不做限定。It should be noted that the information verification method and device provided by the embodiments of the present disclosure can be used in the fields of computer technology, data processing technology, and finance, for example, in the field of Internet technology. The information verification method and device provided by the embodiments of the present disclosure can also be used in any field other than the field of computer technology, data processing technology, and financial field, for example, in the field of business governance. The application fields of the information verification method and device provided in the embodiments of the present disclosure are not limited.

图1示意性示出了根据本公开实施例的可以应用信息校验方法的系统架构。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。Fig. 1 schematically shows a system architecture to which an information verification method can be applied according to an embodiment of the present disclosure. It should be noted that, what is shown in FIG. 1 is only an example of the system architecture to which the embodiments of the present disclosure can be applied, so as 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 used in other device, system, environment or scenario.

如图1所示,根据该实施例的系统架构100可以包括第一终端设备101、第二终端设备102、第三终端设备103,网络104和服务器105。网络104用以在第一终端设备101、第二终端设备102、第三终端设备103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 according to this embodiment may 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 used as a medium for providing communication links among the first terminal device 101 , the second terminal device 102 , the third terminal device 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户可以使用第一终端设备101、第二终端设备102、第三终端设备103中的至少一个通过网络104与服务器105交互,以接收或发送消息等。第一终端设备101、第二终端设备102、第三终端设备103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等(仅为示例)。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 and the like. 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. (examples only).

第一终端设备101、第二终端设备102、第三终端设备103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers and desktop computers etc.

服务器105可以是提供各种服务的服务器,例如对用户利用第一终端设备101、第二终端设备102、第三终端设备103所浏览的网站提供支持的后台管理服务器(仅为示例)。后台管理服务器可以对接收到的用户请求等数据进行分析等处理,并将处理结果(例如根据用户请求获取或生成的网页、信息、或数据等)反馈给终端设备。The server 105 may be a server that provides various services, such as a background management server that supports websites browsed by users using the first terminal device 101 , the second terminal device 102 , and the third terminal device 103 (just an example). The background management server can analyze and process received data such as user requests, and feed back processing results (such as webpages, information, or data obtained or generated according to user requests) to the terminal device.

需要说明的是,本公开实施例所提供的信息校验方法一般可以由服务器105执行。相应地,本公开实施例所提供的信息校验装置一般可以设置于服务器105中。本公开实施例所提供的信息校验方法也可以由不同于服务器105且能够与第一终端设备101、第二终端设备102、第三终端设备103和/或服务器105通信的服务器或服务器集群执行。相应地,本公开实施例所提供的信息校验装置也可以设置于不同于服务器105且能够与第一终端设备101、第二终端设备102、第三终端设备103和/或服务器105通信的服务器或服务器集群中。It should be noted that, generally, the information verification method provided by the embodiment of the present disclosure may be executed by the server 105 . Correspondingly, the information verification device provided by the embodiment of the present disclosure can generally be set in the server 105 . The information verification method provided by the embodiment of the present disclosure may also be performed by a server or server cluster that is different from the server 105 and can communicate 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 may also be set on a server 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 or in a server cluster.

备选地,本公开实施例所提供的信息校验方法也可以由第一终端设备101、第二终端设备102或第三终端设备103执行,或者也可以由不同于第一终端设备101、第二终端设备102或第三终端设备103的其他终端设备执行。相应地,本公开实施例所提供的信息校验装置也可以设置于第一终端设备101、第二终端设备102或第三终端设备103中,或设置于不同于第一终端设备101、第二终端设备102或第三终端设备103的其他终端设备中。Alternatively, the information verification method provided by the embodiment of the present disclosure may also be executed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may be performed by a user other than the first terminal device 101, the third terminal device The second terminal device 102 or other terminal devices of the third terminal device 103 execute. Correspondingly, the information verification device provided by the embodiments of the present disclosure may also be set in the first terminal device 101, the second terminal device 102 or the third terminal device 103, or be set in a different terminal device than the first terminal device 101, the second terminal device In other terminal devices of the terminal device 102 or the third terminal device 103 .

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

应注意,以下方法中各个操作的序号仅作为该操作的表示以便描述,而不应被看作表示该各个操作的执行顺序。除非明确指出,否则该方法不需要完全按照所示顺序来执行。It should be noted that the sequence number of each operation in the following methods is only used as a representation of the operation for description, and should not be regarded as indicating the execution order of the respective operations. The methods do not need to be performed in the exact order presented, unless explicitly stated otherwise.

图2示意性示出了根据本公开实施例的信息校验方法的流程图。Fig. 2 schematically shows a flowchart of an information verification method according to an embodiment of the present disclosure.

如图2所示,该信息校验方法200包括操作S210~S230。As shown in FIG. 2 , the information verification method 200 includes operations S210-S230.

在操作S210,响应于接收到与业务变更操作对应的业务配置请求,在业务配置请求中的业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的业务调用类型。In operation S210, in response to receiving the service configuration request corresponding to the service change operation, if the service change type in the service configuration request is node addition operation, determine the service call type corresponding to the service change operation.

在操作S220,在业务调用类型为第一层级调用的情况下,获取与业务变更操作对应的业务配置信息,其中,业务配置信息包括至少一个业务配置名称和与至少一个业务配置名称各自对应的业务配置值。In operation S220, when 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 the service corresponding to the at least one service configuration name configuration value.

在操作S230,根据至少一个业务配置名称,对与至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。In operation S230, according to the at least one service configuration name, respectively verify the service configuration values corresponding to the at least one service configuration name, and obtain an information verification result.

根据本公开的实施例,信息校验方法例如可以应用于开源客户端对分布式应用程序协调业务器(即Zookeeper)推送的信息进行校验。According to the embodiments of the present 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 server (that is, Zookeeper).

根据本公开的实施例,分布式应用程序协调业务器可以指分布式的服务框架,能够用于解决分布式集群中应用系统的一致性问题。分布式应用程序协调业务器能够提供基于类似于文件系统的目录节点树方式的数据存储,以便于维护和监控存储数据的状态变化。通过监控数据状态变化,根据数据状态变化生成业务配置请求,并将业务配置请求发送至开源客户端,以便于开源客户端对推送信息进行校验,进而完成基于数据的集群管理。According to the embodiment of the present disclosure, the distributed application program coordinator may refer to a distributed service framework, which can be used to solve the consistency problem of the application system in the distributed cluster. The distributed application coordinating service server can provide data storage based on a directory node tree similar to a file system, so as to maintain and monitor the state changes of stored data. By monitoring data status changes, business configuration requests are generated according to data status changes, and the business configuration requests are sent to open source clients, so that the open source clients can verify the push information and complete data-based cluster management.

根据本公开的实施例,可以将生成业务配置请求的代码预先写入脚本中,响应于检测到业务变更操作和存储数据的状态变化,分布式应用程序协调业务器可以运行该脚本,生成业务配置请求报文。分布式应用程序协调业务器可以将该业务配置请求报文发送至开源客户端,以便于开源客户端根据该业务配置请求报文,对与业务变更操作对应的业务配置信息进行校验。According to the embodiment of the present disclosure, the code for generating the service configuration request can be pre-written in the script, and in response to the detection of the service change operation and the state change of the stored data, the distributed application program coordination service unit can run the script to generate the service configuration request message. The distributed application coordinating service server can send the service configuration request message 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 message.

根据本公开的实施例,在开源客户端接收到业务配置请求之后,可以根据业务配置请求,确定业务配置请求中的业务变更类型。业务变更类型可以用于表征与业务变更操作对应的变更类型。业务变更类型可以包括以下至少之一:节点新增操作、节点删除操作和节点修改操作。节点新增操作可以指节点的创建操作,即某个分布式服务创建提供方实例或提供方节点。节点删除操作可以指节点的删除操作。节点修改操作可以指节点数据的修改、新增或删除操作。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 business change type can be used to represent the change type corresponding to the business change operation. The service change type may include at least one of the following: node addition operation, node deletion operation and node modification operation. The node addition operation may refer to a node creation operation, that is, a distributed service creates a provider instance or a provider node. A node deletion operation may refer to a node deletion operation. A node modification operation may refer to a modification, addition or deletion operation of node data.

根据本公开的实施例,在业务配置请求中的业务变更类型为节点删除操作和节点修改操作中的任一项的情况下,可以确定表征业务配置信息校验通过的信息校验结果。在业务配置请求中的业务变更类型为节点新增操作的情况下,可以确定业务调用类型。业务调用类型可以用于表征与业务变更操作对应的调用类型。业务调用类型可以包括以下至少之一:第一层级调用和第N层级调用。第一层级调用可以指与providers目录直接相关联的业务调用。第N层级调用可以指与providers目录间接相关联的业务调用。According to an embodiment of the present disclosure, when the service change type in the service configuration request is any one of node deletion operation and node modification operation, an information verification result indicating that the service configuration information passes the verification can be determined. In the case that the service change type in the service configuration request is a node addition operation, the service call type can be determined. The business call type can be used to represent the call type corresponding to the business change operation. The service call type may include at least one of the following: a first-level call and an N-th level call. The first-level call may refer to a service call directly associated with the providers directory. The call at the Nth level may refer to a service call indirectly associated with the providers directory.

根据本公开的实施例,在业务调用类型为第N层级调用的情况下,可以确定表征业务配置信息校验通过的信息校验结果。在业务调用类型为第一层级调用的情况下,可以从第一数据源中获取与业务变更操作对应的业务配置信息。业务配置信息可以包括至少一个业务配置键值对。至少一个业务配置键值对可以各自对应有业务配置名称和业务配置值。第一数据源可以包括以下至少之一:第一本地数据库、第一云数据库和第一网络资源。例如,可以调用数据接口,利用数据接口从数据源中获取与业务变更操作对应的业务配置信息。According to an embodiment of the present disclosure, in a case where the service invocation type is an Nth-level invocation, an information verification result indicating that the service configuration information passes the verification may be determined. In the case that the service invocation type is a first-level invocation, the service configuration information corresponding to the service change operation may be acquired from the first data source. The service configuration information may include at least one service configuration key-value pair. At least one service configuration key-value pair may respectively correspond to a service configuration name and a service configuration value. The first data source may include at least one of the following: a first local database, a first cloud database, and a first network resource. For example, the data interface can be called, and the service configuration information corresponding to the service change operation can be obtained from the data source by using the data interface.

根据本公开的实施例,在获得业务配置信息之后,可以针对至少一个业务配置名称中的每个业务配置名称,从第二数据源中获取与业务配置名称对应的预定校验规则。预定校验规则可以包括以下至少之一:阈值校验规则、正则校验规则和合规校验规则。第二数据源可以包括以下至少之一:第二本地数据库、第二云数据库和第二网络资源。在获得与业务配置名称对应的预定校验规则之后,可以根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到信息校验结果。According to an embodiment of the present disclosure, after obtaining the service configuration information, for each of the at least one service configuration name, a predetermined verification rule corresponding to the service configuration name may be obtained from the second data source. The predetermined verification rules may include at least one of the following: threshold verification rules, regularity verification rules, and compliance verification rules. The second data source may include at least one of the following: a second local database, a second cloud database, and a second network resource. After the predetermined verification rule corresponding to the service configuration name is obtained, the service configuration value corresponding to the service configuration name may be verified according to the predetermined verification rule to obtain an information verification result.

根据本公开的实施例,信息校验结果可以用于表征业务配置信息是否通过校验。在信息校验结果表征业务配置信息校验通过的情况下,可以许可执行业务配置请求。在信息校验结果表征业务配置信息校验未通过的情况下,可以输出预警信息。According to an embodiment of the present disclosure, the information verification result may be used to indicate whether the service configuration information passes the verification. In the case where the information verification result indicates that the service configuration information has passed the verification, the service configuration request may be permitted to be executed. In the case where the information verification result indicates that the service configuration information verification fails, early warning information may be output.

根据本公开的实施例,由于业务配置信息是在业务调用类型为第一层级调用的情况下获取的,业务调用类型是在业务配置请求中的业务变更类型为节点新增操作的情况下确定的,因而能够实现业务变更类型为节点新增操作且业务调用类型为第一层级调用情况下的业务配置信息的自动获取,由此提高了信息校验的效率。在此基础上,由于能够针对与至少一个业务配置名称各自对应的业务配置值分别进行校验,因而至少部分地克服了相关技术中存在参数值配置不合理或者配置错误的技术问题,提高了信息校验的准确性,进而提高了业务配置治理的准确性。According to the embodiment of the present disclosure, since the service configuration information is obtained when the service call type is a first-level call, the service call type is determined when the service change type in the service configuration request is a node addition operation , so it is possible to realize the automatic acquisition of the service configuration information when the service change type is a node addition operation and the service call type is a first-level call, thereby improving the efficiency of information verification. On this basis, since the business configuration values corresponding to at least one business configuration name can be verified separately, the technical problem of unreasonable or wrong configuration of parameter values in the related technology is at least partially overcome, and the information is improved. The accuracy of verification improves the accuracy of business configuration management.

下面参考图3、图4A、图4B、图5和图6,对根据本发明实施例的信息校验方法200做进一步说明。Referring to FIG. 3 , FIG. 4A , FIG. 4B , FIG. 5 and FIG. 6 , the information verification method 200 according to the embodiment of the present invention will be further described.

根据本公开的实施例,信息校验方法200还可以包括如下操作。According to an embodiment of the present disclosure, the information verification method 200 may further include the following operations.

建立与分布式应用程序协调业务器集群之间的通信连接。基于通信连接,接收业务配置请求。Establish a communication connection with the distributed application coordinating business server cluster. Based on the communication connection, a service configuration request is received.

根据本公开的实施例,分布式应用程序协调业务器集群可以包括至少一个分布式应用程序协调业务器(即zookeeper)。可以与需要治理的分布式应用程序协调业务器集群建立通信连接。例如,可以获取需要治理的集群标识,根据集群标识与需要治理的分布式应用程序协调业务器集群建立通信连接。According to an embodiment of the present disclosure, the distributed application coordination server cluster may include at least one distributed application coordination server (that is, zookeeper). A communication connection can be established with a cluster of distributed application coordination business servers that require governance. For example, the ID of the cluster that needs to be managed can be obtained, and a communication connection can be established with the distributed application coordination server cluster that needs to be managed according to the cluster ID.

根据本公开的实施例,在完成开源客户端与分布式应用程序协调业务器集群之间的通信连接建立之后,可以基于该通信连接,监听分布式应用程序协调业务器集群中各个节点的状态变化。在分布式应用程序协调业务器集群中的任意节点发生状态变化的情况下,可以触发监听事件,生成业务配置请求。分布式应用程序协调业务器集群可以将该业务配置请求发送至开源客户端,以便于开源客户端根据该业务配置请求,对与业务变更操作对应的业务配置信息进行校验。According to the embodiment of the present disclosure, after completing the establishment of the communication connection between the open source client and the distributed application coordination server cluster, based on the communication connection, the status change of each node in the distributed application coordination server cluster can be monitored . In the case of any node in the distributed application coordination service server cluster having a state change, a listening event can be triggered to generate a service configuration request. The distributed application coordinating service server 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.

根据本公开的实施例,由于业务配置请求是基于通信连接接收的,通信连接是建立在开源客户端与分布式应用程序协调业务器集群之间的,因而能够实现针对业务变更操作的自动监听,进而提高了信息校验的效率。According to the 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 coordinating service server cluster, it is possible to realize automatic monitoring of service change operations, Thus, the efficiency of information verification is improved.

根据本公开的实施例,信息校验方法200还可以包括如下操作。According to an embodiment of the present disclosure, the information verification method 200 may further include the following operations.

在业务配置请求中的业务变更类型为节点删除操作和节点修改操作中的任一项的情况下,确定表征业务配置信息校验通过的信息校验结果。在业务调用类型为第N层级调用的情况下,确定表征业务配置信息校验通过的信息校验结果。In the case that the service change type in the service configuration request is any one of node deletion operation and node modification operation, determine an information verification result indicating that the service configuration information has passed the verification. In the case that the service invocation type is an Nth-level invocation, an information verification result indicating that the service configuration information has passed the verification is determined.

根据本公开的实施例,业务变更类型还可以包括节点删除操作和节点修改操作。业务调用类型还可以包括第N层级调用。N可以为大于1的正整数。According to an embodiment of the present disclosure, the service change type may also include a node deletion operation and a node modification operation. The service call type may also include Nth-level call. N can be a positive integer greater than 1.

根据本公开的实施例,节点删除操作可以指节点的删除操作。节点修改操作可以指节点数据的修改、新增或删除操作。在业务配置请求中的业务变更类型为节点删除操作和节点修改操作中的任一项的情况下,可以直接确定表征业务配置信息校验通过的信息校验结果。According to an embodiment of the present disclosure, a node deletion operation may refer to a node deletion operation. A node modification operation may 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 node deletion operation and node modification operation, the information verification result indicating that the service configuration information passes the verification can be directly determined.

根据本公开的实施例,第N层级调用可以指与providers目录间接相关联的业务调用。在业务调用类型为第N层级调用的情况下,可以直接确定表征业务配置信息校验通过的信息校验结果。According to an embodiment of the present disclosure, the Nth level call may refer to a service call indirectly associated with the providers directory. In the case that the service invocation type is an Nth-level invocation, the information verification result indicating that the service configuration information has passed the verification can be directly determined.

根据本公开的实施例,由于在业务配置请求中的业务变更类型为节点删除操作和节点修改操作中的任一项或业务调用类型为第N层级调用的情况下,可以直接确定表征业务配置信息校验通过的信息校验结果,由此提高了信息校验的效率,进而提高了业务配置治理的效率。According to the embodiment of the present disclosure, since the service change type in the service configuration request is any one of node deletion operation and node modification operation or the service call type is Nth-level call, the representative service configuration information can be directly determined Verify the information verification results passed, thereby improving the efficiency of information verification, thereby improving the efficiency of business configuration management.

根据本公开的实施例,操作S210可以包括如下操作。According to an embodiment of the present disclosure, operation S210 may include the following operations.

响应于接收到业务配置请求,根据业务配置请求,确定业务变更类型。在业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的地址信息,其中,地址信息包括路径信息。根据路径信息,确定业务调用类型。In response to receiving the service configuration request, determine the service change type according to the service configuration request. In a case where the service change type is a node addition operation, address information corresponding to the service change operation is determined, where the address information includes path information. Determine the service call type according to the path information.

根据本公开的实施例,在业务变更类型为节点新增操作的情况下,可以确定与业务变更操作对应的地址信息。地址信息可以包括统一资源定位符(Uniform ResourceLocator,URL)。统一资源定位符可以指是因特网的万维网服务程序上用于指定信息位置的表示方法。地址信息可以包括以下至少之一:协议信息、服务器主机地址信息、端口信息、路径信息和参数信息。According to an embodiment of the present disclosure, in a case where the service change type is a node addition operation, address information corresponding to the service change operation may be determined. The address information may include a uniform resource locator (Uniform ResourceLocator, URL). A Uniform Resource Locator may refer to a representation used to designate the location of information on a World Wide Web service program on the Internet. The address information may include at least one of the following: protocol information, server host address information, port information, path information and parameter information.

根据本公开的实施例,协议信息可以包括以下至少之一:超文本传输协议(HyperText Transfer Protocol,HTTP)、超文本传输安全协议(Hypertext Transfer ProtocolSecure,HTTPS)和传输控制协议/网际协议(Transmission Control Protocol/InternetProtocol,TCP/IP)等。According to an embodiment of the present disclosure, the protocol information may include at least one of the following: Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP), Hypertext Transfer Protocol Secure (Hypertext Transfer ProtocolSecure, HTTPS) and Transmission Control Protocol/Internet Protocol (Transmission Control Protocol) Protocol/Internet Protocol, TCP/IP), etc.

根据本公开的实施例,服务器主机地址信息可以包括以下至少之一:域名信息、主机名称和网际互连协议(Internet Protocol,IP)地址。端口信息可以用于表征服务器设定的端口。参数信息可以用于表征查询搜索的参数。According to an embodiment of the present disclosure, the server host address information may include at least one of the following: domain name information, host name, and Internet Protocol (Internet Protocol, IP) address. The port information can be used to characterize the port set by the server. The parameter information can be used to characterize the parameters of the query search.

根据本公开的实施例,路径信息可以用于表征与业务变更操作对应的业务在服务器下的相对路径,例如,路径信息可以包括以下至少之一:目录和文件地址。在获得地址信息之后,可以根据地址信息中的路径信息,确定业务调用类型。According to an embodiment of the present disclosure, the path information may be used to characterize the relative path of the service corresponding to the service change operation under the server, for example, the path information may include at least one of the following: directory and file address. After the address information is obtained, the service invocation type can be determined according to the path information in the address information.

图3示意性示出了根据本公开实施例的响应于接收到与业务变更操作对应的业务配置请求,在业务配置请求中的业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的业务调用类型过程的示例示意图。Fig. 3 schematically shows that according to an embodiment of the present disclosure, in response to receiving a service configuration request corresponding to a service change operation, in the case that the service change type in the service configuration request is a node addition operation, determining the corresponding service change operation An example schematic diagram of the corresponding business call type process.

如图3所示,在300中,响应于接收到业务配置请求301,可以根据业务配置请求301,确定业务变更类型302。在获得业务变更类型302之后,可以执行操作S310。As shown in FIG. 3 , in 300 , in response to receiving a service configuration request 301 , a service change type 302 may be determined according to the service configuration request 301 . After the business change type 302 is obtained, operation S310 may be performed.

在操作S310,业务变更类型为节点新增操作?In operation S310, the service change type is node addition operation?

若否,则可以确定表征业务配置信息校验通过的信息校验结果303。If not, an information verification result 303 indicating that the service configuration information passes the verification may be determined.

若是,则可以确定与业务变更操作对应的地址信息304。地址信息304可以包括路径信息304_1。在获得路径信息304_1之后,可以根据路径信息路径信息304_1,确定业务调用类型305。If yes, address information 304 corresponding to the service change operation may be determined. Address information 304 may include path information 304_1. After the path information 304_1 is obtained, the service call type 305 can be determined according to the path information path information 304_1.

根据本公开的实施例,操作S220可以包括如下操作。According to an embodiment of the present disclosure, operation S220 may include the following operations.

在业务调用类型为第一层级调用的情况下,根据域名信息,向与域名信息对应的目标分布式应用程序协调业务器发送信息获取请求。接收来自于目标分布式应用程序协调业务器的原始业务配置信息。根据原始业务配置信息,确定业务配置信息。In the case that the service call type is a first-level call, an information acquisition request is sent to the target distributed application coordinator corresponding to the domain name information according to the domain name information. The original service configuration information from the target distributed application coordinator is received. Determine the service configuration information according to the original service configuration information.

根据本公开的实施例,地址信息还可以包括域名信息。According to an embodiment of the present disclosure, the address information may also include domain name information.

根据本公开的实施例,域名信息可以用于在数据传输时对计算机或计算机组进行定位标识。在业务调用类型为第一层级调用的情况下,开源客户端可以根据地址信息中的域名信息,向与域名信息对应的目标分布式应用程序协调业务器发送信息获取请求。According to an embodiment of the present disclosure, the domain name information may be used to locate and identify a computer or computer group during data transmission. In the case that the service call type is a first-level call, the open source client can send an information acquisition request to the target distributed application coordinating service server corresponding to the domain name information according to the domain name information in the address information.

根据本公开的实施例,目标分布式应用程序协调业务器在接收到来自于开源客户端的信息获取请求之后,可以获取与业务变更操作对应的原始业务配置信息。在获得原始业务配置信息之后,目标分布式应用程序协调业务器可以将该原始业务配置信息发送至开源客户端。According to the embodiment of the present disclosure, after receiving the information acquisition request from the open source client, the target distributed application coordinator can acquire the original service configuration information corresponding to the service change operation. After obtaining the original service configuration information, the target distributed application coordinator can send the original service configuration information to the open source client.

根据本公开的实施例,开源客户端在接收到来自于目标分布式应用程序协调业务器的原始业务配置信息之后,可以根据原始业务配置信息,确定业务配置信息。According to the embodiment of the present disclosure, after receiving the original service configuration information from the target distributed application coordinator, the open source client can determine the service configuration information according to the original service configuration information.

图4A示意性示出了根据本公开实施例的在业务调用类型为第一层级调用的情况下,获取与业务变更操作对应的业务配置信息过程的示例示意图。Fig. 4A schematically shows an exemplary schematic diagram of a process of obtaining service configuration information corresponding to a service change operation when the service call type is a first-level call according to an embodiment of the present disclosure.

如图4A所示,在400A中,在获得业务调用类型401之后,可以执行操作S410。As shown in FIG. 4A , in 400A, after the service call type 401 is obtained, operation S410 may be performed.

在操作S410,业务调用类型为第一层级调用?In operation S410, is the service call type a first-level call?

若否,则可以确定表征业务配置信息校验通过的信息校验结果402。If not, an information verification result 402 indicating that the service configuration information passes the verification may be determined.

若是,则可以根据地址信息403中的域名信息403_1,向与域名信息403_1对应的目标分布式应用程序协调业务器404发送信息获取请求。可以接收来自于目标分布式应用程序协调业务器404的原始业务配置信息405。根据原始业务配置信息405,确定业务配置信息406。If yes, according to the domain name information 403_1 in the address information 403, an information acquisition request may be sent to the target distributed application coordinator server 404 corresponding to the domain name information 403_1. Raw service configuration information 405 may be received from the target distributed application coordinator 404 . According to the original service configuration information 405, the service configuration information 406 is determined.

根据本公开的实施例,根据原始业务配置信息,确定业务配置信息可以包括如下操作。According to an embodiment of the present disclosure, according to the original service configuration information, determining the service configuration information may include the following operations.

根据第一预定字符,对原始业务配置信息进行字符匹配,得到至少一个业务配置键值对。针对至少一个业务配置键值对中的每个业务配置键值对,根据第二预定字符,对业务配置键值对进行字符匹配,得到与业务配置键值对对应的业务配置名称和业务配置值。According to the 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 at least one service configuration key-value pair, perform character matching on the service configuration key-value pair according to the second predetermined character, and obtain the service configuration name and service configuration value corresponding to the service configuration key-value pair .

根据本公开的实施例,第一预定字符和第二预定字符可以根据实际业务需求进行设置,在此不作限定。例如,第一预定字符可以为“&”,第二预定字符可以为“=”。业务配置名称例如可以包括业务并发配置和业务超时配置等。According to an embodiment of the present disclosure, the first predetermined character and the second predetermined character may be set according to actual service requirements, which are not limited herein. For example, the first predetermined character may be "&", and the second predetermined character may be "=". The business configuration name may include, for example, business concurrency configuration and business timeout configuration.

根据本公开的实施例,以原始业务配置信息为“key1=value1&key2=value2&key3=value3”为例,可以根据“&”对原始业务配置信息进行字符匹配,得到业务配置键值对“key1=value1”、业务配置键值对“key2=value2”和业务配置键值对“key3=value3”。According to the embodiment of the present disclosure, taking the original service configuration information as "key1=value1&key2=value2&key3=value3" as an example, character matching can be performed on the original service configuration information according to "&" to obtain the service configuration key-value pair "key1=value1" 1. The service configuration key-value pair "key2=value2" and the service configuration key-value pair "key3=value3".

根据本公开的实施例,可以根据“=”对业务配置键值对“key1=value1”进行字符匹配,得到与业务配置键值对“key1=value1”对应的业务配置名称“key1”和业务配置值“value1”。可以根据“=”对业务配置键值对“key2=value2”进行字符匹配,得到与业务配置键值对“key12=value2”对应的业务配置名称“key2”和业务配置值“value2”。可以根据“=”对业务配置键值对“key3=value3”进行字符匹配,得到与业务配置键值对“key3=value3”对应的业务配置名称“key3”和业务配置值“value3”。According to the embodiment of the present disclosure, character matching can be performed on the service configuration key-value pair "key1=value1" according to "=", and the service configuration name "key1" and service configuration corresponding to the service configuration key-value pair "key1=value1" can be obtained Value "value1". The service configuration key-value pair "key2=value2" can be character-matched according to "=" 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" according to "=" to obtain the service configuration name "key3" and service configuration value "value3" corresponding to the service configuration key-value pair "key3=value3".

根据本公开的实施例,由于业务配置名称和业务配置值是根据第二预定字符,对业务配置键值对进行字符匹配得到的,业务配置键值对是根据第一预定字符,对原始业务配置信息进行字符匹配得到的,由此实现了根据来自于目标分布式应用程序协调业务器的原始业务配置信息自动确定业务配置信息,有利于保障后续信息校验的效率和准确性。According to the embodiment of the present disclosure, since the service configuration name and the service configuration value are obtained by character matching the service configuration key-value pair according to the second predetermined character, the service configuration key-value pair is the original service configuration key-value pair according to the first predetermined character The information is obtained by character matching, so that the service configuration information can be automatically determined according to the original service configuration information from the target distributed application coordinating service server, which is conducive to ensuring the efficiency and accuracy of subsequent information verification.

图4B示意性示出了根据本公开实施例的根据原始业务配置信息,确定业务配置信息过程的示例示意图。Fig. 4B schematically shows an exemplary schematic diagram of a process of determining service configuration information according to original service configuration information according to an embodiment of the present disclosure.

如图4B所示,在400B中,在获得原始业务配置信息407之后,可以根据第一预定字符408,对原始业务配置信息407进行字符匹配,得到至少一个业务配置键值对。针对至少一个业务配置键值对中的每个业务配置键值对409,可以根据第二预定字符410,对业务配置键值对409进行字符匹配,得到与业务配置键值对409对应的业务配置名称411和业务配置值412。As shown in FIG. 4B , in 400B, after the original service configuration information 407 is obtained, character matching may 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 at least one service configuration key-value pair, the service configuration key-value pair 409 can be character-matched according to the second predetermined character 410 to obtain the service configuration corresponding to the service configuration key-value pair 409 Name 411 and Service Configuration Value 412.

根据本公开的实施例,操作S230可以包括如下操作。According to an embodiment of the present disclosure, operation S230 may include the following operations.

针对至少一个业务配置名称中的每个业务配置名称,根据业务配置名称,确定与业务配置名称对应的预定校验规则。根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到子校验结果。根据与至少一个业务配置名称各自对应的子校验结果,确定信息校验结果。For each of 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 a predetermined verification rule, the service configuration value corresponding to the service configuration name is verified to obtain a sub-verification result. The information verification result is determined according to the sub-verification results respectively corresponding to the at least one service configuration name.

根据本公开的实施例,在获得至少一个业务配置名称和与至少一个业务配置名称各自对应的业务配置值之后,可以分别确定与至少一个业务配置名称中的每个业务配置名称各自对应的预定校验规则。在获得预定校验规则之后,可以根据预定校验规则,对与业务配置名称对应的业务配置值进行校验。According to an embodiment of the present disclosure, after at least one service configuration name and the service configuration value corresponding to each of the at least one service configuration name are obtained, predetermined calibration values corresponding to each of the at least one service configuration name may be respectively determined. testing rules. After the predetermined verification rule is obtained, the service configuration value corresponding to the service configuration name may be verified according to the predetermined verification rule.

例如,在业务配置名称为“业务并发配置”的情况下,可以根据预定校验规则,确定与“业务并发配置”对应的业务配置值是否过小或过大。在业务配置名称为“业务超时配置”的情况下,可以根据预定校验规则,确定与“业务超时配置”对应的业务配置值是否过小或过大。For example, if the name of the business configuration is "concurrent business configuration", it may be determined whether the business configuration value corresponding to the "concurrent business configuration" is too small or too large according to a predetermined verification rule. If the service configuration name is "service timeout configuration", it may be determined whether the service configuration value corresponding to the "service timeout configuration" is too small or too large according to a predetermined verification rule.

图5示意性示出了根据本公开实施例的根据至少一个业务配置名称,对与至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果过程的示例示意图。Fig. 5 schematically shows an exemplary schematic diagram of a process of respectively verifying service configuration values corresponding to at least one service configuration name according to at least one service configuration name to obtain information verification results according to an embodiment of the present disclosure.

如图5所示,在500中,可以根据业务配置名称501,确定与业务配置名称501对应的预定校验规则。预定校验规则可以包括阈值校验规则502_1、正则校验规则502_2和合规校验规则502_3中的至少之一。As shown in FIG. 5 , at 500 , according to the service configuration name 501 , a predetermined verification rule corresponding to the service configuration name 501 may be determined. The predetermined verification rules may include at least one of threshold verification rules 502_1 , regularity verification rules 502_2 and compliance verification rules 502_3 .

在预定校验规则为阈值校验规则502_1的情况下,可以对业务配置值进行阈值校验,得到阈值校验结果503_1。In the case where the predetermined verification rule is the threshold verification rule 502_1, a threshold verification may be performed on the service configuration value to obtain a threshold verification result 503_1.

在预定校验规则为正则校验规则502_2的情况下,可以对业务配置值进行正则校验,得到正则校验结果503_2。In the case that the predetermined verification rule is a regularity verification rule 502_2, regularity verification can be performed on the service configuration value to obtain a regularity verification result 503_2.

在预定校验规则为合规校验规则502_3的情况下,可以对业务配置值进行合规校验,得到合规校验结果503_3。In the case where the predetermined verification rule is the compliance verification rule 502_3, the compliance verification may be performed on the service configuration value to obtain a compliance verification result 503_3.

可以根据阈值校验结果503_1、正则校验结果503_2和合规校验结果503_3中的至少之一,确定信息校验结果504。The information verification result 504 may be determined according to at least one of the threshold verification result 503_1 , regularity verification result 503_2 and compliance verification result 503_3 .

根据本公开的实施例,在预定校验规则为阈值校验规则的情况下,根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到子校验结果可以包括如下操作。According to an embodiment of the present disclosure, when the predetermined verification rule is a threshold verification rule, according to the predetermined verification rule, the service configuration value corresponding to the service configuration name is verified, and the sub-verification result may include the following operations .

基于预定阈值,对业务配置值进行阈值校验,得到阈值校验结果。在阈值校验结果表征预定阈值和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。在阈值校验结果表征预定阈值和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。Based on the predetermined threshold, threshold verification is performed on the service configuration value to obtain a threshold verification result. In the case that the threshold verification result indicates that the predetermined threshold matches the service configuration value, determine a sub-verification result indicating that the verification of the service configuration information passes. If the threshold verification result indicates that the predetermined threshold does not match the service configuration value, determine a sub-verification result indicating that the verification of the service configuration information fails.

根据本公开的实施例,预定校验规则可以包括阈值校验规则、正则校验规则和合规校验规则中的至少之一。According to an embodiment of the present disclosure, the predetermined verification rule may include at least one of a threshold verification rule, a regularity verification rule, and a compliance verification rule.

根据本公开的实施例,在预定校验规则为阈值校验规则的情况下,阈值校验结果可以用于表征预定阈值和业务配置值是否相匹配。预定阈值可以根据实际业务需求进行设置,在此不作限定。例如,预定阈值可以包括以下之一:单边阈值和双边阈值。According to an embodiment of the present disclosure, when the predetermined verification rule is a threshold verification rule, the threshold verification result may be used to indicate whether the predetermined threshold matches the service configuration value. The predetermined threshold can be set according to actual business requirements, and is not limited here. For example, the predetermined threshold may include one of the following: a unilateral threshold and a bilateral threshold.

例如,单边阈值可以包括“大于5”,在此情况下,需要确定业务配置值是否大于5,在业务配置值大于5的情况下,可以确定预定阈值和业务配置值相匹配,进而可以确定表征业务配置信息校验通过的子校验结果。For example, the unilateral threshold may include "greater than 5". In this case, it is necessary to determine whether the service configuration value is greater than 5. Indicates the sub-verification result of passing the verification of the service configuration information.

例如,双边阈值可以包括“大于5”且“小于10”,在此情况下,需要确定业务配置值是否大于5且小于10,在业务配置值大于5且小于10的情况下,可以确定预定阈值和业务配置值相匹配,进而可以确定表征业务配置信息校验通过的子校验结果。For example, the bilateral threshold may include "greater than 5" and "less than 10". In this case, it is necessary to determine whether the service configuration value is greater than 5 and less than 10. In the case of a business configuration value greater than 5 and less than 10, a predetermined threshold can be determined Matches the service configuration value, and then can determine the sub-verification result representing the passing of the verification of the service configuration information.

根据本公开的实施例,在预定校验规则为正则校验规则的情况下,根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到子校验结果可以包括如下操作。According to an embodiment of the present disclosure, when the predetermined verification rule is a regular verification rule, according to the predetermined verification rule, the service configuration value corresponding to the service configuration name is verified, and the sub-verification result may include the following operations .

基于预定文本信息,对业务配置值进行正则校验,得到正则校验结果。在正则校验结果表征预定文本信息和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。在正则校验结果表征预定文本信息和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。Based on the predetermined text information, regularity verification is performed on the service configuration value to obtain a regularity verification result. In the case that the regular verification result indicates that the predetermined text information matches the service configuration value, determine the sub-verification result indicating that the service configuration information passes the verification. In the case that the regular check result indicates that the predetermined text information does not match the service configuration value, determine a sub-check result indicating that the check of the service configuration information fails.

根据本公开的实施例,在预定校验规则为正则校验规则的情况下,预定文本信息可以根据实际业务需求进行设置,在此不作限定。例如,预定文本信息可以为“\a/n+-\a/n+-”,“\a/n+”可以表征“-”号中间包含至少一个字母或数字构成的字符。在此情况下,可以基于预定文本信息“\a/n+-\a/n+-”对业务配置值进行正则化校验,得到正则校验结果。正则校验结果可以用于表征预定文本信息和业务配置值是否匹配。According to an embodiment of the present disclosure, when the predetermined verification rule is a regular verification rule, the predetermined text information may be set according to actual business requirements, which is not limited herein. For example, the predetermined text information may be "\a/n+-\a/n+-", and "\a/n+" may represent a character consisting of at least one letter or number in the middle of the "-". In this case, based on the predetermined text information "\a/n+-\a/n+-", regularization verification can be performed on the service configuration value to obtain a regularization verification result. The regularity check result can be used to indicate whether the predetermined text information matches the service configuration value.

根据本公开的实施例,在正则校验结果表征预定文本信息和业务配置值相匹配,即业务配置值包含至少一个字母或数字的情况下,可以确定表征业务配置信息校验通过的子校验结果。在正则校验结果表征预定文本信息和业务配置值未匹配,即业务配置值不包含至少一个字母或数字的情况下,可以确定表征业务配置信息校验未通过的子校验结果。According to an embodiment of the present disclosure, in the case where the regular verification result indicates that the predetermined text information matches the business configuration value, that is, the business configuration value contains at least one letter or number, the sub-verification indicating that the business configuration information passes the verification can be determined result. In the case that the regular check result indicates that the predetermined text information does not match the service configuration value, that is, the service configuration value does not contain at least one letter or number, a sub-check result indicating that the check of the service configuration information fails can be determined.

根据本公开的实施例,在预定校验规则为合规校验规则的情况下,根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到子校验结果可以包括如下操作。According to an embodiment of the present disclosure, when the predetermined verification rule is a compliance verification rule, according to the predetermined verification rule, the service configuration value corresponding to the service configuration name is verified, and the sub-verification result obtained may include the following operate.

根据业务配置名称,利用数据接口从数据源中获取与业务配置名称对应的目标业务配置值。根据目标业务配置值,对业务配置值进行合规校验,得到合规校验结果。在合规校验结果表征目标业务配置值和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。在合规校验结果表征目标业务配置值和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。According to the business configuration name, use the data interface to obtain the target business configuration value corresponding to the business configuration name from the data source. According to the target business configuration value, the business configuration value is checked for compliance, and the result of the compliance check is obtained. In a case where the compliance verification result indicates that the target service configuration value matches the service configuration value, determine a sub-verification result indicating that the service configuration information passes the verification. In a case where the compliance verification result indicates that the target service configuration value does not match the service configuration value, determine a sub-verification result indicating that the verification of the service configuration information fails.

根据本公开的实施例,合规校验规则可以指与业务配置名称对应的业务配置值需要在另一系统中已登记。在预定校验规则为合规校验规则的情况下,可以利用数据接口根据业务配置名称,从数据源中获取与业务配置名称对应的目标业务配置值。在获得目标业务配置值之后,可以根据目标业务配置值,对业务配置值进行合规校验,得到合规校验结果。合规校验结果可以用于表征目标业务配置值和业务配置值是否匹配。According to an embodiment of the present disclosure, the compliance verification rule may indicate that the service configuration value corresponding to the service configuration name needs to be registered in another system. In the case that the predetermined verification rule is a compliance verification rule, the target service configuration value corresponding to the service configuration name can be obtained from the data source according to the service configuration name through the data interface. After the target service configuration value is obtained, the service configuration value may be checked for compliance according to the target service configuration value to obtain a compliance check result. The compliance verification result can be used to indicate whether the target service configuration value matches the service configuration value.

根据本公开的实施例,根据与至少一个业务配置名称各自对应的子校验结果,确定信息校验结果可以包括如下操作。According to an embodiment of the present disclosure, according to the sub-verification results corresponding to at least one service configuration name, determining the information verification result may include the following operations.

在与至少一个业务配置名称各自对应的子校验结果中存在表征业务配置信息校验未通过的子校验结果的情况下,确定表征业务配置信息校验未通过的信息校验结果。在与至少一个业务配置名称各自对应的子校验结果中的每个子校验结果均表征业务配置信息校验通过的情况下,确定表征业务配置信息校验通过的信息校验结果。If there is a sub-verification result indicating that the service configuration information has not passed the verification in the sub-verification results corresponding to each of the at least one service configuration name, determine the information verification result indicating that the service configuration information has not passed the verification. In the case that each of the sub-verification results corresponding to at least one service configuration name indicates that the service configuration information has passed the verification, determine the information verification result that represents the service configuration information has passed the verification.

根据本公开的实施例,在获得与至少一个业务配置名称各自对应的子校验结果之后,可以根据与至少一个业务配置名称各自对应的子校验结果,确定信息校验结果。例如,可以在至少一个子校验结果中存在表征业务配置信息校验未通过的子校验结果的情况下,确定表征业务配置信息校验未通过的信息校验结果。备选地,可以在至少一个子校验结果中存在第一预定比值的表征业务配置信息校验未通过的子校验结果的情况下,确定表征业务配置信息校验未通过的信息校验结果。第一预定比值可以根据实际业务需求进行设置,在此不作限定。例如,第一预定比值可以为0.1。According to an embodiment of the present disclosure, after obtaining the sub-verification results corresponding to at least one service configuration name, the information verification result may be determined according to the sub-verification results corresponding to the at least one service configuration name. For example, in the case that at least one sub-verification result has a sub-verification result indicating that the verification of the service configuration information fails, the information verification result indicating that the verification of the service configuration information fails can be determined. Alternatively, in the case that there is a first predetermined ratio of sub-verification results that fail the verification of the service configuration information in at least one sub-verification result, determine the information verification result that indicates that the verification of the service configuration information fails . The first predetermined ratio may be set according to actual service requirements, and is not limited here. For example, the first predetermined ratio may be 0.1.

根据本公开的实施例,可以在至少一个子校验结果中的每个子校验结果均表征业务配置信息校验通过的情况下,确定表征业务配置信息校验通过的信息校验结果。备选地,可以在至少一个子校验结果中存在第二预定比值的表征业务配置信息校验通过的子校验结果的情况下,确定表征业务配置信息校验通过的信息校验结果。第二预定比值可以根据实际业务需求进行设置,在此不作限定。例如,第二预定比值可以为0.9。According to an embodiment of the present disclosure, in the case that each sub-verification result in at least one sub-verification result indicates that the service configuration information has passed the verification, an information verification result indicating that the service configuration information has passed the verification may be determined. Alternatively, if there is a second predetermined ratio of sub-verification results representing service configuration information passing verification in at least one sub-verification result, the information verification result representing service configuration information passing verification may be determined. The second predetermined ratio can be set according to actual service requirements, and is not limited here. For example, the second predetermined ratio may be 0.9.

根据本公开的实施例,由于子校验结果是根据阈值校验规则、正则校验规则和合规校验规则中的至少之一对与业务配置名称对应的业务配置值进行校验得到的,因而子校验结果能够表征与业务配置名称对应的业务配置值是否通过校验。在此基础上,由于信息校验结果是根据与至少一个业务配置名称各自对应的子校验结果确定的,由此提高了信息校验结果的准确性,进而提高了业务配置治理的准确性。According to an embodiment of the present disclosure, since the sub-verification result is obtained by verifying the service configuration value corresponding to the business configuration name according to at least one of the threshold verification rule, regularity verification rule, and compliance verification rule, Therefore, the sub-verification result can indicate whether the service configuration value corresponding to the service configuration name passes the verification. On this basis, since the information verification result is determined according to the sub-verification results corresponding to at least one service configuration name, the accuracy of the information verification result is improved, thereby improving the accuracy of business configuration management.

根据本公开的实施例,信息校验方法200还可以包括如下操作。According to an embodiment of the present disclosure, the information verification method 200 may further include the following operations.

在信息校验结果表征业务配置信息校验通过的情况下,许可执行业务配置请求。在信息校验结果表征业务配置信息校验未通过的情况下,输出预警信息。In the case where the information verification result indicates that the service configuration information has passed the verification, the service configuration request is permitted to be executed. In the case where the information verification result indicates that the service configuration information verification fails, an early warning message is output.

根据本公开的实施例,在信息校验结果表征业务配置信息校验通过的情况下,可以直接放行业务配置请求,即许可执行业务配置请求。在信息校验结果表征业务配置信息校验未通过的情况下,可以通过报警或信息通知等多种手段输出预警信息,以便于安排负责人员进行治理。预警信息可以用于表征禁止执行业务配置请求。According to an embodiment of the present disclosure, when the information verification result indicates that the service configuration information has passed the verification, the service configuration request can be directly released, that is, the service configuration request is allowed to be executed. When the information verification result indicates that the business configuration information verification fails, early warning information can be output through various means such as alarm or information notification, so that responsible personnel can be arranged for governance. The early warning information can be used to indicate that the execution of the service configuration request is prohibited.

图6示意性示出了根据本公开实施例的信息校验过程的示例示意图。Fig. 6 schematically shows an example diagram of an information verification process according to an embodiment of the present disclosure.

如图6所示,在600中,响应于接收到业务配置请求601,可以根据业务配置请求601,确定业务变更类型602。在获得业务变更类型602之后,可以执行操作S610。As shown in FIG. 6 , in 600 , in response to receiving a service configuration request 601 , a service change type 602 may be determined according to the service configuration request 601 . After the service change type 602 is obtained, operation S610 may be performed.

在操作S610,业务变更类型为节点新增操作?In operation S610, the service change type is node addition operation?

若否,则可以确定表征业务配置信息校验通过的信息校验结果603。If not, an information verification result 603 indicating that the service configuration information passes the verification may be determined.

若是,则可以确定与业务变更操作对应的业务调用类型604。在获得业务调用类型604之后,可以执行操作S620。If yes, the service call type 604 corresponding to the service change operation may be determined. After the service call type 604 is obtained, operation S620 may be performed.

在操作S620,业务调用类型为第一层级调用?In operation S620, is the service call type a first-level call?

若否,则可以确定表征业务配置信息校验通过的信息校验结果603。If not, an information verification result 603 indicating that the service configuration information passes the verification may be determined.

若是,则可以获取与业务变更操作对应的业务配置信息605。业务配置信息605可以包括至少一个业务配置名称和与至少一个业务配置名称各自对应的业务配置值。If yes, service configuration information 605 corresponding to the service change operation may be acquired. The service configuration information 605 may include at least one service configuration name and service configuration values respectively corresponding to the at least one service configuration name.

针对至少一个业务配置名称中的业务配置名称605_1,可以根据业务配置名称605_1,确定与业务配置名称605_1对应的预定校验规则606。根据预定校验规则606,对与业务配置名称605_1对应的业务配置值605_2进行校验,得到子校验结果607。在获得子校验结果607之后,执行操作S630。For the service configuration name 605_1 in the at least one service configuration name, a predetermined verification rule 606 corresponding to the service configuration name 605_1 may be determined according to the service configuration name 605_1. According to the predetermined verification rule 606 , the service configuration value 605_2 corresponding to the service configuration name 605_1 is verified to obtain a sub-verification result 607 . After the sub-check result 607 is obtained, operation S630 is performed.

在操作S630,存在表征业务配置请求校验未通过的子校验结果?In operation S630, is there a sub-check result indicating that the service configuration request check fails?

若否,则可以确定表征业务配置信息校验通过的信息校验结果603。If not, an information verification result 603 indicating that the service configuration information passes the verification may be determined.

若是,则可以确定表征业务配置信息校验未通过的信息校验结果608。If yes, an information verification result 608 indicating that the verification of the service configuration information fails may be determined.

在信息校验结果603表征业务配置信息校验通过的情况下,可以许可执行业务配置请求601。在信息校验结果608表征业务配置信息校验未通过的情况下,可以输出预警信息609。In the case where the information verification result 603 indicates that the verification of the service configuration information passes, the execution of the service configuration request 601 may be permitted. If the information verification result 608 indicates that the service configuration information verification fails, early warning information 609 may be output.

以上仅是示例性实施例,但不限于此,还可以包括本领域已知的其他信息校验方法,只要能够提高业务配置治理的效率和准确性即可。The above are only exemplary embodiments, but are not limited thereto, and may also include other information verification methods known in the art, as long as the efficiency and accuracy of service configuration management can be improved.

图7示意性示出了根据本公开的实施例的信息校验装置的框图。Fig. 7 schematically shows a block diagram of an information verification device according to an embodiment of the present disclosure.

如图7所示,信息校验装置700可以包括第一确定模块710、获取模块720和校验模块730。As shown in FIG. 7 , the information verification device 700 may include a first determination module 710 , an acquisition module 720 and a verification module 730 .

第一确定模块710,用于响应于接收到与业务变更操作对应的业务配置请求,在业务配置请求中的业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的业务调用类型。The first determination module 710 is configured to, in response to receiving a service configuration request corresponding to a service change operation, determine the service call type corresponding to the service change operation when the service change type in the service configuration request is a node addition operation .

获取模块720,用于在业务调用类型为第一层级调用的情况下,获取与业务变更操作对应的业务配置信息,其中,业务配置信息包括至少一个业务配置名称和与至少一个业务配置名称各自对应的业务配置值。An acquisition module 720, configured to acquire service configuration information corresponding to a service change operation when the service call type is a first-level call, wherein the service configuration information includes at least one service configuration name and at least one service configuration name corresponding to each The business configuration value.

校验模块730,用于根据至少一个业务配置名称,对与至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。The verification module 730 is configured to respectively verify the service configuration values corresponding to the at least one service configuration name according to the at least one service configuration name, and obtain information verification results.

根据本公开的实施例,业务变更类型还包括节点删除操作和节点修改操作,业务调用类型还包括第N层级调用,N为大于1的正整数。According to the embodiment of the present disclosure, the service change type also includes node deletion operation and node modification operation, and the service call type also includes Nth level call, where N is a positive integer greater than 1.

根据本公开的实施例,信息校验装置700可以包括第二确定模块和第三确定模块。According to an embodiment of the present disclosure, the information checking apparatus 700 may include a second determination module and a third determination module.

第二确定模块,用于在业务配置请求中的业务变更类型为节点删除操作和节点修改操作中的任一项的情况下,确定表征业务配置信息校验通过的信息校验结果。The second determination module is configured to determine an information verification result indicating that the service configuration information has passed the verification when the service change type in the service configuration request is any one of node deletion operation and node modification operation.

第三确定模块,用于在业务调用类型为第N层级调用的情况下,确定表征业务配置信息校验通过的信息校验结果。The third determining module is configured to determine an information check result indicating that the service configuration information passes the check when the service call type is an Nth-level call.

根据本公开的实施例,第一确定模块710可以包括第一确定子模块、第二确定子模块和第三确定子模块。According to an embodiment of the present disclosure, the first determining module 710 may include a first determining submodule, a second determining submodule, and a third determining submodule.

第一确定子模块,用于响应于接收到业务配置请求,根据业务配置请求,确定业务变更类型。The first determination submodule is configured to determine the service change type according to the service configuration request in response to receiving the service configuration request.

第二确定子模块,用于在业务变更类型为节点新增操作的情况下,确定与业务变更操作对应的地址信息,其中,地址信息包括路径信息。The second determination sub-module is configured to determine address information corresponding to the service change operation when the service change type is node addition operation, wherein the address information includes path information.

第三确定子模块,用于根据路径信息,确定业务调用类型。The third determination sub-module is used to determine the service call type according to the path information.

根据本公开的实施例,地址信息还包括域名信息。According to an embodiment of the present disclosure, the address information further includes domain name information.

根据本公开的实施例,获取模块720可以包括发送子模块、接收子模块和第四确定子模块。According to an embodiment of the present disclosure, the acquiring module 720 may include a sending submodule, a receiving submodule and a fourth determining submodule.

发送子模块,用于在业务调用类型为第一层级调用的情况下,根据域名信息,向与域名信息对应的目标分布式应用程序协调业务器发送信息获取请求。The sending sub-module is configured to send an information acquisition request to the target distributed application coordinator corresponding to the domain name information when the service call type is a first-level call.

接收子模块,用于接收来自于目标分布式应用程序协调业务器的原始业务配置信息。The receiving submodule is used to receive the original service configuration information from the target distributed application coordinating service server.

第四确定子模块,用于根据原始业务配置信息,确定业务配置信息。The fourth determining submodule is used to determine service configuration information according to the original service configuration information.

根据本公开的实施例,第四确定子模块可以包括第一匹配单元和第二匹配单元。According to an embodiment of the present disclosure, the fourth determining submodule may include a first matching unit and a second matching unit.

第一匹配单元,用于根据第一预定字符,对原始业务配置信息进行字符匹配,得到至少一个业务配置键值对。The first matching unit is configured to perform character matching on the original service configuration information according to the first predetermined character to obtain at least one service configuration key-value pair.

第二匹配单元,用于针对至少一个业务配置键值对中的每个业务配置键值对,根据第二预定字符,对业务配置键值对进行字符匹配,得到与业务配置键值对对应的业务配置名称和业务配置值。The second matching unit is configured to perform character matching on the service configuration key-value pair according to the second predetermined character for each service configuration key-value pair in at least one service configuration key-value pair, and obtain the corresponding service configuration key-value pair Business configuration name and business configuration value.

根据本公开的实施例,针对至少一个业务配置名称中的每个业务配置名称,校验模块730可以包括第五确定子模块、校验子模块和第六确定子模块。According to an embodiment of the present disclosure, for each service configuration name in the at least one service configuration name, the verification module 730 may include a fifth determination submodule, a verification submodule and a sixth determination submodule.

第五确定子模块,用于根据业务配置名称,确定与业务配置名称对应的预定校验规则。The fifth determining submodule is used to determine the predetermined verification rule corresponding to the service configuration name according to the service configuration name.

校验子模块,用于根据预定校验规则,对与业务配置名称对应的业务配置值进行校验,得到子校验结果。The verification sub-module is used to verify the service configuration value corresponding to the service configuration name according to a predetermined verification rule to obtain a sub-verification result.

第六确定子模块,用于根据与至少一个业务配置名称各自对应的子校验结果,确定信息校验结果。The sixth determination sub-module is used to determine the information verification result according to the sub-verification results corresponding to at least one service configuration name.

根据本公开的实施例,预定校验规则包括阈值校验规则、正则校验规则和合规校验规则中的至少之一。According to an embodiment of the present disclosure, the predetermined verification rule includes at least one of a threshold verification rule, a regularity verification rule, and a compliance verification rule.

根据本公开的实施例,在预定校验规则为阈值校验规则的情况下,校验子模块可以包括第一校验单元、第一确定单元和第二确定单元。According to an embodiment of the present disclosure, when the predetermined verification rule is a threshold verification rule, the syndrome submodule may include a first verification unit, a first determination unit, and a second determination unit.

第一校验单元,用于基于预定阈值,对业务配置值进行阈值校验,得到阈值校验结果。The first verification unit is configured to perform threshold verification on the service configuration value based on a predetermined threshold to obtain a threshold verification result.

第一确定单元,用于在阈值校验结果表征预定阈值和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。The first determination unit is configured to determine a sub-verification result indicating that the service configuration information passes the verification when the threshold verification result indicates that the predetermined threshold matches the service configuration value.

第二确定单元,用于在阈值校验结果表征预定阈值和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。The second determining unit is configured to determine a sub-verification result indicating that the verification of the service configuration information fails when the threshold verification result indicates that the predetermined threshold does not match the service configuration value.

根据本公开的实施例,在预定校验规则为正则校验规则的情况下,校验子模块可以包括第二校验单元、第三确定单元和第四确定单元。According to an embodiment of the present disclosure, when the predetermined verification rule is a regular verification rule, the syndrome submodule may include a second verification unit, a third determination unit, and a fourth determination unit.

第二校验单元,用于基于预定文本信息,对业务配置值进行正则校验,得到正则校验结果。The second verification unit is configured to perform regularity verification on the service configuration value based on predetermined text information to obtain a regularity verification result.

第三确定单元,用于在正则校验结果表征预定文本信息和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。The third determination unit is configured to determine a sub-verification result indicating that the service configuration information passes the verification when the regular verification result indicates that the predetermined text information matches the service configuration value.

第四确定单元,用于在正则校验结果表征预定文本信息和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。The fourth determination unit is configured to determine a sub-verification result indicating that the verification of the service configuration information fails when the regular verification result indicates that the predetermined text information does not match the service configuration value.

根据本公开的实施例,在预定校验规则为合规校验规则的情况下,校验子模块可以包括获取单元、第三校验单元、第五确定单元和第六确定单元。According to an embodiment of the present disclosure, when the predetermined verification rule is a compliance verification rule, the verification submodule may include an acquisition unit, a third verification unit, a fifth determination unit, and a sixth determination unit.

获取单元,用于根据业务配置名称,利用数据接口从数据源中获取与业务配置名称对应的目标业务配置值。The obtaining unit is configured to obtain the target service configuration value corresponding to the service configuration name from the data source by using the data interface according to the service configuration name.

第三校验单元,用于根据目标业务配置值,对业务配置值进行合规校验,得到合规校验结果。The third verification unit is configured to perform compliance verification on the service configuration value according to the target service configuration value, and obtain a compliance verification result.

第五确定单元,用于在合规校验结果表征目标业务配置值和业务配置值相匹配的情况下,确定表征业务配置信息校验通过的子校验结果。The fifth determination unit is configured to determine a sub-verification result indicating that the service configuration information passes the verification when the compliance verification result indicates that the target service configuration value matches the service configuration value.

第六确定单元,用于在合规校验结果表征目标业务配置值和业务配置值未匹配的情况下,确定表征业务配置信息校验未通过的子校验结果。The sixth determination unit is configured to determine a sub-verification result indicating that the verification of the service configuration information fails when the compliance verification result indicates that the target service configuration value does not match the service configuration value.

根据本公开的实施例,第六确定子模块可以包括第七确定单元和第八确定单元。According to an embodiment of the present disclosure, the sixth determining submodule may include a seventh determining unit and an eighth determining unit.

第七确定单元,用于在与至少一个业务配置名称各自对应的子校验结果中存在表征业务配置信息校验未通过的子校验结果的情况下,确定表征业务配置信息校验未通过的信息校验结果。The seventh determination unit is used to determine the failure of the verification of the representative service configuration information when there is a sub-verification result that does not pass the verification of the service configuration information in the sub-verification results corresponding to at least one service configuration name. Information verification result.

第八确定单元,用于在与至少一个业务配置名称各自对应的子校验结果中的每个子校验结果均表征业务配置信息校验通过的情况下,确定表征业务配置信息校验通过的信息校验结果。An eighth determining unit, configured to determine the information indicating that the service configuration information has passed the verification when each of the sub-verification results corresponding to at least one service configuration name indicates that the service configuration information has passed the verification Check result.

根据本公开的实施例,信息校验装置700还可以包括建立模块和接收模块。According to an embodiment of the present disclosure, the information verification apparatus 700 may further include an establishment module and a reception module.

建立模块,用于建立与分布式应用程序协调业务器集群之间的通信连接。The establishment module is used to establish the communication connection with the cluster of distributed application coordinating business servers.

接收模块,用于基于通信连接,接收业务配置请求。The receiving module is configured to receive a service configuration request based on the communication connection.

根据本公开的实施例,信息校验装置700还可以包括许可模块和输出模块。According to an embodiment of the present disclosure, the information verification device 700 may further include a permission module and an output module.

许可模块,用于在信息校验结果表征业务配置信息校验通过的情况下,许可执行业务配置请求。The permission module is configured to permit the execution of the service configuration request when the information verification result indicates that the service configuration information has passed the verification.

输出模块,用于在信息校验结果表征业务配置信息校验未通过的情况下,输出预警信息。The output module is configured to output early warning information when the information verification result indicates that the service configuration information verification fails.

根据本公开的实施例的模块、子模块、单元、子单元中的任意多个、或其中任意多个的至少部分功能可以在一个模块中实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以被拆分成多个模块来实现。根据本公开实施例的模块、子模块、单元、子单元中的任意一个或多个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式的硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,根据本公开实施例的模块、子模块、单元、子单元中的一个或多个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。Modules, sub-modules, units, any multiple of sub-units according to the embodiments of the present disclosure, or at least part of the functions of any multiple of them may be implemented in one module. Any one or more of modules, submodules, units, and subunits according to the embodiments of the present disclosure may be implemented by being divided into multiple modules. Any one or more of modules, submodules, units, and subunits according to embodiments of the present disclosure may be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or hardware or firmware that may be implemented by any other reasonable means of integrating or packaging circuits, or in a combination of software, hardware, and firmware Any one of these implementations or an appropriate combination of any of them. Alternatively, one or more of the modules, submodules, units, and subunits according to the embodiments of the present disclosure may be at least partially implemented as computer program modules, and when the computer program modules are executed, corresponding functions may be performed.

例如,第一确定模块710、获取模块720和校验模块730中的任意多个可以合并在一个模块/单元/子单元中实现,或者其中的任意一个模块/单元/子单元可以被拆分成多个模块/单元/子单元。或者,这些模块/单元/子单元中的一个或多个模块/单元/子单元的至少部分功能可以与其他模块/单元/子单元的至少部分功能相结合,并在一个模块/单元/子单元中实现。根据本公开的实施例,第一确定模块710、获取模块720和校验模块730中的至少一个可以至少被部分地实现为硬件电路,例如现场可编程门阵列(FPGA)、可编程逻辑阵列(PLA)、片上系统、基板上的系统、封装上的系统、专用集成电路(ASIC),或可以通过对电路进行集成或封装的任何其他的合理方式等硬件或固件来实现,或以软件、硬件以及固件三种实现方式中任意一种或以其中任意几种的适当组合来实现。或者,第一确定模块710、获取模块720和校验模块730中的至少一个可以至少被部分地实现为计算机程序模块,当该计算机程序模块被运行时,可以执行相应的功能。For example, any one of the first determination module 710, the acquisition module 720 and the verification module 730 can be combined and implemented in one module/unit/subunit, or any one of the modules/units/subunits can be split into Multiple modules/units/subunits. Alternatively, at least part of the functions of one or more modules/units/subunits of these modules/units/subunits can be combined with at least part of the functions of other modules/units/subunits, and combined in one module/unit/subunit realized in. According to an embodiment of the present disclosure, at least one of the first determination module 710, the acquisition module 720 and the verification module 730 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array ( PLA), system-on-chip, system-on-substrate, system-on-package, application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuits, such as hardware or firmware, or in software, hardware And any one of the three implementations of firmware or an appropriate combination of any of them. Alternatively, at least one of the first determination module 710, the acquisition module 720 and the verification module 730 may be at least partially implemented as a computer program module, and when the computer program module is executed, corresponding functions may be performed.

需要说明的是,本公开的实施例中信息校验装置部分与本公开的实施例中信息校验方法部分是相对应的,信息校验装置部分的描述具体参考信息校验方法部分,在此不再赘述。It should be noted that the part of the information verification device in the embodiment of the present disclosure corresponds to the part of the information verification method in the embodiment of the present disclosure, and the description of the information verification device part specifically refers to the part of the information verification method. No longer.

图8示意性示出了根据本公开实施例的适于实现信息校验方法的电子设备的框图。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Fig. 8 schematically shows a block diagram of an electronic device suitable for implementing an information verification method according to an embodiment of the present disclosure. The electronic device shown in FIG. 8 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.

如图8所示,根据本公开实施例的计算机电子设备800包括处理器801,其可以根据存储在只读存储器(ROM)802中的程序或者从存储部分809加载到随机访问存储器(RAM)803中的程序而执行各种适当的动作和处理。处理器801例如可以包括通用微处理器(例如CPU)、指令集处理器和/或相关芯片组和/或专用微处理器(例如,专用集成电路(ASIC)),等等。处理器801还可以包括用于缓存用途的板载存储器。处理器801可以包括用于执行根据本公开实施例的方法流程的不同动作的单一处理单元或者是多个处理单元。As shown in FIG. 8 , a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can be loaded into a random access memory (RAM) 803 according to a program stored in a read-only memory (ROM) 802 or from a storage section 809 Various appropriate actions and processing are performed by the programs in the program. Processor 801 may include, for example, a general-purpose microprocessor (eg, a CPU), an instruction set processor and/or related chipsets, and/or a special-purpose microprocessor (eg, an application-specific integrated circuit (ASIC)), among others. Processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for executing different actions of the method flow according to the embodiments of the present disclosure.

在RAM 803中,存储有电子设备800操作所需的各种程序和数据。处理器801、ROM802以及RAM 803通过总线804彼此相连。处理器801通过执行ROM 802和/或RAM 803中的程序来执行根据本公开实施例的方法流程的各种操作。需要注意,所述程序也可以存储在除ROM 802和RAM 803以外的一个或多个存储器中。处理器801也可以通过执行存储在所述一个或多个存储器中的程序来执行根据本公开实施例的方法流程的各种操作。In the RAM 803 , various programs and data necessary for the operation of the electronic device 800 are stored. The processor 801 , ROM 802 , and RAM 803 are connected to each other through a bus 804 . The processor 801 executes the programs in the ROM 802 and/or the RAM 803 to perform various operations according to the method flow of the embodiment of the present disclosure. It should be noted that the program may also be stored in one or more memories other than ROM 802 and RAM 803 . The processor 801 may also perform various operations according to the method flow of the embodiments of the present disclosure by executing programs stored in the one or more memories.

根据本公开的实施例,电子设备800还可以包括输入/输出(I/O)接口805,输入/输出(I/O)接口805也连接至总线804。电子设备800还可以包括连接至输入/输出(I/O)接口805的以下部件中的一项或多项:包括键盘、鼠标等的输入部分806;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分807;包括硬盘等的存储部分808;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分809。通信部分809经由诸如因特网的网络执行通信处理。驱动器810也根据需要连接至输入/输出(I/O)接口805。可拆卸介质811,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器810上,以便于从其上读出的计算机程序根据需要被安装入存储部分808。According to an embodiment of the present disclosure, the electronic device 800 may further include an input/output (I/O) interface 805 which is also connected to the bus 804 . The electronic device 800 may also include one or more of the following components connected to the input/output (I/O) interface 805: an input section 806 including a keyboard, mouse, etc.; (LCD) etc. and an output section 807 of a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the Internet. A driver 810 is also connected to the input/output (I/O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 810 as necessary so that a computer program read therefrom is installed into the storage section 808 as necessary.

根据本公开的实施例,根据本公开实施例的方法流程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读存储介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分809从网络上被下载和安装,和/或从可拆卸介质811被安装。在该计算机程序被处理器801执行时,执行本公开实施例的系统中限定的上述功能。根据本公开的实施例,上文描述的系统、设备、装置、模块、单元等可以通过计算机程序模块来实现。According to the embodiments 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, which includes a computer program carried on a computer-readable storage medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 809 and/or installed from removable media 811 . When the computer program is executed by the processor 801, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to the embodiments of the present disclosure, the above-described systems, devices, devices, modules, units, etc. may be implemented by computer program modules.

本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的设备/装置/系统中所包含的;也可以是单独存在,而未装配入该设备/装置/系统中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被执行时,实现根据本公开实施例的方法。The present disclosure also provides a computer-readable storage medium. The computer-readable storage medium may be included in the device/apparatus/system described in the above embodiments; it may also exist independently without being assembled into the device/system device/system. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present disclosure is realized.

根据本公开的实施例,计算机可读存储介质可以是非易失性的计算机可读存储介质。例如可以包括但不限于:便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD- ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

例如,根据本公开的实施例,计算机可读存储介质可以包括上文描述的ROM 802和/或RAM 803和/或ROM 802和RAM 803以外的一个或多个存储器。For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include one or more memories other than the above-described ROM 802 and/or RAM 803 and/or ROM 802 and RAM 803 .

本公开的实施例还包括一种计算机程序产品,其包括计算机程序,该计算机程序包含用于执行本公开实施例所提供的方法的程序代码,当计算机程序产品在电子设备上运行时,该程序代码用于使电子设备实现本公开实施例所提供的信息校验方法。Embodiments of the present disclosure also include a computer program product, which includes a computer program, and the computer program includes program codes for executing the method provided by the embodiments of the present disclosure. When the computer program product is run on an electronic device, the program The code is used to enable the electronic device to implement the information verification method provided by the embodiment of the present disclosure.

在该计算机程序被处理器801执行时,执行本公开实施例的系统/装置中限定的上述功能。根据本公开的实施例,上文描述的系统、装置、模块、单元等可以通过计算机程序模块来实现。When the computer program is executed by the processor 801, the above-mentioned functions defined in the system/device of the embodiment of the present disclosure are performed. According to the embodiments of the present disclosure, the above-described systems, devices, modules, units, etc. may be implemented by computer program modules.

在一种实施例中,该计算机程序可以依托于光存储器件、磁存储器件等有形存储介质。在另一种实施例中,该计算机程序也可以在网络介质上以信号的形式进行传输、分发,并通过通信部分809被下载和安装,和/或从可拆卸介质811被安装。该计算机程序包含的程序代码可以用任何适当的网络介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program can also be transmitted and distributed in the form of a signal on a network medium, downloaded and installed through the communication part 809, and/or installed from the removable medium 811. The program code 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 of the above.

根据本公开的实施例,可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例提供的计算机程序的程序代码,具体地,可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。程序设计语言包括但不限于诸如Java,C++,python,“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。According to the embodiments of the present disclosure, the program codes for executing the computer programs provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, specifically, high-level procedural and/or object-oriented programming language, and/or assembly/machine language to implement these computing programs. Programming languages include, but are not limited to, programming languages such as Java, C++, python, "C" or similar programming languages. The program code can execute entirely on the user computing device, partly on the user device, partly on the remote computing device, or entirely on the remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。本领域技术人员可以理解,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合,即使这样的组合或结合没有明确记载于本公开中。特别地,在不脱离本公开精神和教导的情况下,本公开的各个实施例和/或权利要求中记载的特征可以进行多种组合和/或结合。所有这些组合和/或结合均落入本公开的范围。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions. Those skilled in the art can understand that various combinations and/or combinations can be made in the various embodiments of the present disclosure and/or the features described in the claims, even if such combinations or combinations are not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the various embodiments of the present disclosure and/or the features described in the claims can be combined and/or combined in various ways. All such combinations and/or combinations fall within the scope of the present disclosure.

以上对本公开的实施例进行了描述。但是,这些实施例仅仅是为了说明的目的,而并非为了限制本公开的范围。尽管在以上分别描述了各实施例,但是这并不意味着各个实施例中的措施不能有利地结合使用。本公开的范围由所附权利要求及其等同物限定。不脱离本公开的范围,本领域技术人员可以做出多种替代和修改,这些替代和修改都应落在本公开的范围之内。The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the various embodiments have been described separately above, this does not mean that the measures in the various embodiments cannot be advantageously used in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of the present disclosure, and these substitutions and modifications should all fall within the scope of the present disclosure.

Claims (16)

1.一种信息校验方法,包括:1. A method for verifying information, comprising: 响应于接收到与业务变更操作对应的业务配置请求,在所述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与所述业务变更操作对应的业务调用类型;In response to receiving a service configuration request corresponding to a service change operation, if the service change type in the service configuration request is a node addition operation, determine the service call type corresponding to the service change operation; 在所述业务调用类型为第一层级调用的情况下,获取与所述业务变更操作对应的业务配置信息,其中,所述业务配置信息包括至少一个业务配置名称和与所述至少一个业务配置名称各自对应的业务配置值;以及In the case where the service call type is a first-level call, obtain service configuration information corresponding to the service change operation, wherein the service configuration information includes at least one service configuration name and the at least one service configuration name their respective service configuration values; and 根据所述至少一个业务配置名称,对与所述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。According to the at least one service configuration name, the service configuration values respectively corresponding to the at least one service configuration name are respectively verified to obtain an information verification result. 2.根据权利要求1所述的方法,其中,所述业务变更类型还包括节点删除操作和节点修改操作,所述业务调用类型还包括第N层级调用,N为大于1的正整数;2. The method according to claim 1, wherein the service change type further includes a node deletion operation and a node modification operation, and the service call type further includes an Nth-level call, where N is a positive integer greater than 1; 所述方法还包括:The method also includes: 在所述业务配置请求中的业务变更类型为所述节点删除操作和所述节点修改操作中的任一项的情况下,确定表征所述业务配置信息校验通过的所述信息校验结果;以及When the service change type in the service configuration request is any one of the node deletion operation and the node modification operation, determine the information verification result indicating that the service configuration information has passed the verification; as well as 在所述业务调用类型为所述第N层级调用的情况下,确定表征所述业务配置信息校验通过的所述信息校验结果。If the service invocation type is the Nth level invocation, determine the information verification result indicating that the service configuration information passes the verification. 3.根据权利要求1所述的方法,其中,所述响应于接收到与业务变更操作对应的业务配置请求,在所述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与所述业务变更操作对应的业务调用类型包括:3. The method according to claim 1, wherein, in response to receiving a service configuration request corresponding to a service change operation, in the case where the service change type in the service configuration request is a node addition operation, determine The service call type corresponding to the service change operation includes: 响应于接收到所述业务配置请求,根据所述业务配置请求,确定所述业务变更类型;In response to receiving the service configuration request, determine the service change type according to the service configuration request; 在所述业务变更类型为所述节点新增操作的情况下,确定与所述业务变更操作对应的地址信息,其中,所述地址信息包括路径信息;以及If the service change type is the node addition operation, determine address information corresponding to the service change operation, where the address information includes path information; and 根据所述路径信息,确定所述业务调用类型。Determine the service call type according to the path information. 4.根据权利要求1至3中任一项所述的方法,其中,所述地址信息还包括域名信息;4. The method according to any one of claims 1 to 3, wherein the address information further includes domain name information; 所述在所述业务调用类型为第一层级调用的情况下,获取与所述业务变更操作对应的业务配置信息包括:In the case where the service invocation type is a first-level invocation, obtaining the service configuration information corresponding to the service change operation includes: 在所述业务调用类型为第一层级调用的情况下,根据所述域名信息,向与所述域名信息对应的目标分布式应用程序协调业务器发送信息获取请求;When the service call type is a first-level call, according to the domain name information, send an information acquisition request to the target distributed application coordinator corresponding to the domain name information; 接收来自于所述目标分布式应用程序协调业务器的原始业务配置信息;以及receiving original service configuration information from the target distributed application coordinator; and 根据所述原始业务配置信息,确定所述业务配置信息。Determine the service configuration information according to the original service configuration information. 5.根据权利要求4所述的方法,其中,所述根据所述原始业务配置信息,确定所述业务配置信息包括:5. The method according to claim 4, wherein said determining said service configuration information according to said original service configuration information comprises: 根据第一预定字符,对所述原始业务配置信息进行字符匹配,得到至少一个业务配置键值对;以及Perform character matching on the original service configuration information according to the first predetermined character to obtain at least one service configuration key-value pair; and 针对至少一个业务配置键值对中的每个业务配置键值对,For each business configuration key-value pair in at least one business configuration key-value pair, 根据第二预定字符,对所述业务配置键值对进行字符匹配,得到与所述业务配置键值对对应的业务配置名称和业务配置值。Perform character matching on the service configuration key-value pair according to the second predetermined character to obtain a service configuration name and a service configuration value corresponding to the service configuration key-value pair. 6.根据权利要求1至3中任一项所述的方法,其中,所述根据所述至少一个业务配置名称,对与所述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果包括:6. The method according to any one of claims 1 to 3, wherein, according to the at least one service configuration name, the service configuration values corresponding to the at least one service configuration name are respectively checked, The obtained information verification results include: 针对所述至少一个业务配置名称中的每个业务配置名称,For each service configuration name in the at least one service configuration name, 根据所述业务配置名称,确定与所述业务配置名称对应的预定校验规则;Determine a predetermined verification rule corresponding to the service configuration name according to the service configuration name; 根据所述预定校验规则,对与所述业务配置名称对应的业务配置值进行校验,得到子校验结果;以及Verifying the service configuration value corresponding to the service configuration name according to the predetermined verification rule 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. 7.根据权利要求6所述的方法,其中,所述预定校验规则包括阈值校验规则、正则校验规则和合规校验规则中的至少之一;7. The method according to claim 6, wherein the predetermined check rule comprises at least one of a threshold check rule, a regular check rule and a compliance check rule; 在所述预定校验规则为阈值校验规则的情况下,所述根据所述预定校验规则,对与所述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:In the case where the predetermined verification rule is a threshold verification rule, the verification of the service configuration value corresponding to the service configuration name according to the predetermined verification rule, and obtaining a sub-verification result includes: 基于预定阈值,对所述业务配置值进行阈值校验,得到阈值校验结果;Based on a predetermined threshold, performing threshold verification on the service configuration value to obtain a threshold verification result; 在所述阈值校验结果表征所述预定阈值和所述业务配置值相匹配的情况下,确定表征所述业务配置信息校验通过的所述子校验结果;以及If the threshold verification result indicates that the predetermined threshold matches the service configuration value, determine the sub-verification result indicating that the service configuration information passes the verification; and 在所述阈值校验结果表征所述预定阈值和所述业务配置值未匹配的情况下,确定表征所述业务配置信息校验未通过的所述子校验结果。If the threshold check result indicates that the predetermined threshold does not match the service configuration value, determine the sub-check result indicating that the service configuration information check fails. 8.根据权利要求7所述的方法,其中,在所述预定校验规则为正则校验规则的情况下,所述根据所述预定校验规则,对与所述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:8. The method according to claim 7, wherein, when the predetermined verification rule is a regular verification rule, according to the predetermined verification rule, the service configuration corresponding to the service configuration name The value is verified, and the obtained sub-verification results include: 基于预定文本信息,对所述业务配置值进行正则校验,得到正则校验结果;Based on the predetermined text information, performing regularity verification on the service configuration value to obtain a regularity verification result; 在所述正则校验结果表征所述预定文本信息和所述业务配置值相匹配的情况下,确定表征所述业务配置信息校验通过的所述子校验结果;以及When the normal verification result indicates that the predetermined text information matches the service configuration value, determine the sub-verification result indicating that the service configuration information passes the verification; and 在所述正则校验结果表征所述预定文本信息和所述业务配置值未匹配的情况下,确定表征所述业务配置信息校验未通过的所述子校验结果。In a case where the regular verification result indicates that the predetermined text information does not match the service configuration value, determine the sub-verification result indicating that the service configuration information has not passed the verification. 9.根据权利要求7所述的方法,其中,在所述预定校验规则为合规校验规则的情况下,所述根据所述预定校验规则,对与所述业务配置名称对应的业务配置值进行校验,得到子校验结果包括:9. The method according to claim 7, wherein, in the case where the predetermined verification rule is a compliance verification rule, according to the predetermined verification rule, the service corresponding to the service configuration name The configuration value is verified, and the obtained sub-verification results include: 根据所述业务配置名称,利用数据接口从数据源中获取与所述业务配置名称对应的目标业务配置值;According to the business configuration name, using a data interface to obtain a target business configuration value corresponding to the business configuration name from a data source; 根据所述目标业务配置值,对所述业务配置值进行合规校验,得到合规校验结果;Performing a compliance check on the service configuration value according to the target service configuration value to obtain a compliance check result; 在所述合规校验结果表征所述目标业务配置值和所述业务配置值相匹配的情况下,确定表征所述业务配置信息校验通过的所述子校验结果;以及When the compliance check result indicates that the target service configuration value matches the service configuration value, determine the sub-check result indicating that the service configuration information passes the check; and 在所述合规校验结果表征所述目标业务配置值和所述业务配置值未匹配的情况下,确定表征所述业务配置信息校验未通过的所述子校验结果。In a case where the compliance verification result indicates that the target service configuration value does not match the service configuration value, determine the sub-verification result indicating that the service configuration information has not passed the verification. 10.根据权利要求6所述的方法,其中,所述根据与所述至少一个业务配置名称各自对应的子校验结果,确定所述信息校验结果包括:10. The method according to claim 6, wherein, according to the sub-verification results corresponding to the at least one service configuration name, determining the information verification result comprises: 在与所述至少一个业务配置名称各自对应的子校验结果中存在表征所述业务配置信息校验未通过的所述子校验结果的情况下,确定表征所述业务配置信息校验未通过的所述信息校验结果;以及In the case that the sub-verification results corresponding to the at least one service configuration name each have the sub-verification result that indicates that the service configuration information has not passed the verification, determine that the service configuration information has not passed the verification The verification result of the said information; and 在与所述至少一个业务配置名称各自对应的子校验结果中的每个子校验结果均表征所述业务配置信息校验通过的情况下,确定表征所述业务配置信息校验通过的所述信息校验结果。In the case that each of the sub-verification results corresponding to the at least one service configuration name indicates that the service configuration information has passed the verification, determine the Information verification result. 11.根据权利要求1至3中任一项所述的方法,还包括,在所述响应于接收到与业务变更操作对应的业务配置请求,在所述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与所述业务变更操作对应的业务调用类型之前:11. The method according to any one of claims 1 to 3, further comprising, in response to receiving a service configuration request corresponding to a service change operation, the service change type in the service configuration request is node In the case of a new operation, before determining the business call type corresponding to the business change operation: 建立与分布式应用程序协调业务器集群之间的通信连接;以及establishing a communication connection with the distributed application coordinating business server cluster; and 基于所述通信连接,接收所述业务配置请求。Based on the communication connection, the service configuration request is received. 12.根据权利要求1至3中任一项所述的方法,还包括,在所述根据所述至少一个业务配置名称,对与所述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果之后:12. The method according to any one of claims 1 to 3, further comprising, in said at least one service configuration name, respectively calibrating the service configuration values respectively corresponding to said at least one service configuration name After the information verification result is obtained: 在所述信息校验结果表征所述业务配置信息校验通过的情况下,许可执行所述业务配置请求;以及If the information verification result indicates that the service configuration information has passed the verification, the service configuration request is permitted to be executed; and 在所述信息校验结果表征所述业务配置信息校验未通过的情况下,输出预警信息。If the information verification result indicates that the service configuration information verification fails, output warning information. 13.一种信息校验装置,包括:13. An information verification device, comprising: 确定模块,用于响应于接收到与业务变更操作对应的业务配置请求,在所述业务配置请求中的业务变更类型为节点新增操作的情况下,确定与所述业务变更操作对应的业务调用类型;A determining module, configured to, in response to receiving a service configuration request corresponding to a service change operation, determine a service call corresponding to the service change operation when the service change type in the service configuration request is a node addition operation type; 获取模块,用于在所述业务调用类型为第一层级调用的情况下,获取与所述业务变更操作对应的业务配置信息,其中,所述业务配置信息包括至少一个业务配置名称和与所述至少一个业务配置名称各自对应的业务配置值;以及An obtaining module, configured to obtain service configuration information corresponding to the service change operation when the service call type is a first-level call, wherein the service configuration information includes at least one service configuration name and the At least one service configuration value corresponding to each of the service configuration names; and 校验模块,用于根据所述至少一个业务配置名称,对与所述至少一个业务配置名称各自对应的业务配置值分别进行校验,得到信息校验结果。The verification module is configured to respectively verify the service configuration values corresponding to the at least one service configuration name according to the at least one service configuration name, and obtain information verification results. 14.一种电子设备,包括:14. An electronic device comprising: 一个或多个处理器;one or more processors; 存储器,用于存储一个或多个指令,memory for storing one or more instructions, 其中,当所述一个或多个指令被所述一个或多个处理器执行时,使得所述一个或多个处理器实现权利要求1至12中任一项所述的方法。Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors are made to implement the method according to any one of claims 1 to 12. 15.一种计算机可读存储介质,其上存储有可执行指令,所述可执行指令被处理器执行时使处理器实现权利要求1至12中任一项所述的方法。15. A computer-readable storage medium, on which executable instructions are stored, and when executed by a processor, the executable instruction causes the processor to implement the method according to any one of claims 1 to 12. 16.一种计算机程序产品,所述计算机程序产品包括计算机可执行指令,所述计算机可执行指令在被执行时用于实现权利要求1至12中任一项所述的方法。16. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 12 when executed.
CN202310261301.9A 2023-03-14 2023-03-14 Information verification methods and apparatuses, electronic devices and computer-readable storage media Active CN116226236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310261301.9A CN116226236B (en) 2023-03-14 2023-03-14 Information verification methods and apparatuses, electronic devices and computer-readable storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310261301.9A CN116226236B (en) 2023-03-14 2023-03-14 Information verification methods and apparatuses, electronic devices and computer-readable storage media

Publications (2)

Publication Number Publication Date
CN116226236A true CN116226236A (en) 2023-06-06
CN116226236B CN116226236B (en) 2026-02-13

Family

ID=86587374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310261301.9A Active CN116226236B (en) 2023-03-14 2023-03-14 Information verification methods and apparatuses, electronic devices and computer-readable storage media

Country Status (1)

Country Link
CN (1) CN116226236B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019469A (en) * 2017-12-07 2019-07-16 中兴通讯股份有限公司 Distributed data base data processing method, device, storage medium and electronic device
US20210158454A1 (en) * 2018-12-21 2021-05-27 Advanced New Technologies Co., Ltd. Method and device for data processing based on blockchain
CN114064035A (en) * 2021-11-18 2022-02-18 上海哔哩哔哩科技有限公司 Service configuration method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019469A (en) * 2017-12-07 2019-07-16 中兴通讯股份有限公司 Distributed data base data processing method, device, storage medium and electronic device
US20210158454A1 (en) * 2018-12-21 2021-05-27 Advanced New Technologies Co., Ltd. Method and device for data processing based on blockchain
CN114064035A (en) * 2021-11-18 2022-02-18 上海哔哩哔哩科技有限公司 Service configuration method and device

Also Published As

Publication number Publication date
CN116226236B (en) 2026-02-13

Similar Documents

Publication Publication Date Title
US10769228B2 (en) Systems and methods for web analytics testing and web development
US11533330B2 (en) Determining risk metrics for access requests in network environments using multivariate modeling
US11561889B2 (en) Orchestration for automated performance testing
US11068583B2 (en) Management of login information affected by a data breach
US11503070B2 (en) Techniques for classifying a web page based upon functions used to render the web page
US10049033B2 (en) Application gateway for cloud computing systems
US10567250B2 (en) End-to-end tracing providers and session management
US12278747B1 (en) Systems and methods to analyze root cause anomaly
CN117176576A (en) Network resource changing method, device, equipment and storage medium
US11954016B2 (en) Rejecting, during validation, sequences of components with invalid input dependencies
CN114237821A (en) Self-discovery method and device for Kubernetes container cluster, electronic device and storage medium
CN116401319B (en) Data synchronization method and device, electronic equipment and computer readable storage medium
CN112882948A (en) Stability testing method, device and system for application and storage medium
US12360878B1 (en) Addressing root cause anomaly
CN116226236A (en) Information verification method and device, electronic device, and computer-readable storage medium
US20230229800A1 (en) Content variation to track documents
US11025593B2 (en) Template-based session control in proxy solutions
US20210312300A1 (en) Intelligent feature delivery in a computing environment
US12346240B2 (en) Systems and methods for validating a cloud-hosted application
US20260037838A1 (en) Systems and methods for processing electronic requests
CN115421779A (en) Object storage method and device, electronic device, and computer-readable storage medium
CN120541322A (en) Page updating method and device, electronic device and computer-readable storage medium
CN116974902A (en) Software defect handling methods, devices, equipment, media and program products
CN115421873A (en) Dictionary construction method, dictionary-based file evaluation method and device, equipment
CN116149876A (en) Resource sharing method and device, electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant