CN109299222A - Verification of data method and device - Google Patents

Verification of data method and device Download PDF

Info

Publication number
CN109299222A
CN109299222A CN201811144899.9A CN201811144899A CN109299222A CN 109299222 A CN109299222 A CN 109299222A CN 201811144899 A CN201811144899 A CN 201811144899A CN 109299222 A CN109299222 A CN 109299222A
Authority
CN
China
Prior art keywords
data
checked
verification
asynchronous
business scenario
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
CN201811144899.9A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811144899.9A priority Critical patent/CN109299222A/en
Publication of CN109299222A publication Critical patent/CN109299222A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

This specification one or more embodiment discloses a kind of verification of data method and device, to improve the accuracy of verification of data, optimizes the verification effect of data in business scenario.The described method includes: generating the verification instruction checked at least two data to be checked in same business scenario;Wherein, different for recording the data source of described at least two data to be checked in the business scenario;It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, the asynchronous data refers to that landing time of the different data in corresponding data source is different;If so, the verification to described at least two data to be checked carries out delay disposal.

Description

Verification of data method and device
Technical field
This specification is related to technical field of data processing more particularly to a kind of verification of data method and device.
Background technique
In all kinds of business scenarios, it usually needs check data, recorded in especially same business scenario identical The different data sources of data, since the factors such as recording mode, record time are easy to cause different data sources to record identical data Result it is different, this just needs to check different data sources recorded data, thus discovery by data record mistake Potential risk caused by accidentally.
In the prior art, operation system sends service message in the key node of business processing, is sent out according to operation system The service message sent carries out the real-time core pair of data.But it since different data sources are to factors such as the record time differences of data, leads Correct checked result can not be provided when causing real-time core to data, to can not effectively evade potential caused by data recording error Risk.
Summary of the invention
The purpose of this specification one or more embodiment is to provide a kind of verification of data method and device, to improve number According to the accuracy of verification, optimize the verification effect of data in business scenario.
In order to solve the above technical problems, this specification one or more embodiment is achieved in that
On the one hand, this specification one or more embodiment provides a kind of verification of data method, comprising:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, institute It states different for recording the data source of described at least two data to be checked in business scenario;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described Asynchronous data refers to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
It is in one embodiment, described to judge whether described at least two data to be checked belong to asynchronous data, comprising:
The corresponding default verification rule of the business scenario is obtained, the default verification rule includes for identifying the industry Data in business scene belong to the first identifier information of asynchronous data or synchrodata;
According to the first identifier information, judge whether described at least two data to be checked belong to asynchronous data.
In one embodiment, when the default verification rule further includes the first verification delay for the asynchronous data It is long;
Correspondingly, the verification to described at least two data to be checked carries out delay disposal, comprising:
Cache the verification instruction;
When reaching the first verification delay duration, at least two data to be checked are obtained;And to it is described at least Two data to be checked are checked, and checked result is obtained.
In one embodiment, the checked result includes checking successfully or checking failure;
Correspondingly, the method also includes:
If the checked result is verification failure, when the first verification delay duration is updated to the second verification delay Long, the second verification delay duration is greater than the first verification delay duration;
When reaching the second verification delay duration, described at least two data to be checked are obtained again;And to described At least two data to be checked are checked.
In one embodiment, described generate is checked at least two data to be checked in same business scenario Verification instruction, comprising:
Receive the service message that end has been executed for identifying the business in the business scenario;
It generates the verification for checking described at least two data to be checked according to the service message to instruct, the core The corresponding second identifier information of described at least two data to be checked is carried to instruction;
Correspondingly, described obtain at least two data to be checked, comprising:
At least two data to be checked according to the second identifier acquisition of information.
In one embodiment, the above method further include:
If at least two data to be checked are not belonging to the asynchronous data, described at least two are directly acquired to core To data;And described at least two data to be checked are checked.
In one embodiment, the business scenario is trading scene;The data to be checked include executing the amount of money The account information of transaction, amount information, in stateful transaction at least one of data.
On the other hand, this specification one or more embodiment provides a kind of verification of data device, comprising:
Generation module, the verification checked for generating at least two data to be checked being directed in same business scenario Instruction;Wherein, different for recording the data source of described at least two data to be checked in the business scenario;
It is asynchronous to judge whether described at least two data to be checked belong to for instructing based on the verification for judgment module Data;Wherein, the asynchronous data refers to that landing time of the different data in corresponding data source is different;
Processing module, if belonging to asynchronous data for described at least two data to be checked, to described at least two to The verification for checking data carries out delay disposal.
In one embodiment, the judgment module includes:
First acquisition unit, for obtaining the corresponding default verification rule of the business scenario, the default verification rule First identifier information including belonging to asynchronous data or synchrodata for identifying the data in the business scenario;
Judging unit, for judging whether described at least two data to be checked belong to according to the first identifier information Asynchronous data.
In one embodiment, when the default verification rule further includes the first verification delay for the asynchronous data It is long;
Correspondingly, the processing module includes:
Cache unit, for caching the verification instruction;
Unit is checked, for obtaining at least two data to be checked when reaching the first verification delay duration; And described at least two data to be checked are checked, obtain checked result.
In one embodiment, the checked result includes checking successfully or checking failure;
Correspondingly, described device further include:
The first verification delay duration is updated to by update module if being verification failure for the checked result Second verification delay duration, the second verification delay duration are greater than the first verification delay duration;
First verification module, for when reach it is described second verification delay duration when, obtain again described at least two to Check data;And described at least two data to be checked are checked.
In one embodiment, the generation module includes:
Receiving unit, for receiving the service message for having executed end for identifying the business in the business scenario;
Generation unit, for generating the core checked described at least two data to be checked according to the service message To instruction, verification instruction carries the corresponding second identifier information of described at least two data to be checked;
Correspondingly, the verification unit is also used to:
At least two data to be checked according to the second identifier acquisition of information.
In one embodiment, above-mentioned apparatus further include:
Second verification module directly obtains if being not belonging to the asynchronous data for described at least two data to be checked Take described at least two data to be checked;And described at least two data to be checked are checked.
In one embodiment, the business scenario is trading scene;The data to be checked include executing the amount of money The account information of transaction, amount information, in stateful transaction at least one of data.
In another aspect, this specification one or more embodiment provides a kind of verification of data equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, institute It states different for recording the data source of described at least two data to be checked in business scenario;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described Asynchronous data refers to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
In another aspect, the embodiment of the present application provides a kind of storage medium, for storing computer executable instructions, it is described can It executes instruction and realizes following below scheme when executed:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, institute It states different for recording the data source of described at least two data to be checked in business scenario;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described Asynchronous data refers to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
Using the technical solution of this specification one or more embodiment, it is directed in same business scenario extremely by generating The verification that few two data to be checked are checked instructs, for recording the data of at least two data to be checked in business scenario Source is different, and judges whether at least two data to be checked belong to asynchronous data, if belonging to asynchronous data, at least two to The verification for checking data carries out delay disposal.As it can be seen that the technical solution is wait check data when checking at least two, energy It is enough to distinguish processing according to whether data to be checked belong to asynchronous data, and delay disposal is carried out to the verification of asynchronous data, In compared to the prior art for asynchronous data or synchrodata be all made of real-time core to mode for, which can Avoid asynchronous data because the landing time it is different caused by checked result inaccuracy problem, thus make in business scenario to core The verification effect of data is optimized.
Detailed description of the invention
In order to illustrate more clearly of this specification one or more embodiment or technical solution in the prior art, below will A brief introduction will be made to the drawings that need to be used in the embodiment or the description of the prior art, it should be apparent that, it is described below Attached drawing is only some embodiments recorded in this specification one or more embodiment, and those of ordinary skill in the art are come It says, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart according to a kind of verification of data method of one embodiment of this specification;
Fig. 2 is the schematic flow chart according to a kind of verification of data method of one specific embodiment of this specification;
Fig. 3 is the schematic flow chart according to a kind of verification of data method of this specification another specific embodiment;
Fig. 4 is the schematic block diagram according to a kind of verification of data device of one embodiment of this specification;
Fig. 5 is the schematic block diagram according to a kind of verification of data equipment of one embodiment of this specification.
Specific embodiment
This specification one or more embodiment provides a kind of verification of data method and device, to improve verification of data Accuracy optimizes the verification effect of data in business scenario.
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment, Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment Scheme is clearly and completely described, it is clear that and described embodiment is only this specification a part of the embodiment, rather than Whole embodiments.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creativeness The model of this specification one or more embodiment protection all should belong in every other embodiment obtained under the premise of labour It encloses.
Fig. 1 be according to a kind of schematic flow chart of verification of data method of one embodiment of this specification, as shown in Figure 1, This method comprises:
S102 generates the verification instruction checked at least two data to be checked in same business scenario;Its In, it is different for recording the data source of at least two data to be checked in business scenario.
Business scenario can be trading scene, resource interaction scenarios etc. it is any need to record data and need pair The scene that data are checked.When business scenario is trading scene, data to be checked may include executing the account of trading One or more data such as family information, amount information, stateful transaction.
Data source can be in business scenario for recording each operation system of data.In trading scene, need Record every pipelined data during trading, such as payment amount, amount received.For example, " the payment of trading scene It is precious " in, use the red packet payment function of " Alipay " to carry out red packet payment, then the data source of record data includes payment system And red packet core system.
S104 judges whether at least two data to be checked belong to asynchronous data based on verification instruction;Wherein, asynchronous number It is different according to landing time of the finger different data in corresponding data source.
If landing time of at least two data to be checked in corresponding data source is different, illustrate this at least two A data to be checked belong to asynchronous data;If landing time phase of at least two data to be checked in corresponding data source Together, then illustrate that at least two data to be checked belong to synchrodata.Wherein, landing time of the data in data source is namely The time of data source record data.
For example, using the red packet payment function of " Alipay " to carry out red packet payment in trading scene " Alipay " When, landing time of the data such as payment amount, payment accounts, pay status in payment system and red packet core system is different, I.e., it is understood that there may be wherein one or more data sources postpone the record time of data.For example, user carries out red packet payment Afterwards, red packet core system has recorded payment amount in real time, and payment system then just has recorded payment amount after 1 minute, red The payment amount data that the payment amount data and payment system that packet core system is recorded are recorded belong to two asynchronous numbers According to.
S106, if so, the verification at least two data to be checked carries out delay disposal.
In addition, at least two data to be checked are directly acquired if at least two data to be checked belong to synchrodata, and At least two data to be checked are checked.
Using the technical solution of this specification one or more embodiment, it is directed in same business scenario extremely by generating The verification that few two data to be checked are checked instructs, for recording the data of at least two data to be checked in business scenario Source is different, and judges whether at least two data to be checked belong to asynchronous data, if belonging to asynchronous data, at least two to The verification for checking data carries out delay disposal.As it can be seen that the technical solution is wait check data when checking at least two, energy It is enough to distinguish processing according to whether data to be checked belong to asynchronous data, and delay disposal is carried out to the verification of asynchronous data, In compared to the prior art for asynchronous data or synchrodata be all made of real-time core to mode for, which can Avoid asynchronous data because the landing time it is different caused by checked result inaccuracy problem, thus make in business scenario to core The verification effect of data is optimized.
In one embodiment, at least two are judged when whether belonging to asynchronous data wait check data, can first obtain business The corresponding default verification rule of scene, which includes belonging to asynchronous data for the data in identification service scene Or the first identifier information of synchrodata;It is different to judge whether at least two data to be checked belong to according to first identifier information in turn Step data.
In the present embodiment, the corresponding default verification rule of each business scenario can be preset, preset in verification rule Including at least the identification information for belonging to asynchronous data or synchrodata for the data in identification service scene, thus being counted Whether can belong to asynchronous data according to the data in the identification information judgment corresponding service scene when according to verification, and then according to sentencing Disconnected result treats verification data and distinguishes collation process.
In one embodiment, presetting verification rule further includes the first verification delay duration for asynchronous data.It is based on This, when carrying out delay disposal at least two verifications wait check data, when can first cache verification instruction, and monitor caching in real time It is long;When caching duration reaches the first verification delay duration, at least two data to be checked are obtained, and to acquired at least two A data to be checked are checked, and checked result is obtained.
Wherein, the first verification delay duration can be the default duration in default verification rule, can also be previously according to right The landing lead time between the asynchronous data in business scenario is answered to carry out customized setting, the first verification delay duration should be greater than Landing lead time between asynchronous data.For example, to two data A, B to be checked in Mr. Yu's business scenario, number to be checked According to landing time landing time delay 1 compared with to be checked data B in its corresponding data source of the A in its corresponding data source Minute, illustrate that the landing lead time between data A to be checked and data B to be checked is 1 minute, then the first verification can be set A length of duration for being greater than 1 minute when delay.
In the present embodiment, by carrying out customized setting to the first verification delay duration in default verification rule, and set It is set to the duration value bigger than the landing lead time between asynchronous data, so that checking at least two data to be checked When, can effectively avoid asynchronous data because land the time it is different (such as one of data be completed landing, due to another data still Do not land) caused by checked result inaccuracy problem, so that the verification effect of the data to be checked in business scenario be made to obtain To optimization.
In one embodiment, if the first verification delay duration presets the default duration in verification rule, and when the default Landing lead time between the long asynchronous data being less than in corresponding business scenario, in this case, at least two wait check There is error situation in the checked result of data.For example, when the caching duration of at least two data to be checked has reached the of default When one verification delay duration, collation process, but at least two number to be checked at this time will be carried out at least two data to be checked Partial data in not yet lands completion, then will lead to checked result there is mistake, i.e. verification failure.
Such case based on the above embodiment can be modified by way of updating and checking delay duration.
In one embodiment, checked result includes checking successfully or checking failure.If checked result is verification failure, First verification delay duration is updated to the second verification delay duration, when the second verification delay duration is greater than the first verification delay It is long;When reach the second verification delay duration when, again obtain at least two data to be checked, and to acquired at least two to Verification data are checked.
In the present embodiment, when reaching the second verification delay duration, at least two data to be checked are checked again, Checked result includes checking successfully or checking failure.If checked result is to check successfully, illustrate that the first verification delay duration is less than Or equal to the landing lead time between the asynchronous data in corresponding business scenario, and updated second verification delay duration is then Greater than the landing lead time between the asynchronous data in corresponding business scenario;If checked result is verification failure, illustrate more The second verification delay duration after new is then it is possible to be less than or greater than the landing corresponded between the asynchronous data in business scenario Lead time, can continue at this time by second verification delay duration be updated to bigger duration value, and again obtain at least two to Data are checked, and at least two data to be checked are checked.The present embodiment is by prolonging the verification in default verification rule Slow duration is updated, so that the checked result to asynchronous data is more accurate.
In one embodiment, the core checked at least two data to be checked in same business scenario is generated Before instruction, the service message that end has been executed for the business in identification service scene is received.That is, raw according to service message The verification instruction that pairs of at least two data to be checked are checked, verification instruction carry at least two data to be checked point Not corresponding second identifier information;It in turn, can be according to the second identifier acquisition of information at least two carried in verification instruction to core To data.Wherein, second identifier information can be one or more key messages such as critical field, serial number, account information.Example Such as critical field " transaction amount ", " transaction stroke count ";Serial number " 100XXXXXXX " etc., according to critical field, serial number or account One or more information in number information are you can learn that the data for needing to check.
Fig. 2 is according to a kind of schematic flow chart of verification of data method of one specific embodiment of this specification, in the tool In body embodiment, business scenario is trading scene, and data to be checked are to execute the amount information of trading, such as trade gold Volume, transaction stroke count etc..As shown in Fig. 2, this method comprises:
S201 is received when having executed the service message of end for identifying the trading in trading scene, root The verification for checking the data to be checked in trading scene is generated according to service message to instruct.
Wherein, there are two the corresponding identification information of data to be checked --- critical fielies, flowing water for verification instruction carrying Number, one or more key messages such as account information.Such as critical field " transaction amount ", " transaction stroke count ";Serial number " 100XXXXXXX " etc..
S202 obtains default verification rule corresponding to trading scene.
Wherein, presetting in verification rule includes belonging to asynchronous data or synchronization for identifying the data in trading scene The identification information of data, and if belonging to corresponding verification delay duration when asynchronous data.
S203 judges whether the data to be checked in trading scene belong to asynchronous data according to default verification rule. If so, executing S204;If it is not, then executing S207.
S204, caching verification instruction, and monitor caching duration.
S205 is carried when caching duration, which reaches the verification in default verification rule, postpones duration according in business information Identification information obtain data to be checked.
S206 checks the data to be checked of acquisition, obtains checked result.
For example, whether the transaction amount, transaction stroke count in two different data sources of verification are identical, if they are the same, then illustrate It checks successfully;If it is different, then illustrating verification failure.
S207 directly acquires data to be checked, and checks the data to be checked of acquisition.
The present embodiment is sentenced by generating the verification instruction checked for the data to be checked in trading scene Whether the data to be checked in the trading scene of breaking belong to asynchronous data, if belonging to asynchronous data, treat verification data Verification carry out delay disposal.As it can be seen that the technical solution treat verification data checked when, can be according to data to be checked Whether belong to asynchronous data and distinguish processing, and delay disposal is carried out to the verification of asynchronous data, compared to the prior art in For asynchronous data or synchrodata be all made of real-time core to mode for, which can be avoided asynchronous data because falling The problem of checked result inaccuracy caused by ground time difference, to make the verification of the data to be checked in trading scene Effect is optimized.
Fig. 3 is the schematic flow chart according to a kind of verification of data method of this specification another specific embodiment.At this In specific embodiment, the system for executing verification of data method is related to operation system, real-time check system, DB (Database, data Library) query routing middleware and operation system DB.Steps are as follows for specific execution:
A1, operation system issue the service message that the business in business scenario has executed end to real-time check system.
After A2, real-time check system receive service message, the core checked at least two data to be checked is generated The corresponding default verification rule of business scenario is obtained to instruction, and based on verification instruction.Wherein, it presets verification rule and is pre-stored in reality When check system in.
In the present embodiment, presetting in verification rule includes the mark for belonging to asynchronous data for the data in identification service scene Know information and corresponding verification postpones duration.That is, the data in the business scenario of the present embodiment belong to asynchronous data.
A3, real-time check system determine that data to be checked are asynchronous data, and caching verification instructs, and monitors caching duration.
A4, when caching duration and reaching verification delay duration, real-time check system is according to the data that carry in verification instruction Identification information issues the inquiry request for inquiring data to be checked to DB query routing middleware.
After A5, DB query routing middleware receive inquiry request, is inquired from operation system DB and obtain number to be checked According to.
Data to be checked are returned to DB query routing middleware by A6, operation system DB.
Data to be checked are returned to real-time check system by A7, DB query routing middleware.
A8, real-time check system are treated verification data and are checked.
A9, real-time check system generate checked result, and carry out respective handling to related data when checking failure, such as delete Except data, modification data etc..
To sum up, the specific embodiment of this theme is described.Other embodiments are in the appended claims In range.In some cases, the movement recorded in detail in the claims can execute and still in a different order Desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or continuous suitable Sequence, to realize desired result.In some embodiments, multitasking and parallel processing can be advantageous.
The above are the verification of data methods that this specification one or more embodiment provides, and are based on same thinking, this theory Bright book one or more embodiment also provides a kind of verification of data device.
Fig. 4 is according to a kind of schematic block diagram of verification of data device of one embodiment of this specification, as shown in figure 4, number Include: according to checking device 400
Generation module 410 is checked for generating at least two data to be checked being directed in same business scenario Verification instruction;Wherein, different for recording the data source of at least two data to be checked in business scenario;
Judgment module 420, for judging whether at least two data to be checked belong to asynchronous data based on verification instruction; Wherein, asynchronous data refers to that landing time of the different data in corresponding data source is different;
Processing module 430, if belonging to asynchronous data at least two data to be checked, at least two numbers to be checked According to verification carry out delay disposal.
In one embodiment, judgment module 420 includes:
First acquisition unit, for obtaining the corresponding default verification rule of business scenario, default verification rule includes being used for Data in identification service scene belong to the first identifier information of asynchronous data or synchrodata;
Judging unit, for judging whether at least two data to be checked belong to asynchronous data according to first identifier information.
In one embodiment, presetting verification rule further includes the first verification delay duration for asynchronous data;
Correspondingly, processing module 430 includes:
Cache unit, for caching verification instruction;
Unit is checked, for obtaining at least two data to be checked when reaching the first verification delay duration;And to extremely Few two data to be checked are checked, and checked result is obtained.
In one embodiment, checked result includes checking successfully or checking failure;
Correspondingly, device 400 further include:
First verification delay duration is updated to the second verification if being verification failure for checked result by update module Postpone duration, the second verification delay duration is greater than the first verification and postpones duration;
First verification module, for obtaining at least two data to be checked again when reaching the second verification delay duration; And at least two data to be checked are checked.
In one embodiment, generation module 410 includes:
Receiving unit has executed the service message of end for receiving the business being used in identification service scene;
Generation unit is instructed for generating the verification checked at least two data to be checked according to service message, Verification instruction carries the corresponding second identifier information of at least two data to be checked;
Correspondingly, verification unit is also used to:
According to the data to be checked of second identifier acquisition of information at least two.
In one embodiment, device 400 further include:
Second verification module directly acquires at least two if being not belonging to asynchronous data at least two data to be checked A data to be checked;And at least two data to be checked are checked.
In one embodiment, business scenario is trading scene;Data to be checked include executing the account of trading Family information, amount information, in stateful transaction at least one of data.
Using the device of this specification one or more embodiment, by generating at least two in same business scenario The verification that a data to be checked are checked instructs, for recording the data source of at least two data to be checked not in business scenario Together, and judge whether at least two data to be checked belong to asynchronous data, if belonging to asynchronous data, at least two wait check The verification of data carries out delay disposal.As it can be seen that the technical solution is wait check data when checking at least two, Neng Gougen Processing is distinguished according to whether data to be checked belong to asynchronous data, and delay disposal is carried out to the verification of asynchronous data, is compared In asynchronous data or synchrodata are all made of in the prior art real-time core to mode for, which can be avoided Asynchronous data because the landing time it is different caused by checked result inaccuracy problem, to make the number to be checked in business scenario According to verification effect optimized.
It should be understood that above-mentioned verification of data device can be used to realize previously described data core To method, datail description therein should be described with method part above it is similar, it is cumbersome to avoid, do not repeat separately herein.
Based on same thinking, this specification one or more embodiment also provides a kind of verification of data equipment, such as Fig. 5 institute Show.Verification of data equipment can generate bigger difference because configuration or performance are different, may include one or more Processor 501 and memory 502 can store one or more storage application programs or data in memory 502.Its In, memory 502 can be of short duration storage or persistent storage.Be stored in memory 502 application program may include one or More than one module (diagram is not shown), each module may include executable to the series of computation machine in data checking apparatus Instruction.Further, processor 501 can be set to communicate with memory 502, execute memory in verification of data equipment Series of computation machine executable instruction in 502.Verification of data equipment can also include one or more power supplys 503, one A or more than one wired or wireless network interface 504, one or more input/output interfaces 505, one or one with Upper keyboard 506.
Specifically in the present embodiment, verification of data equipment includes memory and one or more program, In one perhaps more than one program is stored in memory and one or more than one program may include one or one With upper module, and each module may include and being configured to the series of computation machine executable instruction in data checking apparatus With by one or more than one processor execute this or more than one program include can for carrying out following computer It executes instruction:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, institute It states different for recording the data source of described at least two data to be checked in business scenario;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described Asynchronous data refers to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
Optionally, computer executable instructions when executed, can also make the processor:
The corresponding default verification rule of the business scenario is obtained, the default verification rule includes for identifying the industry Data in business scene belong to the first identifier information of asynchronous data or synchrodata;
According to the first identifier information, judge whether described at least two data to be checked belong to asynchronous data.
Optionally, the default verification rule further includes the first verification delay duration for the asynchronous data;
Correspondingly, computer executable instructions are when executed, the processor can also be made:
Cache the verification instruction;
When reaching the first verification delay duration, at least two data to be checked are obtained;And to it is described at least Two data to be checked are checked, and checked result is obtained.
Optionally, the checked result includes checking successfully or checking failure;
Correspondingly, computer executable instructions are when executed, the processor can also be made:
If the checked result is verification failure, when the first verification delay duration is updated to the second verification delay Long, the second verification delay duration is greater than the first verification delay duration;
When reaching the second verification delay duration, described at least two data to be checked are obtained again;And to described At least two data to be checked are checked.
Optionally, computer executable instructions when executed, can also make the processor:
Receive the service message that end has been executed for identifying the business in the business scenario;
It generates the verification for checking described at least two data to be checked according to the service message to instruct, the core The corresponding second identifier information of described at least two data to be checked is carried to instruction;
At least two data to be checked according to the second identifier acquisition of information.
Optionally, computer executable instructions when executed, can also make the processor:
If at least two data to be checked are not belonging to the asynchronous data, described at least two are directly acquired to core To data;And described at least two data to be checked are checked.
Optionally, the business scenario is trading scene;The data to be checked include executing the account of trading Family information, amount information, in stateful transaction at least one of data.
This specification one or more embodiment also proposed a kind of computer readable storage medium, this is computer-readable to deposit Storage media stores one or more programs, which includes instruction, and it is included multiple application programs which, which works as, Electronic equipment when executing, the electronic equipment can be made to execute above-mentioned verification of data method, and be specifically used for executing:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, institute It states different for recording the data source of described at least two data to be checked in business scenario;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described Asynchronous data refers to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, this specification one or more embodiment can provide for method, system or Computer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implemented The form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used one It is a or it is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to disk storage Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment is referring to according to the method for the embodiment of the present application, equipment (system) and meter The flowchart and/or the block diagram of calculation machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/ Or the combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can These computer program instructions are provided at general purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is managed to generate a machine, so that holding by the processor of computer or other programmable data processing devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general on It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type Routine, programs, objects, component, data structure etc..The application can also be practiced in a distributed computing environment, at these In distributed computing environment, by executing task by the connected remote processing devices of communication network.In distributed computing In environment, program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely this specification one or more embodiments, are not limited to this specification.For this For the technical staff of field, this specification one or more embodiment can have various modifications and variations.It is all in this specification one Any modification, equivalent replacement, improvement and so within the spirit and principle of a or multiple embodiments, should be included in this explanation Within the scope of the claims of book one or more embodiment.

Claims (16)

1. a kind of verification of data method, comprising:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, the industry It is different for recording the data source of described at least two data to be checked in business scene;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described asynchronous Data refer to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
2. judge whether described at least two data to be checked belong to asynchronous data according to the method described in claim 1, described, Include:
The corresponding default verification rule of the business scenario is obtained, the default verification rule includes for identifying the business field Data in scape belong to the first identifier information of asynchronous data or synchrodata;
According to the first identifier information, judge whether described at least two data to be checked belong to asynchronous data.
3. according to the method described in claim 2, the default verification rule further includes the first core for the asynchronous data To delay duration;
Correspondingly, the verification to described at least two data to be checked carries out delay disposal, comprising:
Cache the verification instruction;
When reaching the first verification delay duration, at least two data to be checked are obtained;And to described at least two Data to be checked are checked, and checked result is obtained.
4. according to the method described in claim 3, the checked result includes checking successfully or checking failure;
Correspondingly, the method also includes:
If the checked result is verification failure, the first verification delay duration is updated to the second verification delay duration, The second verification delay duration is greater than the first verification delay duration;
When reaching the second verification delay duration, described at least two data to be checked are obtained again;And to it is described at least Two data to be checked are checked.
5. the method according to claim 3 or 4, described to generate at least two numbers to be checked in same business scenario According to the verification instruction checked, comprising:
Receive the service message that end has been executed for identifying the business in the business scenario;
It generates the verification for checking described at least two data to be checked according to the service message to instruct, the verification refers to Order carries the corresponding second identifier information of described at least two data to be checked;
Correspondingly, described obtain at least two data to be checked, comprising:
At least two data to be checked according to the second identifier acquisition of information.
6. according to the method described in claim 1, further include:
If at least two data to be checked are not belonging to the asynchronous data, described at least two numbers to be checked are directly acquired According to;And described at least two data to be checked are checked.
7. according to the method described in claim 1, the business scenario is trading scene;The data to be checked include holding The account information of row trading, amount information, in stateful transaction at least one of data.
8. a kind of verification of data device, comprising:
Generation module refers to for generating the verification that at least two data to be checked being directed in same business scenario are checked It enables;Wherein, different for recording the data source of described at least two data to be checked in the business scenario;
Judgment module judges whether described at least two data to be checked belong to asynchronous data for instructing based on the verification; Wherein, the asynchronous data refers to that landing time of the different data in corresponding data source is different;
Processing module, if belonging to asynchronous data for described at least two data to be checked, to described at least two wait check The verification of data carries out delay disposal.
9. device according to claim 8, the judgment module include:
First acquisition unit, for obtaining the corresponding default verification rule of the business scenario, the default verification rule includes Belong to the first identifier information of asynchronous data or synchrodata for identifying the data in the business scenario;
Judging unit, for it is asynchronous to judge whether described at least two data to be checked belong to according to the first identifier information Data.
10. device according to claim 9, the default verification rule further includes the first core for the asynchronous data To delay duration;
Correspondingly, the processing module includes:
Cache unit, for caching the verification instruction;
Unit is checked, for obtaining at least two data to be checked when reaching the first verification delay duration;And Described at least two data to be checked are checked, checked result is obtained.
11. device according to claim 10, the checked result includes checking successfully or checking failure;
Correspondingly, described device further include:
The first verification delay duration is updated to second if being verification failure for the checked result by update module Verification delay duration, the second verification delay duration are greater than the first verification delay duration;
First verification module, for obtaining described at least two again wait check when reaching the second verification delay duration Data;And described at least two data to be checked are checked.
12. device described in 0 or 11 according to claim 1, the generation module include:
Receiving unit, for receiving the service message for having executed end for identifying the business in the business scenario;
Generation unit refers to for generating the verification checked described at least two data to be checked according to the service message It enables, the verification, which instructs, carries the corresponding second identifier information of described at least two data to be checked;
Correspondingly, the verification unit is also used to:
At least two data to be checked according to the second identifier acquisition of information.
13. device according to claim 8, further includes:
Second verification module directly acquires institute if being not belonging to the asynchronous data for described at least two data to be checked State at least two data to be checked;And described at least two data to be checked are checked.
14. device according to claim 8, the business scenario is trading scene;The data to be checked include Execute the account information of trading, amount information, in stateful transaction at least one of data.
15. a kind of verification of data equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, the industry It is different for recording the data source of described at least two data to be checked in business scene;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described asynchronous Data refer to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
16. a kind of storage medium, for storing computer executable instructions, the executable instruction is realized following when executed Process:
Generate the verification instruction checked at least two data to be checked in same business scenario;Wherein, the industry It is different for recording the data source of described at least two data to be checked in business scene;
It is instructed based on the verification, judges whether described at least two data to be checked belong to asynchronous data;Wherein, described asynchronous Data refer to that landing time of the different data in corresponding data source is different;
If so, the verification to described at least two data to be checked carries out delay disposal.
CN201811144899.9A 2018-09-29 2018-09-29 Verification of data method and device Pending CN109299222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811144899.9A CN109299222A (en) 2018-09-29 2018-09-29 Verification of data method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811144899.9A CN109299222A (en) 2018-09-29 2018-09-29 Verification of data method and device

Publications (1)

Publication Number Publication Date
CN109299222A true CN109299222A (en) 2019-02-01

Family

ID=65164986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811144899.9A Pending CN109299222A (en) 2018-09-29 2018-09-29 Verification of data method and device

Country Status (1)

Country Link
CN (1) CN109299222A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059077A (en) * 2019-04-19 2019-07-26 深圳乐信软件技术有限公司 A kind of verification of data method, apparatus, equipment and storage medium
CN110175182A (en) * 2019-05-30 2019-08-27 口碑(上海)信息技术有限公司 Verification of data method and device
CN110297842A (en) * 2019-06-25 2019-10-01 武汉联影医疗科技有限公司 A kind of data comparison method, device, terminal and storage medium
CN110766160A (en) * 2019-10-21 2020-02-07 北京明略软件系统有限公司 Data verification method and device, storage medium and electronic equipment
CN110942393A (en) * 2019-11-11 2020-03-31 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main and sub accounts and electronic equipment
CN111539725A (en) * 2020-04-16 2020-08-14 广东岭南通股份有限公司 Error data processing method, device and system
CN112052265A (en) * 2020-09-02 2020-12-08 平安壹钱包电子商务有限公司 Data checking and confirming method and device, computer equipment and readable storage medium
CN112732733A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Data checking processing method and device
CN112860722A (en) * 2021-03-24 2021-05-28 成都新希望金融信息有限公司 Data checking method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075337A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method and system for verifying data
CN106649500A (en) * 2016-10-11 2017-05-10 中国工商银行股份有限公司 Data verification method and system
CN106909598A (en) * 2016-07-01 2017-06-30 阿里巴巴集团控股有限公司 It is a kind of to ensure processing method, the apparatus and system for calculating data consistency
CN107451136A (en) * 2016-05-30 2017-12-08 阿里巴巴集团控股有限公司 Verification of data method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075337A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method and system for verifying data
CN107451136A (en) * 2016-05-30 2017-12-08 阿里巴巴集团控股有限公司 Verification of data method and device
CN106909598A (en) * 2016-07-01 2017-06-30 阿里巴巴集团控股有限公司 It is a kind of to ensure processing method, the apparatus and system for calculating data consistency
CN106649500A (en) * 2016-10-11 2017-05-10 中国工商银行股份有限公司 Data verification method and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059077A (en) * 2019-04-19 2019-07-26 深圳乐信软件技术有限公司 A kind of verification of data method, apparatus, equipment and storage medium
CN110175182A (en) * 2019-05-30 2019-08-27 口碑(上海)信息技术有限公司 Verification of data method and device
CN110297842A (en) * 2019-06-25 2019-10-01 武汉联影医疗科技有限公司 A kind of data comparison method, device, terminal and storage medium
CN110297842B (en) * 2019-06-25 2021-10-15 武汉联影医疗科技有限公司 Data comparison method, device, terminal and storage medium
CN110766160A (en) * 2019-10-21 2020-02-07 北京明略软件系统有限公司 Data verification method and device, storage medium and electronic equipment
CN110942393A (en) * 2019-11-11 2020-03-31 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main and sub accounts and electronic equipment
CN110942393B (en) * 2019-11-11 2023-08-15 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main account and sub account, and electronic equipment
CN111539725A (en) * 2020-04-16 2020-08-14 广东岭南通股份有限公司 Error data processing method, device and system
CN112052265A (en) * 2020-09-02 2020-12-08 平安壹钱包电子商务有限公司 Data checking and confirming method and device, computer equipment and readable storage medium
CN112732733A (en) * 2020-12-31 2021-04-30 中国工商银行股份有限公司 Data checking processing method and device
CN112732733B (en) * 2020-12-31 2024-02-09 中国工商银行股份有限公司 Data checking processing method and device
CN112860722A (en) * 2021-03-24 2021-05-28 成都新希望金融信息有限公司 Data checking method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109299222A (en) Verification of data method and device
CN107424069B (en) Wind control feature generation method, risk monitoring method and equipment
CN110096528A (en) The method, apparatus and system of formation sequence in a kind of distributed system
CN111352935B (en) Index creating method, device and equipment in block chain type account book
CN110275916A (en) Storage method, system, device and the equipment of data operating record
CN106201673B (en) A kind of seismic data processing technique and device
CN110175916A (en) Cash flow checking method and device
CN112559635B (en) Service processing method, device, equipment and medium for Ethernet alliance chain node
CN109325055A (en) The screening of business association tables of data and checking method, device, electronic equipment
CN108334340A (en) A kind of Cross-environment data communications method, device and system
CN110175201A (en) Business data processing method, system, device and electronic equipment
CN109145625A (en) Processing method, device and the block chain data-storage system of policy information
CN109272400A (en) Method for processing resource and device
CN109345221A (en) The checking method and device of resource circulation
CN109166021A (en) Bookkeeping methods, device and business finance integral system
CN105468623A (en) Data processing method and apparatus
CN110264213A (en) A kind of processing method of information, device and equipment
CN108564352A (en) The processing method and processing device of e-sourcing information
CN108681962A (en) A kind of method, apparatus and equipment of business processing
CN109948038A (en) Question pushing method and device
CN109933325A (en) A kind of dex file construction method, apparatus and system
CN110069453A (en) Operation/maintenance data treating method and apparatus
CN106294700A (en) The storage of a kind of daily record and read method and device
CN109582476A (en) Data processing method, apparatus and system
CN110008252A (en) Verification of data method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190201