CN108563531A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN108563531A
CN108563531A CN201810349646.9A CN201810349646A CN108563531A CN 108563531 A CN108563531 A CN 108563531A CN 201810349646 A CN201810349646 A CN 201810349646A CN 108563531 A CN108563531 A CN 108563531A
Authority
CN
China
Prior art keywords
processing system
processing
refunds
instruction
subtask
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
CN201810349646.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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201810349646.9A priority Critical patent/CN108563531A/en
Publication of CN108563531A publication Critical patent/CN108563531A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1474Saving, restoring, recovering or retrying in transactions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application provides a kind of data processing methods, this method can be after receiving to the process instruction of goal task, determine the multiple processing subtasks for including in the goal task, the corresponding processing system in wherein multiple processing subtask is multiple, and processing subtask is sent to the corresponding processing system in each processing subtask successively according to the processing sequence of processing subtask, if the handling result of some processing system return does not simultaneously meet preset condition, refunds instruction can be then sent to the processing system, so that the processing system is restored according to the associated data handled by processing subtask to state before, it is maintained at the state before goal task is not carried out with the associated data ensured in processing system, ensure the accuracy of data.In addition, present invention also provides a kind of data processing equipment, to ensure the application and realization of the method in practice.

Description

Data processing method and device
Technical field
This application involves technical field of data security, more specifically, being data processing method and device.
Background technology
Currently, the business processing of industry-by-industry is increasingly dependent on computer system, and with the continuous extension of business function, The processing procedure of business becomes increasingly complex.The processing procedure of one complicated business needs to be related to multiple independent systems, each to be System completes the processing task of respective system, after multiple systems are handled successfully, indicates that this business is successfully processed and finishes.
In this business for needing cross-system to be handled, if either side system is not successfully completed processing task, i.e., Indicate that this task execution fails.In this case it is necessary to which the data in the system being disposed are then returned to place State before reason, to ensure the accuracy of data in whole system.
Invention content
In view of this, this application provides a kind of data processing method, the business for being handled in cross-system is in one party In system when processing failure, the data in the system for having executed processing task are subjected to rollback, to ensure number in whole system According to accuracy.
In order to achieve the object, technical solution provided by the present application is as follows:
In a first aspect, this application provides a kind of data processing methods, including:
The process instruction to target service is received, the target service includes multiple processing subtasks, handles subtask pair The processing system answered is multiple;
Determine the processing sequence of each processing subtask;
According to the processing sequence, appoint to each corresponding processing system transmission in processing subtask processing is sub Business, and receive the handling result that each processing system returns;
If the handling result for receiving the return of some processing system is unsatisfactory for preset condition, tied to successfully processing is returned The processing system of fruit sends refunds instruction, and the refunds instruction, which is used to indicate processing system, will handle the associated data in subtask time The state being rolled to before processing.
In one example, if the handling result for receiving the return of some processing system is unsatisfactory for preset condition, Refunds instruction is sent to the processing system for returning to successful handling result, including:
If the handling result for receiving the return of some processing system is mistake, looked into the handling result having been received Look for successful handling result;
Refunds instruction is sent to the processing system for returning to the successful handling result.
In one example, if each processing subtask has preset handling duration threshold value;
If then the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successful to returning The processing system of handling result sends refunds instruction, including:
If not receiving what some described processing system returned in the corresponding handling duration threshold value of some processing system Handling result then sends refunds instruction to some described processing system;
If receiving the successful refunds result of some processing system return or in preset refunds duration threshold value The refunds that some described processing system returns is not received as a result, then being sent to the processing system for returning to successful handling result Refunds instructs.
In one example, if target service has preset handling duration threshold value;
If then the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successful to returning The processing system of handling result sends refunds instruction, including:
If not receiving the handling result that all processing systems return in the handling duration threshold value, it is determined that sent out It send processing subtask but does not return to the target processing system of handling result, and refunds instruction is sent to the target processing system;
If receiving the successful refunds result of the target processing system return or in preset refunds duration threshold value The refunds that the target processing system returns is not received as a result, then being sent to the processing system for returning to successful handling result Refunds instructs.
Second aspect, this application provides a kind of data processing equipments, including:
Process instruction receiving unit, for receiving the process instruction to target service, the target service includes multiple places Subtask is managed, the corresponding processing system in processing subtask is multiple;
Processing sequence determination unit, the processing sequence for determining each processing subtask;
Subtask processing unit, for according to the processing sequence, to the corresponding processing system in each processing subtask System sends the processing subtask, and receives the handling result that each processing system returns;
Subtask data refunds unit, if being unsatisfactory for default item for receiving the handling result of some processing system return Part, then send refunds instruction to the processing system for returning to successful handling result, and the refunds instruction is used to indicate processing system State of the associated data rewind in subtask to before handling will be handled.
In one example, the subtask data refunds unit, including:
It is successfully processed result determination subelement, if the handling result for receiving the return of some processing system is mistake, Successful handling result is then searched in the handling result having been received;
First refunds instructs transmission sub-unit, for sending refunds to the processing system for returning to the successful handling result Instruction.
In one example, if each processing subtask has preset handling duration threshold value;
Then subtask data refunds unit, including:
Second refunds instructs transmission sub-unit, if for not connect in the corresponding handling duration threshold value of some processing system The handling result that some described processing system returns is received, then sends refunds instruction to some described processing system;
Third refunds instructs transmission sub-unit, if the successful refunds result returned for receiving some described processing system Or refunds that some described processing system returns is not received in preset refunds duration threshold value as a result, then to return at The processing system of the handling result of work(sends refunds instruction.
In one example, if target service has preset handling duration threshold value;
The then subtask data refunds unit, including:
4th refunds instructs transmission sub-unit, if for not receiving all processing systems in the handling duration threshold value The handling result of return, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to institute It states target processing system and sends refunds instruction;
5th refunds instructs transmission sub-unit, if the successful refunds result returned for receiving the target processing system Or refunds that the target processing system returns is not received in preset refunds duration threshold value as a result, then to return at The processing system of the handling result of work(sends refunds instruction.
In one example, if target service has preset handling duration threshold value;
The then subtask data refunds unit, including:
6th refunds instructs transmission sub-unit, if for not receiving all processing systems in the handling duration threshold value The handling result of return, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to institute Target processing system is stated to send refunds instruction and wait for instruction;The wherein described waiting instruction in the target processing system for returning Return the execution that the refunds instruction is triggered after being successfully processed result;
7th refunds instructs transmission sub-unit, for successfully being handled to other returns except the target processing system As a result processing system sends refunds instruction.
By above technical scheme it is found that this application provides a kind of data processing method, this method can receive pair After the process instruction of goal task, the multiple processing subtasks for including in the goal task are determined, wherein multiple processing is appointed Corresponding processing system of being engaged in is multiple, and according to the processing sequence of processing subtask successively to the corresponding place in each processing subtask Reason system send processing subtask, if some processing system return handling result and do not meet preset condition, can be to this Processing system sends refunds instruction, so that the processing system is restored according to the associated data handled by processing subtask to before State is maintained at the state before goal task is not carried out with the associated data ensured in processing system, ensures the accurate of data Property.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of data processing method provided by the present application;
Fig. 2 is a kind of flow diagram of target service provided by the present application;
Fig. 3 is a kind of schematic diagram provided by the present application that refunds is carried out to some processing system;
Fig. 4 is a kind of structural schematic diagram of data processing equipment provided by the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
With the development of information technology, many business are required for being handled by computer processing system completion.In business processing In the case that logic is complex, involved processing system more than one.It, can in order to be completed by computer processing system To generate the processing task that computer processing system is able to carry out, a processing task i.e. corresponding one according to the processing logic of business Item business.In the application scenarios of the application, this handles task and needs to complete with multiple computer processing systems, because This, task will be handled by, which needing, is divided into multiple processing subtasks, and different computer processing systems is completed different processing and appointed Business.If some processing system handles subtask not successfully, need that the data that finish will be successfully processed in other processing systems extensive Multiple extremely untreated state, to ensure the accuracy of data in entire computer system.
It is illustrated by taking a certain cross-system business in banking system as an example.It is bought assuming that a certain cross-system business is application Fund, process flow of this business in each system are that client sends Shen by Internetbank client to internet banking system first Purchase request, internet banking system receive after this applies to purchase request, and financial core system is asked to be detained in the account balance of the user first Except the amount of money number applied to purchase needed for fund, and asks fund system to distribute fund share that it is applied to purchase for the user and update base Golden residual share, under the premise of the two systems are handled successfully, internet banking system is applied to purchase successfully to the transmission of Internetbank client Prompt message.
If financial core system or fund system any one system processing failure, need by other systems It handles successful data and carries out rollback, to ensure that these data are consistent under whole system, and then ensure the standard of data True property.In this regard, this application provides a kind of data processing method, to realize the target.
See Fig. 1, it illustrates a kind of flows of data processing method, specifically include step S101~S104.
S101:The process instruction to target service is received, target service includes multiple processing subtasks, handles subtask pair The processing system answered is multiple.
Wherein, if desired some business is handled, which can be known as target service.In order to realize pair The processing of target service can send the process instruction to target service to the processing unit for executing the data processing method.
Target service includes multiple processing subtasks, and processing subtask needs processing system to be handled, and handles The corresponding processing system in subtask is multiple.By taking target service is application purchase fund as an example, which includes at 2 Subtask is managed, fund share and renewal fund residual share are respectively distributed and deducts the amount of money number applied to purchase needed for fund. The corresponding processing system in this 2 processing subtasks is 2, i.e., financial core system and fund system.
S102:Determine the processing sequence of each processing subtask.
Wherein, each processing subtask in target service has preset processing sequence, which can be with It is serially to execute, can also be parallel execution.Processing sequence is pre-set according to the processing logic of target service, and processing is suitable Sequence may be embodied in the process instruction to target service.
Can be that each processing subtask is corresponded to according to the processing sequence after the processing sequence for determining each processing subtask Processing system be arranged priority.By target service be application purchase fund for, it is each processing subtask processing sequence according to It is secondary to be, amount of money number, distribution fund share and the renewal fund residual share applied to purchase needed for fund are deducted, then processing system is excellent First grade is respectively set to:The priority of financial core system is 0, and the priority of fund system is 1.
Another example of the priority of processing system is as illustrated in fig. 2, it is assumed that target service includes four processing sons times Business, respectively by processing system A, B, C, D processing, the processing sequence of four processing subtasks is:Subtask 1 is handled with processing to appoint Business 4 needs parallel processing first, processing subtask 2 to need to carry out after the completion of processing subtask 1 and processing subtask 4 are handled Processing, processing subtask 3 need to be handled after the completion of the processing of processing subtask 2.It can be determined according to above-mentioned processing sequence The priority of four processing systems is respectively:The priority of processing system A and processing system D are 0, and processing system B's is preferential Grade is 1, and the priority of processing system C is 2.
S103:According to processing sequence, processing subtask is sent to the corresponding processing system in each processing subtask, and receive The handling result that each processing system returns.
Wherein, according to the processing sequence for each processing subtask determined, to the place for handling each processing subtask Reason system sends processing subtask, so that processing system handles processing subtask.In practical applications, subtask is handled Can be various, corresponding processing system can also be various, the processing mode the application of processing system to processing subtask And it is not specifically limited.
Data processing equipment also needs to the handling result of receiving processing system return, and handling result may be successful processing As a result, it is also possible to the handling result of failure.It should be noted that can be returned in the processing system for receiving previous sequence After being successfully processed result, the processing subtask of next sequence is just sent.
As shown in Fig. 2, data processing equipment sends processing subtask to four processing systems successively, since processing system has There is priority, which be arranged according to the processing sequence of processing subtask, therefore can be directly according to processing system Priority sends this four processing subtasks successively.
S104:If the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successful to returning The processing system of handling result sends refunds instruction, and refunds instruction, which is used to indicate processing system, will handle the associated data in subtask The state being rolled back to before processing.
Wherein, the handling result that data processing equipment can be returned with receiving processing system, and condition is pre-set to processing As a result judged, if handling result is unsatisfactory for preset condition, need the processing system to being successfully processed subtask Carry out refunds operation.It can also be to handling result in time-related requirement that wherein preset condition, which can be to processing procedure, Requirement in terms of content.
A kind of specific implementation that refunds operation is carried out to processing system is to send refunds instruction, punching to processing system The effect for referring to enable, which is instruction processing system, will handle the associated data rewind in subtask to state before.Wherein associated number According to the object data for referring to the processing of processing subtask.
For example, target service, which is some user, applies for purchase fund, if financial core system success is in the fund of the user The amount of money number needed for fund of applying to purchase is deducted in total value, and assumes that the amount of money number is 10,000 yuan, but fund system and is divided not successfully With fund, then data processing system needs to send refunds instruction to financial core system, so that financial core system is in the user Capital investment in increase by 10,000 yuan of amount of money number.
Several concrete conditions for sending refunds instruction are illustrated below.
In the first realization method, if the handling result for receiving the return of some processing system is the processing knot of mistake Fruit, then it represents that some processing system is not successfully processed the subtask corresponding to it, in this case it is necessary to having connect In the handling result received, successful handling result is found out, and determines that the processing system for returning to successful handling result is Which system sends refunds instruction to these processing systems.It is understood that the processing system determined
See Fig. 2, it is assumed that it is failure that data processing equipment, which receives the handling result that processing system C is returned, according to processing The processing sequence of task is it is found that it is successfully received the processing knot that processing system A, processing system D, processing system B are returned Fruit, therefore as shown in figure 3, data processing equipment can be instructed to refunds is sent to three processing systems successively.
It should be noted that the transmission sequence of refunds instruction can be sent simultaneously, can also be according to processing sequence Reverse-order is sent successively.It, can be again in the processing system of previous sequence if sending refunds instruction according to the reverse-order of processing sequence After system returns to successful refunds result, just refunds instruction is sent to the processing system of latter sequence.
In second of realization method, it can be that each processing subtask pre-sets corresponding handling duration threshold value, locate Reason duration threshold value is used to limit the handling duration of each processing subtask.On the basis of default handling duration threshold value, if at certain The handling result of some processing system return is not received in the corresponding handling duration threshold value of a processing system, then to this certain A processing system sends refunds instruction.
Specifically, after data processing equipment sends processing subtask to processing system, timing can be started, if reached After handling duration threshold value, the handling result of processing system return is not received also, then it is different can to determine that the processing system occurs Often, it is therefore desirable to send refunds instruction to the processing system, will to handle the associated data in subtask extensive to trigger the processing system The multiple state to before processing.
Since, there is likely to be successful processing system has been handled, data processing equipment exists before the processing system After sending refunds instruction, refunds result may also wait for.
If receive some processing system return successful refunds as a result, if data processing equipment determination it is received To the handling result for being successfully processed subtask, and to return be successfully processed result processing system send refunds instruction.Alternatively, The handling duration threshold value of refunds instruction is pre-set, which is properly termed as refunds duration threshold value, if in preset punching Return duration threshold value in do not receive some processing system return refunds as a result, then data processing equipment determine it is received To the handling result for being successfully processed subtask, and to return be successfully processed result processing system send refunds instruction.Certainly, If the refunds result that some processing system received returns fails for refunds, on the basis of executing above-mentioned processing, Refunds instruction can also be retransmitted to the processing system or failure cleaning is carried out to some processing system.
In this kind of realization method, need to be respectively provided with corresponding handling duration threshold value for each processing subtask, to each The handling duration threshold value of processing subtask is monitored, if the execution duration of some processing subtask is more than corresponding processing Long threshold value then needs some corresponding processing system in processing subtask to this to carry out refunds.
Can be that handling duration threshold value is arranged in entire target service, for entire target in the third realization method The processing procedure of business is monitored.If not receiving the handling result that all processing systems return in handling duration threshold value, It then determines the target processing system for having sent processing subtask but not returned to handling result, and is sent out to the target processing system Refunds is sent to instruct.
It specifically, can be to processing procedure after data processing equipment sends first processing subtask to first processing system Timing is carried out, if timing duration reaches handling duration threshold value, but does not send processing subtask to all processing systems, then Data processing equipment just determines the processing system for being currently executing processing task, the processing system, that is, data processing equipment first It has been sent to processing subtask but has not received the processing system of the handling result of processing system return, in order to Convenient for description, which can be known as target processing system.And then refunds instruction is sent to the target processing system, with The state before the associated data in subtask are restored to processing will be handled by triggering the processing system.
It is identical as above-mentioned second of realization method after sending refunds instruction to the target processing system, due to the processing system There is likely to be having handled successful processing system before system, therefore data processing equipment may be used also after sending refunds instruction To wait for refunds result.
If receive some processing system return successful refunds as a result, if data processing equipment determination it is received To the handling result for being successfully processed subtask, and to return be successfully processed result processing system send refunds instruction.Alternatively, The handling duration threshold value of refunds instruction is pre-set, which is properly termed as refunds duration threshold value, if in preset punching Return duration threshold value in do not receive some processing system return refunds as a result, then data processing equipment determine it is received To the handling result for being successfully processed subtask, and to return be successfully processed result processing system send refunds instruction.Certainly, If the refunds result that some processing system received returns fails for refunds, on the basis of executing above-mentioned processing, Refunds instruction can also be retransmitted to the processing system or failure cleaning is carried out to some processing system.
In implementation above mode, handling duration threshold value is set for entire processing business, if in the handling duration threshold value And it is untreated complete, then need to the processing system for being carrying out processing task and its send before the processing system for being successfully processed result System sends refunds instruction, so that these processing system rollback data.
In the 4th kind of realization method, processing system cannot interrupt in processing procedure, therefore processing system is receiving After refunds instruction, need to wait for data processing completion that could execute refunds instruction.For such case, refunds instruction needs to wait for It could be executed after a period of time.
Therefore, if not receiving the handling result that all processing systems return in the handling duration threshold value, it is determined that It has sent processing subtask but has not returned to the target processing system of handling result, and refunds is sent to the target processing system Instruction and waiting instruction;The wherein described waiting instruction after target processing system return is successfully processed result for triggering institute State the execution of refunds instruction;Other processing systems for returning to successful handling result except to the target processing system are sent Refunds instructs.
Specifically, data processing equipment also sends waiting instruction simultaneously when sending refunds instruction to target processing system. If target processing system is waited for also in processing procedure, if target processing system returns to handling result, such as The fruit handling result is successful handling result, then instruction is waited for need to trigger the execution of refunds instruction.Refunds instruction execution is complete Finish, the data crossed handled by target processing system can be restored to state before.
In addition, the processing system transmission refunds that data processing equipment also needs to return successful handling result to other refers to It enables, but also the processing data of other systems can be restored to state before.
By above technical scheme it is found that this application provides a kind of data processing method, this method can receive pair After the process instruction of goal task, the multiple processing subtasks for including in the goal task are determined, wherein multiple processing is appointed Corresponding processing system of being engaged in is multiple, and according to the processing sequence of processing subtask successively to the corresponding place in each processing subtask Reason system send processing subtask, if some processing system return handling result and do not meet preset condition, can be to this Processing system sends refunds instruction, so that the processing system is restored according to the associated data handled by processing subtask to before State is maintained at the state before goal task is not carried out with the associated data ensured in processing system, ensures the accurate of data Property.
See Fig. 4, it illustrates a kind of structures of data processing equipment provided by the present application, specifically include:Process instruction connects Receive unit 401, processing sequence determination unit 402, subtask processing unit 403, subtask data refunds unit 404.
Process instruction receiving unit 401, for receiving the process instruction to target service, the target service includes multiple Subtask is handled, the corresponding processing system in processing subtask is multiple;
Processing sequence determination unit 402, the processing sequence for determining each processing subtask;
Subtask processing unit 403, for according to the processing sequence, to the corresponding processing in each processing subtask System sends the processing subtask, and receives the handling result that each processing system returns;
Subtask data refunds unit 404, if for receive some processing system return handling result be unsatisfactory for it is pre- If condition, then refunds instruction is sent to the processing system for returning to successful handling result, the refunds instruction is used to indicate processing System will handle state of the associated data rewind in subtask to before handling.
In one implementation, the subtask data refunds unit, including:
It is successfully processed result determination subelement, if the handling result for receiving the return of some processing system is mistake, Successful handling result is then searched in the handling result having been received;
First refunds instructs transmission sub-unit, for sending refunds to the processing system for returning to the successful handling result Instruction.
In one implementation, if each processing subtask has preset handling duration threshold value;
Then subtask data refunds unit, including:
Second refunds instructs transmission sub-unit, if for not connect in the corresponding handling duration threshold value of some processing system The handling result that some described processing system returns is received, then sends refunds instruction to some described processing system;
Third refunds instructs transmission sub-unit, if the successful refunds result returned for receiving some described processing system Or refunds that some described processing system returns is not received in preset refunds duration threshold value as a result, then to return at The processing system of the handling result of work(sends refunds instruction.
In one implementation, if target service has preset handling duration threshold value;
The then subtask data refunds unit, including:
4th refunds instructs transmission sub-unit, if for not receiving all processing systems in the handling duration threshold value The handling result of return, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to institute It states target processing system and sends refunds instruction;
5th refunds instructs transmission sub-unit, if the successful refunds result returned for receiving the target processing system Or refunds that the target processing system returns is not received in preset refunds duration threshold value as a result, then to return at The processing system of the handling result of work(sends refunds instruction.
In one implementation, if target service has preset handling duration threshold value;
The then subtask data refunds unit, including:
6th refunds instructs transmission sub-unit, if for not receiving all processing systems in the handling duration threshold value The handling result of return, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to institute Target processing system is stated to send refunds instruction and wait for instruction;The wherein described waiting instruction in the target processing system for returning Return the execution that the refunds instruction is triggered after being successfully processed result;
7th refunds instructs transmission sub-unit, for successfully being handled to other returns except the target processing system As a result processing system sends refunds instruction.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including above-mentioned element.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of data processing method, which is characterized in that including:
The process instruction to target service is received, the target service includes multiple processing subtasks, and processing subtask is corresponding Processing system is multiple;
Determine the processing sequence of each processing subtask;
According to the processing sequence, to each corresponding processing system transmission in processing subtask processing subtask, and Receive the handling result that each processing system returns;
If the handling result for receiving the return of some processing system is unsatisfactory for preset condition, to the successful handling result of return Processing system sends refunds instruction, and the refunds instruction, which is used to indicate processing system, will handle the associated data rewind in subtask extremely State before processing.
2. data processing method according to claim 1, which is characterized in that if described receive the return of some processing system Handling result be unsatisfactory for preset condition, then send refunds instruction to the processing system for returning to successful handling result, including:
If receive some processing system return handling result be mistake, in the handling result having been received search at The handling result of work(;
Refunds instruction is sent to the processing system for returning to the successful handling result.
3. data processing method according to claim 1, which is characterized in that if each processing subtask has preset place Manage duration threshold value;
If then the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successfully handled to returning As a result processing system sends refunds instruction, including:
If not receiving the processing that some described processing system returns in the corresponding handling duration threshold value of some processing system As a result, then sending refunds instruction to some described processing system;
If receive successful refunds result that some described processing system returns or in preset refunds duration threshold value not The refunds that some described processing system returns is received as a result, then sending refunds to the processing system for returning to successful handling result Instruction.
4. data processing method according to claim 1, which is characterized in that if target service has preset handling duration Threshold value;
If then the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successfully handled to returning As a result processing system sends refunds instruction, including:
If not receiving the handling result that all processing systems return in the handling duration threshold value, it is determined that at transmission Reason subtask but the target processing system for not returning to handling result, and send refunds instruction to the target processing system;
If receive successful refunds result that the target processing system returns or in preset refunds duration threshold value not The refunds that the target processing system returns is received as a result, then sending refunds to the processing system for returning to successful handling result Instruction.
5. data processing method according to claim 1, which is characterized in that if target service has preset handling duration Threshold value;
If then the handling result for receiving the return of some processing system is unsatisfactory for preset condition, successfully handled to returning As a result processing system sends refunds instruction, including:
If not receiving the handling result that all processing systems return in the handling duration threshold value, it is determined that at transmission Reason subtask but the target processing system for not returning to handling result, and send refunds instruction to the target processing system and wait for Instruction;The wherein described waiting instruction after target processing system return is successfully processed result for triggering the refunds instruction Execution;
Other processing systems for returning to successful handling result except to the target processing system send refunds instruction.
6. a kind of data processing equipment, which is characterized in that including:
Process instruction receiving unit, for receiving the process instruction to target service, the target service includes multiple processing Task, the corresponding processing system in processing subtask are multiple;
Processing sequence determination unit, the processing sequence for determining each processing subtask;
Subtask processing unit is sent out to the corresponding processing system in each processing subtask for according to the processing sequence The processing subtask is sent, and receives the handling result that each processing system returns;
Subtask data refunds unit, if the handling result for receiving the return of some processing system is unsatisfactory for preset condition, Refunds instruction then is sent to the processing system for returning to successful handling result, the refunds instruction, which will be used to indicate processing system, to be located Manage state of the associated data rewind in subtask to before handling.
7. data processing equipment according to claim 6, which is characterized in that the subtask data refunds unit, including:
It is successfully processed result determination subelement, if the handling result for receiving the return of some processing system is mistake, Successful handling result is searched in the handling result having been received;
First refunds instructs transmission sub-unit, refers to for sending refunds to the processing system for returning to the successful handling result It enables.
8. data processing equipment according to claim 6, which is characterized in that if each processing subtask has preset place Manage duration threshold value;
Then subtask data refunds unit, including:
Second refunds instructs transmission sub-unit, if for not received in the corresponding handling duration threshold value of some processing system The handling result that some described processing system returns then sends refunds instruction to some described processing system;
Third refunds instructs transmission sub-unit, if for receive successful refunds result that some described processing system returns or The refunds that some described processing system returns is not received in preset refunds duration threshold value as a result, then successful to returning The processing system of handling result sends refunds instruction.
9. data processing equipment according to claim 6, which is characterized in that if target service has preset handling duration Threshold value;
The then subtask data refunds unit, including:
4th refunds instructs transmission sub-unit, if being returned for not receiving all processing systems in the handling duration threshold value Handling result, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to the mesh It marks processing system and sends refunds instruction;
5th refunds instructs transmission sub-unit, if for receive successful refunds result that the target processing system returns or The refunds that the target processing system returns is not received in preset refunds duration threshold value as a result, then successful to returning The processing system of handling result sends refunds instruction.
10. data processing equipment according to claim 6, which is characterized in that if target service has preset processing Long threshold value;
The then subtask data refunds unit, including:
6th refunds instructs transmission sub-unit, if being returned for not receiving all processing systems in the handling duration threshold value Handling result, it is determined that sent processing subtask but do not returned to the target processing system of handling result, and to the mesh Processing system is marked to send refunds instruction and wait for instruction;Wherein waiting instruction for the target processing system return at The execution of the refunds instruction is triggered after work(handling result;
7th refunds instructs transmission sub-unit, is used for other successful handling results of return except the target processing system Processing system send refunds instruction.
CN201810349646.9A 2018-04-18 2018-04-18 Data processing method and device Pending CN108563531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810349646.9A CN108563531A (en) 2018-04-18 2018-04-18 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810349646.9A CN108563531A (en) 2018-04-18 2018-04-18 Data processing method and device

Publications (1)

Publication Number Publication Date
CN108563531A true CN108563531A (en) 2018-09-21

Family

ID=63535538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810349646.9A Pending CN108563531A (en) 2018-04-18 2018-04-18 Data processing method and device

Country Status (1)

Country Link
CN (1) CN108563531A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461072A (en) * 2018-11-07 2019-03-12 中国银行股份有限公司 A kind of transaction execution method and device
CN109785042A (en) * 2018-12-13 2019-05-21 深圳平安财富宝投资咨询有限公司 Abnormality eliminating method, server, storage medium and the device of distributed deployment
CN111340340A (en) * 2020-02-17 2020-06-26 腾讯科技(深圳)有限公司 Event processing method and device
CN115250276A (en) * 2021-04-27 2022-10-28 北京同邦卓益科技有限公司 Distributed system and data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073540A (en) * 2010-12-15 2011-05-25 北京新媒传信科技有限公司 Distributed affair submitting method and device thereof
CN102521023A (en) * 2011-11-21 2012-06-27 华为软件技术有限公司 Multi-system transaction integration processing method and transaction integration processing system
CN103019651A (en) * 2012-08-02 2013-04-03 青岛海信传媒网络技术有限公司 Parallel processing method and device for complex tasks
US20170322838A1 (en) * 2016-05-03 2017-11-09 Gopro, Inc. Systems and methods for micro-batch processing of data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073540A (en) * 2010-12-15 2011-05-25 北京新媒传信科技有限公司 Distributed affair submitting method and device thereof
CN102521023A (en) * 2011-11-21 2012-06-27 华为软件技术有限公司 Multi-system transaction integration processing method and transaction integration processing system
CN103019651A (en) * 2012-08-02 2013-04-03 青岛海信传媒网络技术有限公司 Parallel processing method and device for complex tasks
US20170322838A1 (en) * 2016-05-03 2017-11-09 Gopro, Inc. Systems and methods for micro-batch processing of data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109461072A (en) * 2018-11-07 2019-03-12 中国银行股份有限公司 A kind of transaction execution method and device
CN109785042A (en) * 2018-12-13 2019-05-21 深圳平安财富宝投资咨询有限公司 Abnormality eliminating method, server, storage medium and the device of distributed deployment
CN111340340A (en) * 2020-02-17 2020-06-26 腾讯科技(深圳)有限公司 Event processing method and device
CN111340340B (en) * 2020-02-17 2023-10-20 腾讯科技(深圳)有限公司 Event processing method and device
CN115250276A (en) * 2021-04-27 2022-10-28 北京同邦卓益科技有限公司 Distributed system and data processing method and device

Similar Documents

Publication Publication Date Title
CN108563531A (en) Data processing method and device
US10423443B2 (en) Task management interface
US20080046862A1 (en) Business task management
CN108961033A (en) Multiservice system exchange method and device, storage medium, electric terminal
CN104461747A (en) Distributed type task scheduling system
CN109978474A (en) A kind of Work-flow control method and Work-flow control device
CN109902077A (en) A kind of service request processing method, device and equipment
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
EP3069272B1 (en) Managing job status
CN115907413A (en) Cleaning task processing method and device
CN108596624A (en) Handling result, payment result acquisition methods and the device of service request
CN110535939A (en) A kind of service discovery and method for pre-emptively, device, computer equipment and storage medium
CN105635231A (en) Calling method and apparatus of distributed system
CN105975346A (en) Method, device and system for scheduling thread resources
CN109976883A (en) A kind of processing method and its system of task
CN109241042A (en) Data processing method, device and electronic equipment
CN108874523A (en) A kind of programmed method based on the AI and promise of children education control asynchronous function sequence
CN110187890B (en) Project deployment method, electronic equipment and storage medium
US20090222818A1 (en) Fast workflow completion in a multi-system landscape
CN104021033A (en) Method and system for hashing busy processing nodes
CN109032779A (en) Task processing method, device, computer equipment and readable storage medium storing program for executing
CN104407848B (en) A kind of data processing method and device
CN107220818A (en) online payment method and device
CN112286580B (en) Method and device for processing pipeline operation and computer equipment
CN110019456A (en) Data lead-in method, device and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180921