Movatterモバイル変換


[0]ホーム

URL:


CN114201484A - Information processing method, device, electronic device and storage medium - Google Patents

Information processing method, device, electronic device and storage medium
Download PDF

Info

Publication number
CN114201484A
CN114201484ACN202111544978.0ACN202111544978ACN114201484ACN 114201484 ACN114201484 ACN 114201484ACN 202111544978 ACN202111544978 ACN 202111544978ACN 114201484 ACN114201484 ACN 114201484A
Authority
CN
China
Prior art keywords
data
compared
comparison
providers
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111544978.0A
Other languages
Chinese (zh)
Inventor
车晋强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN202111544978.0ApriorityCriticalpatent/CN114201484A/en
Publication of CN114201484ApublicationCriticalpatent/CN114201484A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The disclosure relates to an information processing method, an information processing apparatus, an electronic device, and a storage medium. The method comprises the following steps: determining a plurality of data providers for data comparison, and acquiring and storing data to be compared corresponding to the plurality of data providers; responding to the data comparison indication, and generating a comparison rule corresponding to a configuration file acquired in advance; and if the waiting time corresponding to the target data to be compared in the data to be compared reaches the preset time length, performing data comparison on the target data to be compared corresponding to the multiple data providers based on the comparison rule. In the scheme disclosed by the invention, the data comparison platform can set comparison rules in a configured mode, so that complicated operations such as code development online and the like are avoided, meanwhile, the data can be finely checked among different data providers by comparing when the waiting time reaches the preset time, the comparison failure caused by time errors is avoided, and the data comparison efficiency is effectively improved.

Description

Information processing method, information processing device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of computing technology, communication between systems is increasingly frequent. Due to a plurality of factors such as network problems, system faults or manual operation errors, data inconsistency is easy to occur in data interaction between systems. In order to improve data consistency between systems, data comparison can be performed on data interaction across systems.
In the related art, each time data comparison is performed, a corresponding check rule can be set in a code compiling mode according to data comparison requirements, and data comparison is performed according to the current check rule.
However, the data to be compared come from different data sources, and the corresponding data formats or data contents of the data are different, so that the data are difficult to be compared directly, and staff often need to set an adaptive check rule. When the data comparison requirement changes, workers need to spend a lot of time writing adaptive codes to adjust or change the data check rule, and the data comparison can be started after a series of operations such as development and online of the current check rule. Therefore, the related art has a problem of low data comparison efficiency.
Disclosure of Invention
The present disclosure provides an information processing method, an information processing apparatus, an electronic device, and a storage medium, so as to at least solve the problem of low data comparison efficiency in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information processing method including:
determining a plurality of data providers for data comparison, and acquiring and storing data to be compared corresponding to the plurality of data providers;
responding to the data comparison indication, and generating a comparison rule corresponding to a configuration file acquired in advance;
if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset time length, performing data comparison on the target data to be compared corresponding to the multiple data providers on the basis of the comparison rule; the target data to be compared is at least part of the stored data to be compared.
In an exemplary embodiment, before the determining a plurality of data providers to perform data comparison and acquiring and storing data to be compared corresponding to each of the plurality of data providers, the method further includes:
acquiring comparison configuration information aiming at the plurality of data providers, wherein the comparison configuration information comprises a comparison triggering condition and a data content checking rule, and the comparison triggering condition is used for indicating data comparison when the data to be compared contains set data items;
and generating corresponding script files based on the comparison configuration information to serve as the configuration files corresponding to the plurality of data providers.
In an exemplary embodiment, the target data to be compared comprises first data to be compared provided by a first data provider and second data to be compared provided by a second data provider,
the data comparison of the target data to be compared corresponding to the multiple data providers based on the comparison rule includes:
when first to-be-compared data provided by the first data provider comprises a corresponding first set data item and second to-be-compared data provided by the second data provider comprises a corresponding second set data item, acquiring first data content associated with the data content comparison rule in the first to-be-compared data and acquiring second data content associated with the data content comparison rule in the second to-be-compared data;
comparing the first data content and the second data content based on the data content collation rules to determine whether the first data content and the second data content are consistent.
In an exemplary embodiment, the acquiring and storing the data to be compared corresponding to each of the plurality of data providers includes:
acquiring original data in data sources corresponding to the data providers;
and filtering the original data, and acquiring and storing the data to be compared corresponding to the plurality of data providers based on the filtered original data.
In an exemplary embodiment, the obtaining raw data in a data source corresponding to each of the plurality of data providers includes:
acquiring pre-configured storage paths corresponding to the data providers respectively, and determining data sources corresponding to the storage paths;
and acquiring original data in each data source through a preset common message queue.
In an exemplary embodiment, before performing data comparison on the target data to be compared corresponding to each of the multiple data providers based on the comparison rule if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset duration, the method further includes:
acquiring a target data identifier of which the waiting time reaches a preset duration from a preset identifier queue; the identification queue stores data identifications corresponding to the currently acquired data to be compared;
and acquiring data to be compared corresponding to the target data identification from the stored data to be compared, and taking the data to be compared as the data to be compared of the target with the waiting time reaching the preset duration.
In an exemplary embodiment, after the obtaining and storing the data to be compared corresponding to each of the plurality of data providers, the method further includes:
and acquiring a data identifier corresponding to the data to be compared, and storing the data identifier into a preset identifier queue.
In an exemplary embodiment, the data identification comprises a checking module identification associated with a checking module, the checking module is used for carrying out data comparison on the target data to be compared,
the data comparison of the target data to be compared based on the comparison rule comprises the following steps:
determining a corresponding target checking module based on the checking module identification in the currently acquired data identification;
and calling the target checking module to trigger the target checking module to perform data comparison on the target data to be compared corresponding to the plurality of data providers based on the comparison rule.
According to a second aspect of the embodiments of the present disclosure, there is provided an information processing apparatus including:
the data acquisition unit is configured to execute the determination of a plurality of data providers for data comparison, and acquire and store the data to be compared corresponding to the plurality of data providers;
the comparison rule generating unit is configured to execute a comparison rule corresponding to a configuration file acquired in advance in response to the data comparison instruction;
the data comparison unit is configured to perform data comparison on the target data to be compared corresponding to the multiple data providers based on the comparison rule if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset time length; the target data to be compared is at least part of the stored data to be compared.
In an exemplary embodiment, the apparatus further comprises:
a comparison configuration information acquisition unit configured to perform acquisition of comparison configuration information for the plurality of data providers, the comparison configuration information including a comparison trigger condition and a data content check rule, the comparison trigger condition being used to indicate that data comparison is performed when the data to be compared includes a set data item;
and the script file generating unit is configured to execute generation of corresponding script files based on the comparison configuration information as configuration files corresponding to the plurality of data providers.
In an exemplary embodiment, the target data to be compared comprises first data to be compared provided by a first data provider and second data to be compared provided by a second data provider,
the data comparison unit comprises:
a data content obtaining module configured to obtain a first data content associated with the data content matching rule in the first data to be compared and obtain a second data content associated with the data content matching rule in the second data to be compared, when the first data to be compared provided by the first data provider includes a corresponding first set data item and the second data to be compared provided by the second data provider includes a corresponding second set data item;
a data content comparison module configured to perform a comparison of the first data content and the second data content based on the data content collation rules to determine whether the first data content and the second data content are consistent.
In an exemplary embodiment, the data obtaining unit includes:
a raw data acquisition module configured to perform acquisition of raw data in data sources corresponding to the plurality of data providers;
and the data filtering module is configured to filter the original data, and acquire and store the data to be compared corresponding to the plurality of data providers based on the filtered original data.
In an exemplary embodiment, the raw data acquisition module includes:
the storage path acquisition module is configured to acquire a storage path corresponding to each of the plurality of pre-configured data providers and determine a data source corresponding to the storage path;
and the message queue calling module is configured to execute the acquisition of the original data in each data source through a preset common message queue.
In an exemplary embodiment, the apparatus further comprises:
the data identification reading unit is configured to acquire a target data identification of which the waiting time reaches a preset duration from a preset identification queue; the identification queue stores data identifications corresponding to the currently acquired data to be compared;
and the target data searching unit is configured to execute the comparison to be performed in the stored data to be compared, acquire the data to be compared corresponding to the target data identifier, and use the data to be compared as the target data to be compared when the waiting time reaches a preset duration.
In an exemplary embodiment, the apparatus further comprises:
and the data identifier storage unit is configured to execute acquisition of a data identifier corresponding to the data to be compared and store the data identifier into a preset identifier queue.
In an exemplary embodiment, the data identification comprises a checking module identification associated with a checking module, the checking module is used for carrying out data comparison on the target data to be compared,
the data comparison unit comprises:
the query module is configured to execute the verification module identification in the currently acquired data identification, and determine a corresponding target verification module;
the calling module is configured to execute calling of the target checking module so as to trigger the target checking module to perform data comparison on the target data to be compared corresponding to the plurality of data providers based on the comparison rule.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information processing method as described in any one of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to any one of the above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product including instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method as described in any one of the above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the scheme disclosed by the invention, the data comparison platform can set comparison rules in a configured mode, so that complicated operations such as code development online and the like are avoided, meanwhile, the data can be finely checked among different data providers by comparing when the waiting time reaches the preset time, the comparison failure caused by time errors is avoided, and the data comparison efficiency is effectively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a diagram illustrating an application environment of an information processing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating an information processing method according to an example embodiment.
FIG. 3 is a flow chart illustrating a method for obtaining data to be compared according to an exemplary embodiment.
FIG. 4 is a flow chart illustrating another method of information processing according to an example embodiment.
Fig. 5 is a block diagram illustrating an information processing apparatus according to an example embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 7 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
With the development of computing technology, communication between systems is increasingly frequent. Due to a plurality of factors such as network problems, system faults or manual operation errors, data inconsistency is easy to occur in data interaction between systems. In order to improve data consistency between systems, data comparison can be performed on data interaction across systems.
In the related art, when data comparison is performed on a plurality of systems, a message queue corresponding to the data comparison application may be applied in advance, data to be compared is obtained through the message queue, and data comparison is performed according to a comparison rule. For example, taking the data comparison between the system a and the system B as an example, a message queue may be applied in advance for the system a and the system B of the data comparison, so as to obtain the relevant data from the system a and the system B through the message queue. After applying for the message queue, the databases of the system a and the system B may be monitored to obtain the corresponding log file, and the log file is sent to the reconciliation platform through the message queue applied in advance. After the reconciliation platform preprocesses the log files, the preprocessed log files of the system A and the system B can be stored in a database, and data comparison is carried out based on a check rule written by codes.
However, in this method, it is often necessary for a worker to spend a lot of time to perform reconciliation preparation work, including applying for a message queue and writing codes corresponding to a reconciliation rule, and after a series of operations such as development and online, data reconciliation can be performed. Therefore, the data comparison method of the related art has a problem of low data comparison efficiency.
The information processing method provided by the present disclosure can be applied to the application environment shown in fig. 1. In the application environment, a data alignment platform 110 and a data provider 120 may be included, and the data provider 120 may be at least two data providers 120. The data comparison platform 110 may be implemented by an independent server or a server cluster composed of a plurality of servers, or may be a system composed of a terminal and a server; the data provider 120 may be a terminal or a server that provides the data to be compared, or may be a system composed of a terminal and a server.
Fig. 2 is a flowchart illustrating an information processing method according to an exemplary embodiment, and as shown in fig. 2, the method is described as being applied to the data comparison platform 110, and may include the following steps.
In step S210, a plurality of data providers for data comparison are determined, and the data to be compared corresponding to the plurality of data providers is acquired and stored.
In a specific implementation, the data comparison platform 110 may determine a plurality of data providers to perform data comparison, where the plurality of data providers may be two or more data providers. After the data providers are determined, the data comparison platform 110 may obtain data to be compared corresponding to each data provider, and store the obtained data to be compared.
In step S220, in response to the data comparison instruction, a comparison rule corresponding to the configuration file acquired in advance is generated.
As an example, the configuration file may be a file generated based on the input configuration information.
In practical applications, when performing data reconciliation, a worker may send a data comparison instruction to the data comparison platform 110. In response to the received data comparison indication, the data comparison platform 110 may obtain configuration files corresponding to the plurality of data providers 120 and generate comparison rules corresponding to the configuration files.
Specifically, for example, configuration files for a plurality of data providers 120 may be generated in advance, the configuration files may have corresponding configuration information, and the configuration information may at least include information representing a data comparison manner; after the configuration file is generated, the configuration file may be stored in a database, and further, after receiving the data comparison instruction, the data comparison platform 110 may load the configuration file from the database, and generate a corresponding comparison rule according to configuration information in the configuration file.
In the embodiment, a variable business scene and a relatively stable data comparison process logic can be separated from each other, the comparison rule corresponding to the data to be compared is set by adopting the configuration file, the comparison rule can be adjusted in the background simply, conveniently and quickly, when the data comparison scene changes, such as the data comparison mode changes, the core code logic of the data comparison platform does not need to be modified, the configuration file only needs to be modified, the configuration file is matched with a new data comparison scene, and developers do not need to perform complex operations such as development iteration or online on the comparison rule, so that the universality of the method in the distributed data comparison scene is greatly increased, the data comparison efficiency is improved, and meanwhile, the labor cost and the time cost of data comparison are reduced.
In step S230, if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset duration, the data to be compared corresponding to the target data to be compared of the multiple data providers is compared based on the comparison rule.
As an example, the target data to be compared may be at least part of the stored data to be compared, for example, the data recorded by different data providers 120 for the same event may be generated, for example, for the event M1, if the data provider a generates the data record a and the data provider B generates the data record B, the stored data record a and the data record B may be used as the target data to be compared.
The waiting time may be the time from the time when the data to be compared is stored by the data comparison platform to the current time, or the waiting time when the data to be compared waits in the preset queue may be used as the waiting time.
Specifically, after the data to be compared is obtained and stored, at least data of the data to be compared may be used as the target data to be compared, and the waiting time corresponding to the target data to be compared may be obtained. When the waiting time corresponding to the target to-be-compared time reaches a preset duration, data comparison can be performed on the target to-be-compared data corresponding to the multiple data providers respectively based on the obtained comparison rule, and a comparison result is obtained.
By comparing the target data to be compared corresponding to each data provider after the waiting time reaches the preset duration, the data can be finely checked among different data providers, and the data comparison failure caused by incomplete target data to be compared due to system time errors of different data providers can be avoided.
In the above information processing method, the data comparison platform 110 may determine a plurality of data providers to be subjected to data comparison, determine a message queue that can be called by each data provider from a plurality of shared message queues, obtain and store data to be compared corresponding to each data provider through the message queue that can be called, in response to a data comparison instruction, obtain configuration files corresponding to the plurality of data providers, generate comparison rules corresponding to the configuration files, further obtain at least part of the stored data to be compared as target data to be compared, and perform data comparison on the target data to be compared based on the comparison rules. In the scheme disclosed by the invention, the data comparison platform can set comparison rules in a configured mode, so that complicated operations such as code development online and the like are avoided, meanwhile, the data can be finely checked among different data providers by comparing when the waiting time reaches the preset time, the comparison failure caused by time errors is avoided, and the data comparison efficiency is effectively improved.
In an exemplary embodiment, before the determining a plurality of data providers to perform data comparison and acquiring and storing data to be compared corresponding to each of the plurality of data providers, the method further includes:
acquiring comparison configuration information aiming at the plurality of data providers; and generating corresponding script files based on the comparison configuration information to serve as the configuration files corresponding to the plurality of data providers.
As an example, the comparison configuration information may include a comparison trigger condition and a data content collation rule.
The comparison triggering condition may be used to instruct that data comparison is performed when the data to be compared includes the set data item, specifically, the data to be compared may include a plurality of data items, and when the data to be compared includes the set data item, the data to be compared may be compared.
The data content check rule may be a check manner of data content in the data to be compared, and may be used to determine whether the data to be compared provided by different data providers are consistent or matched.
In particular implementations, the data alignment platform 110 can obtain alignment configuration information for multiple data providers 120. Specifically, the staff may input the corresponding comparison configuration information for each data provider 120 in the configuration interface corresponding to the data comparison platform, and then the data comparison platform may obtain the comparison configuration information for the plurality of data providers 120.
After the comparison configuration information is obtained, the data comparison platform 110 may generate a corresponding script file based on the comparison configuration information, and use the script file as a configuration file corresponding to a plurality of data providers. Specifically, compared with the compiled language, i.e., the code, since the information stored in the script file is the interpreted language, the script file is not required to perform operations such as online publishing.
In the present disclosure, the data comparison platform 110 may obtain comparison configuration information for a plurality of data providers, and generate corresponding script files based on the comparison configuration information, as configuration files corresponding to the plurality of data providers, so that a worker can quickly modify a comparison rule of the data comparison platform by comparing the configuration information, thereby avoiding setting the comparison rule through a code, reducing tedious operations such as online release, and improving data comparison efficiency.
In an exemplary embodiment, the comparing the target data to be compared includes first data to be compared provided by a first data provider and second data to be compared provided by a second data provider, and in step S230, the comparing the target data to be compared corresponding to each of the plurality of data providers based on the comparison rule includes:
when first to-be-compared data provided by the first data provider comprises a corresponding first set data item and second to-be-compared data provided by the second data provider comprises a corresponding second set data item, acquiring first data content associated with the data content comparison rule in the first to-be-compared data and acquiring second data content associated with the data content comparison rule in the second to-be-compared data; comparing the first data content and the second data content based on the data content collation rules to determine whether the first data content and the second data content are consistent.
As an example, the first setting data item may be a setting data item configured for a first data provider in the comparison trigger condition, the second setting data item may be a setting data item configured for a second data provider in the comparison trigger condition, and the first setting data item may be the same as or different from the second setting data item.
The data content collation rule may characterize a collation criterion for data contents from different data providers, the first data content associated with the data content collation rule may be data content in first data to be collated specified by the data content collation rule for collation, and the second data content associated with the data content collation rule may be data content in second data to be collated specified by the data content collation rule for collation.
In practical applications, the plurality of data providers 120 may include a first data provider and a second data provider. After the plurality of target data to be compared are obtained, first data to be compared provided by a first data provider and second data to be compared provided by a second data provider can be obtained from the plurality of target data to be compared, and according to a comparison trigger condition in the comparison rule, whether the first data to be compared contains a first set data item configured for the first data provider or not and whether the second data to be compared contains a second set data item configured for the second data provider or not are obtained, and other data contents which do not need to be subjected to data comparison in the first data to be compared and the second data to be compared can be filtered.
When the first to-be-compared data does not include the first set data item, or the second to-be-compared data does not include the second set data item, the data comparison platform may not compare the first to-be-compared data with the second to-be-compared data.
When first to-be-compared data provided by a first data provider contains a corresponding first set data item and second to-be-compared data provided by a second data provider contains a corresponding second set data item, the data comparison platform can acquire first data content associated with the data content comparison rule in the first to-be-compared data and second data content associated with the data content comparison rule in the second to-be-compared data, and can compare the first data content and the second data content by adopting the data content comparison rule to determine whether the first data content is consistent with the second data content.
In order to enable those skilled in the art to better understand the trigger condition and the data content checking rule, the following exemplary embodiments of the present disclosure are described by way of some examples, but it should be understood that the embodiments of the present disclosure are not limited thereto.
As shown in table 1 below, exemplary alignment configuration information:
TABLE 1
Column nameData typeWhether or not it is emptyNote
idbigintWhether or notPrimary key id
aMsgConfigIdbigintWhether or notService one
bMsgConfigIdbigintWhether or notService two
checkTypeintWhether or notType of collation
aTriggerRuletextIs thatBusiness-trigger rules
bTriggerRuletextIs thatBusiness two-trigger rules
aRootKeyvarcharWhether or notService-triggering main key
bRootKeyvarcharIs thatService two-trigger main key
expireTimelongIs thatChecking the age
checkRuleConfigIdbigintWhether or notData content collation rule id
aFieldsvarcharWhether or notBusiness-to-collation data item
bFieldsvarcharWhether or notBusiness two-check data item
alarmRecipientvarcharWhether or notAlarm receiver
The primary key id may be an identifier corresponding to the comparison configuration information.
The first service and the second service may refer to service descriptions or service identifiers corresponding to the first data to be compared and the second data to be compared.
The check types may include single-stream check and double-stream check, specifically, in the data comparison, multiple data to be compared are often involved, the single-stream check refers to comparing one of the data to be compared with other data to be compared to determine a difference between the data to be compared and the other data to be compared, and the double-stream check refers to comparing multiple data to be compared with each other to determine a difference between each data to be compared and the other data to be compared. For example, when comparing the first to-be-compared data with the second to-be-compared data, the single-stream check may be to determine information that is missing in the first to-be-compared data compared with the second to-be-compared data, and the double-stream check may further determine information that is missing in the second to-be-compared data compared with the first to-be-compared data based on the single-stream check.
The first business triggering rule and the second business triggering rule may be another comparison triggering condition, where the first business triggering rule may be configured for a database table in the first data provider or the first to-be-compared data, and is used to compare the first to-be-compared data with the database table in the other data provider or the to-be-compared data when the first business triggering rule is satisfied. Correspondingly, the second business triggering rule may be configured for a database table or second to-be-compared data in the second data provider, and is used to compare the second to-be-compared data with the database table or the to-be-compared data in the other data providers when the database table or the to-be-compared data meets the second business triggering rule.
The checking time limit can be an effective time range within which the first data to be compared and the second data to be compared can be compared. Specifically, the first data to be compared and the second data to be compared may have a certain time delay from generation to comparison, and the comparison timeliness may be used to compare the first data to be compared and the second data to be compared within a preset time delay range, thereby improving timeliness and accuracy of the data comparison result.
The collation data item may also be referred to as a collation attribute. In practice, the first data to be compared and the second data to be compared may both include a plurality of data items, that is, may include a plurality of fields, but during data comparison, each data item does not necessarily need to be compared one by one, and therefore, the first service check data item and the second service check data item may respectively designate the data items to be compared in the first data to be compared and the second data to be compared, so as to avoid comparing data contents of all data items, save comparison time, and improve data comparison efficiency.
The alarm receiver may be a receiver of the comparison result, or may be a receiver of the abnormal comparison result when the comparison result is abnormal, for example, if the comparison result is not matched, the alarm receiver may send alarm information to the alarm receiver.
The data content collation rule may be configured by the information as shown in the following table 2:
TABLE 2
Column nameData typeWhether or not it is emptyNote
idbigintWhether or notPrimary key id
ruleNamevarcharWhether or notRule name
ruleDescvarcharWhether or notRule description
ruleScripttextWhether or notScript file
scriptTypevarcharWhether or notRule type
ruleStatusvarcharWhether or notStatus of state
The primary key id may be a data content check rule id, the rule type may be any one of groovy, avertor, or java, and the state may be used to set whether the data content check rule is currently in a use state.
In this disclosure, when a first to-be-compared data provided by a first data provider includes a corresponding first set data item and a second to-be-compared data provided by a second data provider includes a corresponding second set data item, the data comparison platform may acquire a first data content associated with the data content comparison rule in the first to-be-compared data and acquire a second data content associated with the data content comparison rule in the second to-be-compared data, and may compare the first data content and the second data content based on the data content comparison rule to determine whether the first data content and the second data content are consistent. According to the scheme, the first data to be compared and the second data to be compared can be compared when the comparison triggering conditions are met, comparison under the condition that designated information is lacked is avoided, and reliability and efficiency of data comparison are improved.
In an exemplary embodiment, in step S210, the acquiring and storing the data to be compared corresponding to each of the plurality of data providers includes:
acquiring original data in data sources corresponding to the data providers; and filtering the original data, and acquiring and storing the data to be compared corresponding to the plurality of data providers based on the filtered original data.
In a specific implementation, after a plurality of data providers are determined, data sources corresponding to data to be compared by the plurality of data providers can be determined, and original data is acquired from the data sources corresponding to the data providers.
After the original data is acquired, because data which does not need to be compared may exist in the original data, a preset data filtering rule can be acquired, the original data is omitted, the original data of irrelevant data is screened out based on the filtered original data, the original data is used as data to be compared corresponding to a plurality of data providers, and the currently acquired data to be compared is stored.
When the original data is filtered, different data providers can use different data filtering rules to respectively filter the original data corresponding to each data provider, and the same data filtering rules can also be used to filter the original data corresponding to different data providers.
In practical application, a worker can set a filtering rule of data to be compared in advance through a configuration interface, the data filtering rule can be stored in a configuration file as configuration information for filtering the data, and then the data comparing platform can read the data filtering rule from the configuration file for filtering. For example, a filtering rule "$. amount >0& & & $. state ═ SUCCESS" may be configured in advance to filter out data to be aligned in which "amount" and "state" in the acquired data to be aligned satisfy a condition.
According to the data comparison method and device, after the data comparison platform obtains the original data, the original data can be filtered, the data to be compared corresponding to a plurality of data providers are obtained and stored based on the filtered original data, the data which do not need to be compared can be filtered, and the storage and calculation cost of subsequent links is reduced.
In an exemplary embodiment, in step S210, the acquiring original data in the data source corresponding to each of the plurality of data providers includes:
acquiring pre-configured storage paths corresponding to the data providers respectively, and determining data sources corresponding to the storage paths; and acquiring original data in each data source through a preset common message queue.
The storage path is a storage path of a data source corresponding to the data provider.
In a specific implementation, a worker may perform storage path configuration in advance, where the storage path is a storage path of a data source corresponding to original data in a data provider, and by configuring the storage path in advance, a corresponding data source may be determined based on the storage path. In one example, the data path configuration may be made through table 3 as shown below:
TABLE 3
Figure BDA0003415518890000111
Figure BDA0003415518890000121
The primary key identification and the name are the primary key identification and the name corresponding to the original data, and the service description is used for representing the service described by the original data.
The data provider is a data provider configured by the staff and to-be-compared with the data, and the data comparison platform can determine the plurality of data providers 120 to be compared with the data by reading the data provider in the data path configuration. Since each data provider may have one or more databases for storing data, the databases may be used to determine the specific database associated with the data provider 120.
The database table rule can be used for screening out one or more data tables meeting the database table rule in the database, when the database table records a plurality of data about different types of services, the database table can be divided to obtain a plurality of partitions, the corresponding partitions are determined through the distribution keys, and the distribution keys can also be partition keys. The data specified in the database table may then be determined based on the service identification and the distribution key.
In this example, after determining a plurality of data providers 120 to be subjected to data comparison, a pre-configured storage path corresponding to each data provider 120 may be obtained, and original data in a data source corresponding to the storage path may be obtained through a preset common message queue.
For example, as shown in fig. 3, a first data provider and a second data provider are included, and the first data provider and the second data provider may provide log files (e.g., binlog binary log files) as the data to be compared. When performing data reconciliation, the data comparison platform 110 may read path configuration information including the contents in table 3, and determine, according to the path configuration information, a first data provider and a second data provider that are to perform data comparison, further, may also obtain, from the path configuration information, respective storage paths corresponding to the first data provider and the second data provider, and may further send a data acquisition request including the storage path to the first data provider and the second data provider.
After receiving the data acquisition request, the first data provider and the second data provider can acquire log data under the corresponding storage path, analyze the log data through a log analyzer, respectively use the data obtained after analysis as first original data and second original data, and further the first data provider and the second data provider can transmit the first original data and the second original data to the data comparison platform through a common message queue.
In one example, the common message queue may be one or more common message queues, and by setting the common message queue, application for a special message queue before performing data comparison may be avoided. The storage path corresponding to each data provider may be a storage path corresponding to two or more data providers, for example, in a scenario of comparing a single data table with a single data table, the data comparison of the data table a may only depend on the data table B, and for example, in a scenario of comparing a single data table with multiple data tables, the data comparison of the data table C may depend on the data table D and the data table E, and then the storage paths of the data table C, the data table D, and the data table E may be configured at the same time.
In this disclosure, the data comparison platform can acquire the respective storage path that corresponds of a plurality of data providers of pre-configuration, and determine the data source that the storage path corresponds, and then can acquire the raw data in each data source through the public message queue of presetting, can be through the mode of configuration, compare the changeable data of in-process and compare the flow phase separation with more stable data, when the data comparison scene changes, such as data provider or when waiting to compare the data change, can compare different data through modifying corresponding storage path, effectively improve data comparison efficiency.
In an exemplary embodiment, after the obtaining and storing the to-be-compared data corresponding to each data provider through the callable message queue, the method may further include:
and acquiring a data identifier corresponding to the data to be compared, and storing the data identifier into a preset identifier queue.
The identification queue may store data identifications corresponding to currently acquired data to be compared, and the identification queue serves as a queue and may access the data identifications in a first-in first-out manner.
In practical application, after the data comparison platform 110 obtains the data to be compared, the data identifier corresponding to the data to be compared may be obtained.
Specifically, after the data to be compared is obtained, the data comparison platform 110 may obtain a check module identifier (checkUnitId), a storage path identifier (triggerMsgConfigId), and a unique identifier (rootKey) corresponding to the data to be compared, where the check module identifier is an identifier corresponding to a check module for performing data comparison on subsequent data to be compared, the storage path configuration identifier is an identifier corresponding to a storage path corresponding to the data to be compared, and the unique identifier is an identifier capable of uniquely identifying current data to be compared in a plurality of data to be compared. Furthermore, the data comparison platform can splice the check module identifier, the storage path identifier and the unique identifier, and use the spliced character string as the data identifier of the data to be compared.
After the data identifier corresponding to the data to be compared is obtained, the data identifier may be stored in a preset identifier queue. Specifically, after the data comparison platform 110 obtains all the data to be compared, the data identifier corresponding to the data to be compared can be obtained in time and stored in the identifier queue, so that a plurality of successively obtained data identifiers can be sequentially stored in the identifier queue.
In the disclosure, the data comparison platform obtains the data identifier corresponding to the compared data, and stores the data identifier in a preset identifier queue, so as to provide a basis for subsequently implementing the ordered comparison of the data to be compared.
In an exemplary embodiment, before performing data comparison on the target data to be compared corresponding to each of the multiple data providers based on the comparison rule if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset duration, the method further includes:
acquiring a target data identifier of which the waiting time reaches a preset duration from a preset identifier queue; and acquiring data to be compared corresponding to the target data identification from the stored data to be compared, and taking the data to be compared as the data to be compared of the target with the waiting time reaching the preset duration.
The identification queue stores data identifications corresponding to the currently acquired data to be compared.
In practical application, after the data identifier is stored in the identifier queue, the data identifier may not be immediately taken out from the identifier queue, but after waiting for a certain time, the target data identifier whose waiting time reaches the preset duration is obtained from the preset identifier queue. After the target data identifier is obtained, the data to be compared corresponding to the target data identifier may be obtained from the stored data to be compared, and the obtained data is used as the data to be compared of the target when the waiting time reaches the preset duration.
As shown in fig. 4, after the data to be compared is obtained, the data to be compared may be stored in a cache, and a data identifier corresponding to the data to be compared may be stored in an identifier queue, where the identifier queue may be a delay queue (triggerQueue), and a worker may adjust a preset delay of the delay queue according to different service scenarios. After receiving the data comparison instruction, the data comparison platform may load a corresponding script file from the database, generate a comparison rule, and simultaneously determine whether the waiting time of the data identifier in the identifier queue expires, and when the waiting time expires, may query the target data to be compared associated with the target data identifier according to the target data identifier currently taken out of the delay queue.
In the present disclosure, the data comparison platform 110 obtains a target data identifier whose waiting time reaches a preset duration from a preset identifier queue, obtains data to be compared corresponding to the target data identifier from stored data to be compared, and uses the data to be compared as the target data to be compared.
In an exemplary embodiment, the data identifier may include a checking module identifier associated with a checking module, the checking module may be configured to perform data comparison on target data to be compared, and performing data comparison on the target data to be compared corresponding to each of the plurality of data providers based on the comparison rule may include:
determining a corresponding target checking module based on the checking module identification in the currently acquired data identification; and calling the target checking module to trigger the target checking module to perform data comparison on the target data to be compared corresponding to the plurality of data providers based on the comparison rule.
In practical application, a plurality of checking modules can be preset, for example, when the number of data to be compared is large, the data to be compared under the same storage path of different data providers can be compared in parallel through the plurality of checking modules, and therefore the data comparison efficiency is greatly improved.
In this embodiment, after the data identifier is obtained from the identifier queue, the target matching module corresponding to the matching module identifier may be determined based on the matching module identifier in the currently obtained data identifier, and then the target matching module may be called to trigger the target matching module to perform data matching on the target to-be-compared data corresponding to each data provider based on the comparison rule. In a specific implementation, the plurality of checking modules can perform data comparison on the target data to be compared by using the same comparison rule.
In the disclosure, the data comparison platform may determine the corresponding target comparison module based on the comparison module identifier in the currently acquired data identifiers, and call the target comparison module to trigger the target comparison module to perform data comparison on the target data to be compared based on the comparison rule, so that a plurality of comparison modules can be reasonably scheduled to perform data comparison, and the speed of data comparison is increased.
In an exemplary embodiment, after the target data to be compared is compared, a corresponding comparison result may be obtained. Specifically, if the comparison result is data match, the target data to be compared may be continuously obtained for comparison, and if the comparison result is data mismatch, the corresponding target data to be compared may be stored, so as to perform any one or more of query, check, and alarm on the target data to be compared having an error in the following. In addition, the recording method of the comparison result may be configured in advance, and as shown in the following table 4, a table is configured for the recording method of the comparison result:
TABLE 4
Column nameData typeWhether or not it is emptyNote
idbigintWhether or notIdentification corresponding to comparison result
resultCodevarcharWhether or notComparison result coding (coding rule)
resultMsgvarcharWhether or notComparison results
checkUnitIdbigintWhether or notVerification module identification
In practical application, the alarm operation may be performed according to a preset time interval, for example, the alarm may be performed on data with abnormal comparison results every minute.
It should be understood that although the steps in the flowcharts of fig. 2, 3 and 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3 and 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least some of the other steps.
It is understood that the same/similar parts between the embodiments of the method described above in this specification can be referred to each other, and each embodiment focuses on the differences from the other embodiments, and it is sufficient that the relevant points are referred to the descriptions of the other method embodiments.
Fig. 5 is a block diagram illustrating an information processing apparatus 500 according to an example embodiment. Referring to fig. 5, the apparatus includes adata acquisition unit 501, an alignmentrule generation unit 502, and adata alignment unit 503.
Adata obtaining unit 501, configured to perform determining a plurality of data providers to be subjected to data comparison, and obtain and store to-be-compared data corresponding to each of the plurality of data providers;
a comparisonrule generating unit 502 configured to execute generating a comparison rule corresponding to a configuration file acquired in advance in response to the data comparison instruction;
adata comparison unit 503 configured to perform data comparison on the target data to be compared corresponding to each of the plurality of data providers based on the comparison rule if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset duration; the target data to be compared is at least part of the stored data to be compared.
In an exemplary embodiment, the apparatus further comprises:
a comparison configuration information acquisition unit configured to perform acquisition of comparison configuration information for the plurality of data providers, the comparison configuration information including a comparison trigger condition and a data content check rule, the comparison trigger condition being used to indicate that data comparison is performed when the data to be compared includes a set data item;
and the script file generating unit is configured to execute generation of corresponding script files based on the comparison configuration information as configuration files corresponding to the plurality of data providers.
In an exemplary embodiment, the target data to be compared comprises first data to be compared provided by a first data provider and second data to be compared provided by a second data provider,
thedata comparing unit 503 includes:
a data content obtaining module configured to obtain a first data content associated with the data content matching rule in the first data to be compared and obtain a second data content associated with the data content matching rule in the second data to be compared, when the first data to be compared provided by the first data provider includes a corresponding first set data item and the second data to be compared provided by the second data provider includes a corresponding second set data item;
a data content comparison module configured to perform a comparison of the first data content and the second data content based on the data content collation rules to determine whether the first data content and the second data content are consistent.
In an exemplary embodiment, thedata obtaining unit 501 includes:
a raw data acquisition module configured to perform acquisition of raw data in data sources corresponding to the plurality of data providers;
and the data filtering module is configured to filter the original data, and acquire and store the data to be compared corresponding to the plurality of data providers based on the filtered original data.
In an exemplary embodiment, the raw data acquisition module includes:
the storage path acquisition module is configured to acquire a storage path corresponding to each of the plurality of pre-configured data providers and determine a data source corresponding to the storage path;
and the message queue calling module is configured to execute the acquisition of the original data in each data source through a preset common message queue.
In an exemplary embodiment, the apparatus further comprises:
the data identification reading unit is configured to acquire a target data identification of which the waiting time reaches a preset duration from a preset identification queue; the identification queue stores data identifications corresponding to the currently acquired data to be compared;
and the target data searching unit is configured to execute the comparison to be performed in the stored data to be compared, acquire the data to be compared corresponding to the target data identifier, and use the data to be compared as the target data to be compared when the waiting time reaches a preset duration.
In an exemplary embodiment, the apparatus further comprises:
and the data identifier storage unit is configured to execute acquisition of a data identifier corresponding to the data to be compared and store the data identifier into a preset identifier queue.
In an exemplary embodiment, the data identification comprises a checking module identification associated with a checking module, the checking module is used for carrying out data comparison on the target data to be compared,
thedata comparing unit 503 includes:
the query module is configured to execute the verification module identification in the currently acquired data identification, and determine a corresponding target verification module;
the calling module is configured to execute calling of the target checking module so as to trigger the target checking module to perform data comparison on the target data to be compared corresponding to the plurality of data providers based on the comparison rule.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 6 is a block diagram illustrating anelectronic device 600 for implementing an information processing method according to an example embodiment. For example, theelectronic device 600 may be a server. Referring to fig. 6,electronic device 600 includes aprocessing component 620 that further includes one or more processors, and memory resources, represented bymemory 622, for storing instructions, such as application programs, that are executable by processingcomponent 620. The application programs stored inmemory 622 may include one or more modules that each correspond to a set of instructions. Further, theprocessing component 620 is configured to execute instructions to perform the above-described methods.
Theelectronic device 600 may further include: thepower component 624 is configured to perform power management for theelectronic device 600, the wired orwireless network interface 626 is configured to connect theelectronic device 600 to a network, and the input/output (I/O)interface 628. Theelectronic device 600 may operate based on an operating system stored in thememory 622, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, or the like.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as thememory 622 comprising instructions, executable by the processor of theelectronic device 600 to perform the above-described method is also provided. The storage medium may be a computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which includes instructions executable by a processor of theelectronic device 600 to perform the above-described method.
Fig. 7 is a block diagram illustrating anelectronic device 700 for implementing an information processing method according to an example embodiment. For example, theelectronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 7,electronic device 700 may include one or more of the following components: processingcomponent 702,memory 704,power component 706,multimedia component 708,audio component 710, input/output (I/O)interface 712,sensor component 714, andcommunication component 716.
Theprocessing component 702 generally controls overall operation of theelectronic device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing components 702 may include one ormore processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 702 may include one or more modules that facilitate interaction between theprocessing component 702 and other components. For example, theprocessing component 702 may include a multimedia module to facilitate interaction between themultimedia component 708 and theprocessing component 702.
Thememory 704 is configured to store various types of data to support operations at theelectronic device 700. Examples of such data include instructions for any application or method operating on theelectronic device 700, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 704 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, optical disk, or graphene memory.
Thepower supply component 706 provides power to the various components of theelectronic device 700. Thepower components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for theelectronic device 700.
Themultimedia component 708 includes a screen providing an output interface between theelectronic device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when theelectronic device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 710 is configured to output and/or input audio signals. For example, theaudio component 710 includes a Microphone (MIC) configured to receive external audio signals when theelectronic device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in thememory 704 or transmitted via thecommunication component 716. In some embodiments,audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between theprocessing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 714 includes one or more sensors for providing various aspects of status assessment for theelectronic device 700. For example, thesensor assembly 714 may detect an open/closed state of theelectronic device 700, the relative positioning of components, such as a display and keypad of theelectronic device 700, thesensor assembly 714 may also detect a change in the position of theelectronic device 700 or components of theelectronic device 700, the presence or absence of user contact with theelectronic device 700, the orientation or acceleration/deceleration of thedevice 700, and a change in the temperature of theelectronic device 700. Thesensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 716 is configured to facilitate wired or wireless communication between theelectronic device 700 and other devices. Theelectronic device 700 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, thecommunication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theelectronic device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as thememory 704 comprising instructions, executable by theprocessor 720 of theelectronic device 700 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes instructions executable by theprocessor 720 of theelectronic device 700 to perform the above-described method.
It should be noted that the descriptions of the above-mentioned apparatus, the electronic device, the computer-readable storage medium, the computer program product, and the like according to the method embodiments may also include other embodiments, and specific implementations may refer to the descriptions of the related method embodiments, which are not described in detail herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

Translated fromChinese
1.一种信息处理方法,其特征在于,包括:1. an information processing method, is characterized in that, comprises:确定待进行数据比对的多个数据提供方,获取并存储所述多个数据提供方各自对应的待比对数据;determining multiple data providers to be compared with each other, and acquiring and storing the respective data to be compared corresponding to the multiple data providers;响应于数据比对指示,生成与预先获取的配置文件对应的比对规则;In response to the data comparison instruction, generating a comparison rule corresponding to the pre-acquired configuration file;若所述待比对数据中的目标待比对数据所对应的等待时间达到预设时长,则基于所述比对规则,对所述多个数据提供方各自对应的所述目标待比对数据进行数据比对;所述目标待比对数据为已存储的所述待比对数据中的至少部分待比对数据。If the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset time length, based on the comparison rule, the target data to be compared corresponding to each of the multiple data providers is compared. Perform data comparison; the target data to be compared is at least part of the stored data to be compared.2.根据权利要求1所述的方法,其特征在于,在所述确定待进行数据比对的多个数据提供方,获取并存储所述多个数据提供方各自对应的待比对数据之前,还包括:2. The method according to claim 1, characterized in that, before said determining a plurality of data providers to be compared with data, before acquiring and storing the data to be compared corresponding to the plurality of data providers, Also includes:获取针对所述多个数据提供方的比对配置信息,所述比对配置信息包括比对触发条件和数据内容核对规则,所述比对触发条件用于指示在所述待比对数据包含设定数据项时进行数据比对;Obtain comparison configuration information for the multiple data providers, where the comparison configuration information includes a comparison trigger condition and a data content check rule, and the comparison trigger condition is used to indicate that the data to be compared contains settings. Data comparison is performed when data items are determined;基于所述比对配置信息生成对应的脚本文件,作为所述多个数据提供方对应的配置文件。A corresponding script file is generated based on the comparison configuration information as the configuration file corresponding to the multiple data providers.3.根据权利要求2所述的方法,其特征在于,所述目标待比对数据包括第一数据提供方提供的第一待比对数据和第二数据提供方提供的第二待比对数据,3. The method according to claim 2, wherein the target data to be compared comprises first data to be compared provided by a first data provider and second data to be compared provided by a second data provider ,所述基于所述比对规则,对所述多个数据提供方各自对应的所述目标待比对数据进行数据比对,包括:The performing data comparison on the target data to be compared corresponding to each of the multiple data providers based on the comparison rules, including:当所述第一数据提供方提供的第一待比对数据中包含对应的第一设定数据项,并且所述第二数据提供方提供的第二待比对数据中包含对应的第二设定数据项时,获取所述第一待比对数据中与所述数据内容核对规则关联的第一数据内容,以及,获取所述第二待比对数据中与所述数据内容核对规则关联的第二数据内容;When the first data to be compared provided by the first data provider includes the corresponding first setting data item, and the second data to be compared provided by the second data provider includes the corresponding second setting When determining a data item, obtain the first data content associated with the data content check rule in the first data to be compared, and obtain the data content associated with the data content check rule in the second data to be compared second data content;基于所述数据内容核对规则,对所述第一数据内容和所述第二数据内容进行比较,以确定所述第一数据内容与所述第二数据内容是否一致。Based on the data content checking rule, the first data content and the second data content are compared to determine whether the first data content is consistent with the second data content.4.根据权利要求1所述的方法,其特征在于,所述获取并存储所述多个数据提供方各自对应的待比对数据,包括:4. The method according to claim 1, wherein the acquiring and storing the respective data to be compared corresponding to the multiple data providers comprises:获取所述多个数据提供方各自对应的数据源中的原始数据;obtaining raw data from the respective data sources corresponding to the multiple data providers;对所述原始数据进行过滤,基于过滤后的原始数据,获取所述多个数据提供方各自对应的待比对数据并进行存储。The raw data is filtered, and based on the filtered raw data, data to be compared corresponding to each of the multiple data providers is acquired and stored.5.根据权利要求4所述的方法,其特征在于,所述获取所述多个数据提供方各自对应的数据源中的原始数据,包括:5. The method according to claim 4, wherein the acquiring the raw data in the respective data sources corresponding to the multiple data providers comprises:获取预先配置的所述多个数据提供方各自对应的存储路径,并确定所述存储路径对应的数据源;Acquire the pre-configured storage paths corresponding to the multiple data providers, and determine the data sources corresponding to the storage paths;通过预设的公共消息队列,获取各个所述数据源中的原始数据。Obtain the original data in each of the data sources through a preset public message queue.6.根据权利要求1所述的方法,其特征在于,在所述若所述待比对数据中的目标待比对数据所对应的等待时间达到预设时长,则基于所述比对规则,对所述多个数据提供方各自对应的所述目标待比对数据进行数据比对之前,还包括:6. The method according to claim 1, characterized in that, if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset duration, then based on the comparison rule, Before performing data comparison on the target data to be compared corresponding to each of the multiple data providers, the method further includes:从预设的标识队列中获取等待时间达到预设时长的目标数据标识;所述标识队列中存储有当前已获取的各待比对数据对应的数据标识;Obtain the target data identifier whose waiting time reaches the preset duration from the preset identifier queue; the identifier queue stores the data identifier corresponding to each currently obtained data to be compared;在已存储的所述待比对数据中,获取与所述目标数据标识对应的待比对数据,作为等待时间达到预设时长的目标待比对数据。In the stored data to be compared, the data to be compared corresponding to the target data identifier is acquired as the target data to be compared with the waiting time reaching a preset duration.7.一种信息处理装置,其特征在于,包括:7. An information processing device, comprising:数据获取单元,被配置为执行确定待进行数据比对的多个数据提供方,获取并存储所述多个数据提供方各自对应的待比对数据;a data acquisition unit, configured to execute and determine a plurality of data providers to be compared with each other, and acquire and store the data to be compared corresponding to the plurality of data providers;比对规则生成单元,被配置为执行响应于数据比对指示,生成与预先获取的配置文件对应的比对规则;A comparison rule generation unit, configured to execute a comparison rule corresponding to a pre-acquired configuration file in response to the data comparison instruction;数据比对单元,被配置为执行若所述待比对数据中的目标待比对数据所对应的等待时间达到预设时长,则基于所述比对规则,对所述多个数据提供方各自对应的所述目标待比对数据进行数据比对;所述目标待比对数据为已存储的所述待比对数据中的至少部分待比对数据。The data comparison unit is configured to perform, if the waiting time corresponding to the target data to be compared in the data to be compared reaches a preset time length, based on the comparison rule, perform a comparison of each of the plurality of data providers The corresponding target data to be compared is compared; the target data to be compared is at least part of the stored data to be compared.8.一种电子设备,其特征在于,包括:8. An electronic device, characterized in that, comprising:处理器;processor;用于存储所述处理器可执行指令的存储器;a memory for storing the processor-executable instructions;其中,所述处理器被配置为执行所述指令,以实现如权利要求1至6中任一项所述的信息处理方法。Wherein, the processor is configured to execute the instructions to implement the information processing method according to any one of claims 1 to 6.9.一种计算机可读存储介质,其特征在于,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得所述电子设备能够执行如权利要求1至6中任一项所述的信息处理方法。9. A computer-readable storage medium, characterized in that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any one of claims 1 to 6 The information processing method described in item.10.一种计算机程序产品,所述计算机程序产品中包括指令,其特征在于,所述指令被电子设备的处理器执行时,使得所述电子设备能够执行如权利要求1至8中任一项所述的信息处理方法。10. A computer program product comprising instructions, characterized in that, when the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute any one of claims 1 to 8 The described information processing method.
CN202111544978.0A2021-12-162021-12-16 Information processing method, device, electronic device and storage mediumPendingCN114201484A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111544978.0ACN114201484A (en)2021-12-162021-12-16 Information processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111544978.0ACN114201484A (en)2021-12-162021-12-16 Information processing method, device, electronic device and storage medium

Publications (1)

Publication NumberPublication Date
CN114201484Atrue CN114201484A (en)2022-03-18

Family

ID=80654738

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111544978.0APendingCN114201484A (en)2021-12-162021-12-16 Information processing method, device, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN114201484A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116628107A (en)*2023-05-302023-08-22曙光云计算集团有限公司Data comparison method, device, equipment and medium
CN118689912A (en)*2024-08-272024-09-24杭州乒乓智能技术有限公司 Data comparison method, device, business data comparison system and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103136276A (en)*2011-12-022013-06-05阿里巴巴集团控股有限公司System, method and device of verification of data
CN110209512A (en)*2019-05-302019-09-06口碑(上海)信息技术有限公司Verification of data method and device based on multi-data source
CN111708767A (en)*2020-05-122020-09-25苏宁云计算有限公司 Data verification method, device, storage medium and computer equipment
CN113608845A (en)*2021-07-122021-11-05阿里巴巴新加坡控股有限公司Data processing method and device
CN113641498A (en)*2021-08-162021-11-12腾讯科技(深圳)有限公司Data checking method, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103136276A (en)*2011-12-022013-06-05阿里巴巴集团控股有限公司System, method and device of verification of data
CN110209512A (en)*2019-05-302019-09-06口碑(上海)信息技术有限公司Verification of data method and device based on multi-data source
CN111708767A (en)*2020-05-122020-09-25苏宁云计算有限公司 Data verification method, device, storage medium and computer equipment
CN113608845A (en)*2021-07-122021-11-05阿里巴巴新加坡控股有限公司Data processing method and device
CN113641498A (en)*2021-08-162021-11-12腾讯科技(深圳)有限公司Data checking method, system, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
退役的BUG程序员: "Java 6种延时队列的实现方法,方法没有好坏,适合自己的才是最好的", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/banzhuanhu/article/details/106445598>*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116628107A (en)*2023-05-302023-08-22曙光云计算集团有限公司Data comparison method, device, equipment and medium
CN118689912A (en)*2024-08-272024-09-24杭州乒乓智能技术有限公司 Data comparison method, device, business data comparison system and electronic device

Similar Documents

PublicationPublication DateTitle
CN108255653A (en)The test method and its terminal of a kind of product
CN111274131A (en)Interface testing method and device, electronic equipment and storage medium
CN112187862B (en)Task processing method and device for task processing
CN112416751B (en) Processing method, device and storage medium for interface automation testing
CN115185717B (en)Interface calling method and device, electronic equipment and storage medium
CN114201484A (en) Information processing method, device, electronic device and storage medium
CN112783779A (en)Test case generation method and device, electronic equipment and storage medium
CN115408277A (en)Interface testing method and device
CN116069612A (en)Abnormality positioning method and device and electronic equipment
CN114003558A (en) Data archiving method, device, equipment and storage medium
WO2024159967A1 (en)Government affair data resource directory updating method and apparatus, electronic device, and medium
CN114417133B (en)Service data processing method and device, electronic equipment and computer storage medium
CN113590605B (en)Data processing method, device, electronic equipment and storage medium
CN116541591A (en)Information processing method, device, electronic equipment and storage medium
CN116187736A (en)Data production method, device, medium and electronic equipment
CN116009946A (en)Git-based code statistics method and device
CN115390911A (en)Node information determination method, device and equipment
CN110059304B (en)Data processing method, device, electronic equipment and storage medium
CN115065677B (en)Media resource acquisition method, device, electronic equipment, storage medium and product
CN113378022A (en)In-station search platform, search method and related device
CN113986577B (en)Data processing method, device and equipment based on timer
CN117714088B (en)Data reporting method and electronic equipment
CN113206772B (en)Method, device, equipment, medium and product for judging correctness of response message
CN116185477A (en)Data processing method, device, electronic equipment and storage medium
CN117075986A (en)Configuration verification method, device, electronic equipment and computer readable storage medium

Legal Events

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

Application publication date:20220318


[8]ページ先頭

©2009-2025 Movatter.jp