CN110263096A - Batch processing method, system, device, equipment and medium based on distributed environment - Google Patents

Batch processing method, system, device, equipment and medium based on distributed environment Download PDF

Info

Publication number
CN110263096A
CN110263096A CN201910518008.XA CN201910518008A CN110263096A CN 110263096 A CN110263096 A CN 110263096A CN 201910518008 A CN201910518008 A CN 201910518008A CN 110263096 A CN110263096 A CN 110263096A
Authority
CN
China
Prior art keywords
same day
day
distributed
time delay
time point
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
CN201910518008.XA
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.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910518008.XA priority Critical patent/CN110263096A/en
Publication of CN110263096A publication Critical patent/CN110263096A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/02Banking, e.g. interest calculation or account maintenance

Abstract

The invention discloses a kind of batch processing method based on distributed environment, system, device, equipment and media, it is related to financial technology field, method includes the following steps: determining whether the same day event argument meets default time delay condition by obtaining the same day event argument under distributed environment;If the same day event argument meets default time delay condition, it is determined that day corresponding with the default time delay condition cuts time point;To cut time point the day corresponding with the default time delay condition is sent to distributed child node, so that the distributed child node carries out trade date switching cutting time point the day.It realizes flexibly to be changed according to the actual operation situation of same day financial system and day cuts time point, each distributed child node is uniformly issued to by the way that time point will be cut day, it realizes and guarantees that multiple subsystem days cut the consistency of time by the unified day mechanism of cutting, and then improve the stability and intelligence of financial system.

Description

Batch processing method, system, device, equipment and medium based on distributed environment
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to it is a kind of based on distributed environment batch at Reason method, system, device, equipment and medium.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.
In the financial systems such as bank, account information dissemination is in different distributed subsystems, with operation expanding, packet The subsystem of the information containing account will continue growing.Containing the date hand-off process mechanism of oneself, each son in each account subsystem System can carry out cutting respective day operation (replacing the time of system accounting) respectively, but current distributed financial system It can not accomplish the accounting date of each distributed node accurately while switch, be easy to cause the financial accident phenomenons such as pending accounts, wrong account.
Summary of the invention
The main purpose of the present invention is to provide a kind of batch processing method based on distributed environment, system, devices, equipment And medium, it is intended to which the accounting date of each distributed node can not be accomplished accurately while switch by solving existing distributed financial system The technical issues of.
To achieve the above object, the present invention provides a kind of batch processing method based on distributed environment, described based on distribution The batch processing method of formula environment the following steps are included:
The same day event argument under distributed environment is obtained, determines whether the same day event argument meets default delay item Part;
If the same day event argument meets default time delay condition, it is determined that day corresponding with the default time delay condition Cut time point;
To cut time point the day corresponding with the default time delay condition is sent to distributed child node, for described Distributed child node is cutting time point progress trade date switching the day.
Optionally, the same day event argument obtained under distributed environment, determines whether the same day event argument accords with Before the step of closing default time delay condition, further includes:
In the first preset time point, batch preceding detection instruction is issued to the distributed child node;
After detecting successfully feedback before receiving the characterization batch that the distributed child node returns, executes step: obtaining The same day event argument under distributed environment is taken, determines whether the same day event argument meets default time delay condition.
Optionally, the same day event argument obtained under distributed environment, determines whether the same day event argument accords with After the step of closing default time delay condition, further includes:
If the same day event argument does not meet default time delay condition, the time is cut using the second preset time point as day Point;
The second preset time point is sent to distributed child node, so that the distributed child node is described second Preset time point carries out trade date switching.
Optionally, the same day event argument includes the date on the same day, the same day event ginseng obtained under distributed environment Number, determines that the step of whether same day event argument meets default time delay condition includes:
The date on the same day under distributed environment is obtained, judges whether the date on the same day is the default delay date;
If the date on the same day is the default delay date, determine that the same day event argument meets default time delay condition;
If the date on the same day is not the default delay date, determine that the same day event argument does not meet default delay item Part.
Optionally, if the same day event argument meets default time delay condition, it is determined that with the default delay item The step of part corresponding day cuts time point include:
If the same day event argument meets default time delay condition, obtained and the default delay according to default mapping relations The corresponding delay duration of condition;
It is calculated according to the second preset time point and the delay duration corresponding with the default time delay condition Day cut time point.
Optionally, described to cut time point the day corresponding with the default time delay condition and be sent to distribution formula section Point, so that the distributed child node is after the step of cutting time point progress trade date switching the day, further includes:
Receive the distributed child node is executed after being switched to next day of trade ought everyday end batch execution As a result after, the implementing result is sent to general ledger system to carry out general ledger task.
Further, to achieve the above object, the present invention also provides a kind of batch processing system based on distributed environment, institutes Stating the batch processing system based on distributed environment includes:
Distributed management end determines the same day event argument for obtaining the same day event argument under distributed environment Whether default time delay condition is met;If the same day event argument meets default time delay condition, it is determined that with the default delay Condition corresponding day cuts time point;To cut time point the day corresponding with the default time delay condition is sent to distribution Child node, so that the distributed child node is cutting time point progress trade date switching the day;
Distributed child node, for receiving the corresponding with the default time delay condition of the distributed management end transmission Day cuts time point, and is cutting time point progress trade date switching the day.
Further, to achieve the above object, the present invention also provides a kind of batch processing device based on distributed environment, institute Stating the batch processing device based on distributed environment includes:
It obtains module and whether determines the same day event argument for obtaining the same day event argument under distributed environment Meet default time delay condition;
Determining module, if meeting default time delay condition for the same day event argument, it is determined that with the default delay Condition corresponding day cuts time point;
Switching module is sent to distribution formula for will cut time point the day corresponding with the default time delay condition Node, so that the distributed child node is cutting time point progress trade date switching the day.
Further, to achieve the above object, the present invention also provides a kind of batch processing equipment based on distributed environment, institute The batch processing equipment based on distributed environment is stated to include memory, processor and be stored on the memory and can be described The batch program based on distributed environment run on processor, the batch program based on distributed environment are described The step of processor realizes the batch processing method as described above based on distributed environment when executing.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium (i.e. medium), institutes It states and is stored with the batch program based on distributed environment on computer readable storage medium, batch based on distributed environment The step of batch processing method based on distributed environment as described above is realized when processing routine is executed by processor.
The present invention determines whether the same day event argument meets by obtaining the same day event argument under distributed environment Default time delay condition;If the same day event argument meets default time delay condition, it is determined that opposite with the default time delay condition The day answered cuts time point;To cut time point the day corresponding with the default time delay condition is sent to distributed child node, So that the distributed child node is cutting time point progress trade date switching the day.By whether judging same day event argument Meet default time delay condition to determine that day cuts time point, realizes and flexibly changed according to the actual operation situation of same day financial system Day cuts time point, being uniformly issued to each distributed child node by will cut time point day, realizing and cutting machine by unified day System guarantees that multiple subsystem days cut the consistency of time, and then improves the stability and intelligence of financial system.
Detailed description of the invention
Fig. 1 is that the present invention is based on the device hardware running environment that the batch processing apparatus embodiments scheme of distributed environment is related to Structural schematic diagram;
Fig. 2 is that the present invention is based on the flow diagrams of the batch processing method first embodiment of distributed environment;
Fig. 3 is that the present invention is based on the functional block diagrams of the batch processing device preferred embodiment of distributed environment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
It should be noted that in the financial systems such as bank, account information dissemination in different distributed subsystems, with Operation expanding, the subsystem comprising account information will continue growing.Switch containing the date of oneself in each account subsystem Treatment mechanism, each subsystem can carry out cutting respective day operation (replacing the time of system accounting) respectively, but current point The financial system of cloth can not accomplish the accounting date of each distributed node accurately while switch, and be easy to cause pending accounts, wrong account etc. Financial accident phenomenon.
Based on drawbacks described above, the present invention provides a kind of batch processing equipment based on distributed environment, and referring to Fig.1, Fig. 1 is this The structural schematic diagram for the device hardware running environment that invention is related to based on the batch processing apparatus embodiments scheme of distributed environment.
As shown in Figure 1, being somebody's turn to do the batch processing equipment based on distributed environment may include: processor 1001, such as CPU, lead to Believe bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing these Connection communication between component.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also To be independently of the storage equipment of aforementioned processor 1001.
It will be understood by those skilled in the art that the hardware knot of the batch processing equipment shown in Fig. 1 based on distributed environment Structure does not constitute the restriction to the batch processing equipment based on distributed environment, may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium Network communication module, Subscriber Interface Module SIM and the batch program based on distributed environment.Wherein, operating system is management and control The program of batch processing equipment and software resource based on distributed environment is made, supports network communication module, Subscriber Interface Module SIM, base In the operation of the batch program of distributed environment and other programs or software;Network communication module is for managing and controlling net Network interface 1004;Subscriber Interface Module SIM is for managing and controlling user interface 1003.
In batch processing device hardware structure based on distributed environment shown in Fig. 1, network interface 1004 is mainly used for Background server is connected, carries out data communication with background server;User interface 1003 is mainly used for connecting client (user End), data communication is carried out with client;Processor 1001 can call stored in memory 1005 based on distributed environment Batch program, and execute following operation:
The same day event argument under distributed environment is obtained, determines whether the same day event argument meets default delay item Part;
If the same day event argument meets default time delay condition, it is determined that day corresponding with the default time delay condition Cut time point;
To cut time point the day corresponding with the default time delay condition is sent to distributed child node, for described Distributed child node is cutting time point progress trade date switching the day.
Further, whether the same day event argument obtained under distributed environment, determine the same day event argument Before the step of meeting default time delay condition, processor 1001 be also used to call stored in memory 1005 based on distributed ring The batch program in border, and execute following operation:
In the first preset time point, batch preceding detection instruction is issued to the distributed child node;
After detecting successfully feedback before receiving the characterization batch that the distributed child node returns, executes step: obtaining The same day event argument under distributed environment is taken, determines whether the same day event argument meets default time delay condition.
Further, whether the same day event argument obtained under distributed environment, determine the same day event argument After the step of meeting default time delay condition, processor 1001 be also used to call stored in memory 1005 based on distributed ring The batch program in border, and execute following operation:
If the same day event argument does not meet default time delay condition, the time is cut using the second preset time point as day Point;
The second preset time point is sent to distributed child node, so that the distributed child node is described second Preset time point carries out trade date switching.
Further, the same day event argument includes the date on the same day, the same day event obtained under distributed environment Parameter determines that the step of whether same day event argument meets default time delay condition includes:
The date on the same day under distributed environment is obtained, judges whether the date on the same day is the default delay date;
If the date on the same day is the default delay date, determine that the same day event argument meets default time delay condition;
If the date on the same day is not the default delay date, determine that the same day event argument does not meet default delay item Part.
Further, if the same day event argument meets default time delay condition, it is determined that with the default delay The step of condition corresponding day cuts time point include:
If the same day event argument meets default time delay condition, obtained and the default delay according to default mapping relations The corresponding delay duration of condition;
It is calculated according to the second preset time point and the delay duration corresponding with the default time delay condition Day cut time point.
Further, described to cut time point the day corresponding with the default time delay condition and be sent to distribution formula Node, so that the distributed child node is after the step of cutting time point progress trade date switching the day, processor 1001 are also used to call the batch program based on distributed environment stored in memory 1005, and execute following operation:
Receive the distributed child node is executed after being switched to next day of trade ought everyday end batch execution As a result after, the implementing result is sent to general ledger system to carry out general ledger task.
The present invention is based on the specific embodiments of the batch processing equipment of distributed environment and following based on distributed environment Each embodiment of batch processing method is essentially identical, and details are not described herein.
The present invention also provides a kind of batch processing methods based on distributed environment.
Day cuts: financial institution requires the transaction to the same day daily and carries out business clearance and statistics, regardless of payment system Runing time is 7 × for 24 hours or 5 × 8h, require the time point that one time point of setting is used as same day termination transacting business, And it business clearance and statistics, the transaction after this time point are carried out to the transaction before this time point will count second day Business, this time point is known as day cutting the time.Day, which cuts, exactly focuses on the business on the day of payment system, and day cuts System will enter next working day after finishing.General payment system is carried out 7 × 24 hours and is run without interruption, daily 16:00 into Cut processing row day, i.e. proxima luce (prox. luc) 16:00 to same day 16:00 is a working day of payment system, is conducive to clear.Unionpay day cuts It is in 11 points of every night.In order to guarantee self-service and Internetbank operation, bank must run without interruption for 24 hours, so day cuts nothing It needs to restore.Day, to cut be dual system, and only when cutting day, the business after day point of contact is transferred to another host to record by host, when Preceding host such as is counted to business before, is checked out at the processing.
Day is whole in batches: the batch tasks processing that financial institution carries out in day terminal hour, mainly domestic-investment including data exchange, system Gold is cleared, is born interest, settling interests, generating report and some particular services.
It is that the present invention is based on the flow diagrams of the batch processing method first embodiment of distributed environment referring to Fig. 2, Fig. 2.
The embodiment of the invention provides the embodiments of the batch processing method based on distributed environment, it should be noted that though So logical order is shown in flow charts, but in some cases, it can be to be different from shown by sequence execution herein Or the step of description.
In each embodiment of the batch processing method based on distributed environment, for ease of description, executing subject is omitted It is illustrated each embodiment.Batch processing method based on distributed environment includes:
Step S10 obtains the same day event argument under distributed environment, it is pre- to determine whether the same day event argument meets If time delay condition;
In the financial systems such as bank, account information dissemination is in different distributed subsystems, with operation expanding, packet The subsystem of the information containing account will continue growing.Containing the date hand-off process mechanism of oneself, each son in each account subsystem System can carry out cutting respective day operation (replacing the time of system accounting) respectively, but current distributed financial system It can not accomplish the accounting date of each distributed node accurately while switch, be easy to cause the financial accident phenomenons such as pending accounts, wrong account.
It can not accomplish the accounting date of each distributed node accurately for the existing distributed financial system of solution while switch The technical issues of, in the present embodiment, distributed management node obtains the same day event argument under distributed environment, and to same day thing Part parameter carries out analysis and determines whether to meet default time delay condition.Wherein, same day event argument include but is not limited to the date on the same day, Same day data heap accumulated amount and the day trade transaction amount of money at least one of are worked as;In addition, management node obtains working as under distributed environment The operation of day event argument can be to be initiated by operation maintenance personnel in particular moment manually;It is also possible to operation maintenance personnel setting to obtain The execution time of same day event argument under distributed environment executes frequency, when detection reaches the default execution time or executes frequency It is automatic to execute the operation for obtaining the same day event argument under distributed environment when rate.The acquisition of both the above same day event argument Operation can select one implementation, can also combine implementation, the present embodiment is with no restrictions.
It further include batch execution step of preceding inspection task before step S10, it may be assumed that when first is default in the present embodiment Between when putting, detection instruction before being issued batch to the distributed child node;In the characterization for receiving the distributed child node return After detection is successfully fed back before batch, step S10 is executed.
Step S20, if the same day event argument meets default time delay condition, it is determined that with the default time delay condition phase Corresponding day cuts time point;
In the present embodiment, before step S20 further include mapping relations to default time delay condition and delay duration Setting steps, it may be assumed that when receiving mapping relations setting instruction, obtain the default delay that the mapping relations setting instruction carries Condition and delay duration;The default time delay condition and delay duration are saved as into default mapping relations.If same day event argument Default time delay condition is not met, then preset day is cut into time point as day and cuts time point;If same day event argument meets default Time delay condition obtains delay duration corresponding with the default time delay condition according to default mapping relations, according to preset day It cuts time point and delay duration is calculated and presets time delay condition corresponding day with this and cut time point.Wherein, preset day cuts Time point and delay duration are configured as needed by operation maintenance personnel, and the present embodiment is not particularly limited.
Step S30, will cut time point the day corresponding with the default time delay condition is sent to distributed child node, So that the distributed child node is cutting time point progress trade date switching the day.
In the present embodiment, management node is after getting and day cutting time point, will cut time point the day and is sent to a distribution Formula node, distributed child node carry out day of trade switching after receiving and the day cutting time point, cutting time point the day, cut day After system by the same day enter next working day.
The present embodiment determines whether the same day event argument accords with by obtaining the same day event argument under distributed environment Close default time delay condition;If the same day event argument meets default time delay condition, it is determined that with the default time delay condition phase Corresponding day cuts time point;To cut time point the day corresponding with the default time delay condition is sent to distribution formula section Point, so that the distributed child node is cutting time point progress trade date switching the day.By judging same day event argument Whether meet default time delay condition to determine that day cuts time point, realizes flexible according to the actual operation situation of same day financial system Change cuts time point day, being uniformly issued to each distributed child node by will cut time point day, realizing through unified day The mechanism of cutting guarantees that multiple subsystem days cut the consistency of time, and then improves the stability and intelligence of financial system.
Further, propose that the present invention is based on the batch processing method second embodiment of distributed environment, the same day events Parameter includes the date on the same day, and above-mentioned steps S10 includes:
Step S101 obtains the date on the same day under distributed environment, judges whether the date on the same day is default delay day Phase;
In the present embodiment, same day event argument includes the date on the same day, and management node gets working as under distributed environment After day date, judge whether the date on the same day is the default delay date, wherein the default delay date include but is not limited to festivals or holidays, The dates such as expiry date for interest, balance sheet date.
It is default to determine that the same day event argument meets if the date on the same day is the default delay date by step S102 Time delay condition;
Step S103 determines that the same day event argument is not met if the date on the same day is not the default delay date Default time delay condition;
In the present embodiment, if the date on the same day is the default delay date, determine that same day event argument meets default delay Condition;If the date on the same day is not the default delay date, determine that same day event argument does not meet default time delay condition.For example, if The default delay date is expiry date for interest, it is assumed that the expiry date for interest of financial system is (i.e. 3,6,9, December on the 20th in quarterly last month 20 days), and the date on the same day is just March 20, as expiry date for interest, then the date on the same day is the default delay date, then determines to work as Day event argument meets default time delay condition;It is not expiry date for interest, then the date on the same day is not default if the date on the same day is March 21 It is delayed the date, can determine that the same day event argument does not meet default time delay condition.
Further, the same day event argument includes same day data heap accumulated amount, and above-mentioned steps S10 includes:
The same day data heap accumulated amount under distributed environment is obtained, judges whether the same day data heap accumulated amount is greater than or equal to Default accumulating amount threshold value;If the same day data heap accumulated amount is greater than or equal to default accumulating amount threshold value, the same day thing is determined Part parameter meets default time delay condition;If the same day data heap accumulated amount is less than default accumulating amount threshold value, the same day is determined Event argument does not meet default time delay condition.
In the present embodiment, same day event argument includes same day data heap accumulated amount, and management node gets distributed environment Under same day data heap accumulated amount after, judge whether same day data heap accumulated amount is greater than or equal to default accumulating amount threshold value, wherein default Accumulating amount threshold value is configured by operation maintenance personnel according to factors such as the maximum data treating capacities of financial system, and the present embodiment, which is not done, to be had Body limits.
Further, the same day event argument includes the day trade transaction amount of money, and above-mentioned steps S10 includes:
The day trade transaction amount of money under distributed environment is obtained, it is default to judge whether the day trade transaction amount of money is greater than or equal to Amount of money threshold value;If the same day data heap accumulated amount is greater than or equal to default accumulating amount threshold value, the same day event argument is determined Meet default time delay condition;If the same day data heap accumulated amount is less than default accumulating amount threshold value, the same day event ginseng is determined Number does not meet default time delay condition.
In the present embodiment, same day event argument includes the day trade transaction amount of money, and management node is got under distributed environment The day trade transaction amount of money after, judge whether the day trade transaction amount of money is greater than or equal to preset cost threshold value, wherein preset cost threshold value It is configured by operation maintenance personnel according to factors such as the maximum fund allocation amounts of financial system, the present embodiment is not specifically limited.
Three of the above determines whether same day event argument meets the embodiment of default time delay condition and can individually implement, can also Implemented together with combination of two, implementation can be combined with three kinds, the present embodiment is not specifically limited.
In addition, the operation that management node obtains the same day event argument under distributed environment can be by operation maintenance personnel in spy Timing quarter initiates manually;It is also possible to the execution time that operation maintenance personnel setting obtains the same day event argument under distributed environment Or frequency is executed, it is automatic to execute the same day obtained under distributed environment when detection reaches the default execution time or executes frequency The operation of event argument.The acquisition operation of both the above same day event argument can select one implementation, can also combine Implement, the present embodiment is with no restrictions.
It is pre- to determine whether same day event argument meets by obtaining the same day event argument under distributed environment for the present embodiment If time delay condition, day corresponding with default time delay condition cut time point to obtain and lay a good foundation, and is different by being arranged Same day event argument increases the flexibility for cutting time point setting day, more adapts to the operation of financial system.
Further, propose the present invention is based on the batch processing method 3rd embodiment of distributed environment, above-mentioned steps S10 it Before further include:
Step S11 issues batch preceding detection instruction to the distributed child node in the first preset time point;It is receiving After detecting successfully feedback before the characterization batch returned to the distributed child node, step S10 is executed.
It in the present embodiment, further include batch execution step of preceding inspection task, specifically, management section before step S10 The detection instruction o'clock before the first preset time point issues batch to distributed child node, the detection before receiving batch of distributed child node After instruction, execute batch before Detection task, batch before Detection task include but is not limited to determine upper one everyday eventually in batches whether be completed, Whether files in batch processing has terminated.Management node before receiving the characterization batch that all distributed child nodes return detection at After the feedback of function, step S10 is executed;Alternatively, before the execution time for reaching default step S10, if being still distributed formula Detection fails before the result characterization batch that detection is successfully fed back or fed back before the characterization that node does not return is criticized, then management node will These failure child node information inform operation maintenance personnel to carry out troubleshooting.
Wherein, the first preset time point is set by operation maintenance personnel according to factors such as batch execution times of preceding Detection task It sets, the present embodiment is not specifically limited.
Further, after above-mentioned steps S10 further include:
If the same day event argument does not meet default time delay condition, the time is cut using the second preset time point as day Point;The second preset time point is sent to distributed child node, so that the distributed child node is default described second Time point carries out trade date switching.
In the present embodiment, the second preset time point is default day when same day event argument does not meet default time delay condition It cuts the time, the second preset time point is configured as needed by operation maintenance personnel, and the present embodiment is not specifically limited.First is default Time point is before the second preset time point.
Further, above-mentioned steps S20 includes:
Step S21, if the same day event argument meets default time delay condition, according to default mapping relations obtain with it is described The default corresponding delay duration of time delay condition;
In the present embodiment, before step S20 further include mapping relations to default time delay condition and delay duration Setting steps, it may be assumed that when receiving mapping relations setting instruction, obtain the default delay that the mapping relations setting instruction carries Condition and delay duration;The default time delay condition and delay duration are saved as into default mapping relations.Operation maintenance personnel can basis It needs that different delay durations is arranged for different default time delay conditions, for example, if default time delay condition is the default delay date, It is 50 minutes that delay duration, which is arranged,;If default time delay condition is default accumulating amount threshold value, setting delay duration is 55 hours;If pre- If time delay condition is preset cost threshold value, setting delay duration is 1 hour.
Step S22 is calculated and the default delay item according to the second preset time point and the delay duration Part corresponding day cuts time point.
In the present embodiment, if same day event argument meets default time delay condition, according to the acquisition of default mapping relations and institute The corresponding delay duration of default time delay condition is stated, is calculated and is somebody's turn to do further according to the second preset time point and the delay duration It is default time delay condition corresponding day to cut time point.For example, if default time delay condition is the default delay date, when corresponding delay A length of 50 minutes, the second preset time point was 23:00 minutes, then cutting time point day is 23:50.
Further, after above-mentioned steps S30 further include:
Receive the distributed child node is executed after being switched to next day of trade ought everyday end batch execution As a result after, the implementing result is sent to general ledger system to carry out general ledger task.
In the present embodiment, distributed child node can execute after being switched to next day of trade everyday whole batch to appoint Business, including but not limited to attribute expire processing, files in batch restores, current interest processing, flowing water summarize, check, count eventually day mention, Remaining sum such as summarizes at the operation, and the implementing result of end day batch can be sent to management node by distributed child node, for management node Implementing result is sent to general ledger system to carry out general ledger task.
The present embodiment passes through corresponding with default time delay condition according to default time delay condition and the acquisition of default mapping relations Day cuts time point, increases the flexibility and intelligence for cutting time point setting day, more adapts to the operation of financial system.
The present invention also provides a kind of batch processing system based on distributed environment, the batch processing based on distributed environment System includes:
Distributed management node determines the same day event ginseng for obtaining the same day event argument under distributed environment Whether number meets default time delay condition;If the same day event argument meets default time delay condition, it is determined that prolong with described preset When condition corresponding day cut time point;To cut time point the day corresponding with the default time delay condition is sent to distribution Formula node, so that the distributed child node is cutting time point progress trade date switching the day;
Distributed child node, for receiving the corresponding with the default time delay condition of the distributed management end transmission Day cuts time point, and is cutting time point progress trade date switching the day.
In addition, each distribution child node can wait predetermined time period, previous with determination after the completion of trade date switching It the transaction on way terminates, and prevents the data not being put in storage also when the account to upper one day is handled.Such as: it is default Time span is 5 minutes, then determines after five minutes in waiting without in way transaction.After being cut due to day, last account date data is It is basically unchanged, so starting to execute later includes that attribute expires processing, files in batch restores, current interest is handled, flowing water summarizes, The subsequent process steps such as meter mentioned eventually, remaining sum summarizes verification, day.
The present invention is based on the batch processing system specific embodiments of distributed environment and above-mentioned batch based on distributed environment Each embodiment of processing method is essentially identical, and details are not described herein.
The present invention also provides a kind of batch processing device based on distributed environment.
It is that the present invention is based on the signals of the functional module of the batch processing device first embodiment of distributed environment referring to Fig. 3, Fig. 3 Figure.The batch processing device based on distributed environment includes:
It obtains module 10 and determines that the same day event argument is for obtaining the same day event argument under distributed environment It is no to meet default time delay condition;
Determining module 20, if meeting default time delay condition for the same day event argument, it is determined that prolong with described preset When condition corresponding day cut time point;
Switching module 30 is sent to distribution for will cut time point the day corresponding with the default time delay condition Child node, so that the distributed child node is cutting time point progress trade date switching the day.
Further, the batch processing device based on distributed environment further include:
Module is issued, for issuing batch preceding detection instruction to the distributed child node in the first preset time point;
The acquisition module is also used to, and detection is successfully anti-before receiving the characterization batch that the distributed child node returns After feedback, step is executed: obtaining the same day event argument under distributed environment, it is pre- to determine whether the same day event argument meets If time delay condition.
Further, the batch processing device based on distributed environment further include:
Time-obtaining module, if not meeting default time delay condition for the same day event argument, by second it is default when Between point as day cutting time point;
Sending module, for the second preset time point to be sent to distributed child node, for the distribution formula Node carries out trade date switching in the second preset time point.
Further, the same day event argument includes the date on the same day, and the acquisition module is also used to:
The date on the same day under distributed environment is obtained, judges whether the date on the same day is the default delay date;
If the date on the same day is the default delay date, determine that the same day event argument meets default time delay condition;
If the date on the same day is not the default delay date, determine that the same day event argument does not meet default delay item Part.
Further, the determining module is also used to:
If the same day event argument meets default time delay condition, obtained and the default delay according to default mapping relations The corresponding delay duration of condition;
It is calculated according to the second preset time point and the delay duration corresponding with the default time delay condition Day cut time point.
Further, the batch processing device based on distributed environment further include:
Receiving module, for receive that the distributed child node executes after being switched to next day of trade ought everyday end After the implementing result of batch, the implementing result is sent to general ledger system to carry out general ledger task.
The present invention is based on the batch processing device specific embodiments of distributed environment and above-mentioned batch based on distributed environment Each embodiment of processing method is essentially identical, and details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium (i.e. medium).
The batch program based on distributed environment is stored on computer readable storage medium, based on distributed environment The step of batch processing method based on distributed environment as described above is realized when batch program is executed by processor.
Computer readable storage medium specific embodiment of the present invention and the above-mentioned batch processing method based on distributed environment Each embodiment is essentially identical, and details are not described herein.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, it is all using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, directly or indirectly Other related technical areas are used in, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of batch processing method based on distributed environment, which is characterized in that the batch processing side based on distributed environment Method the following steps are included:
The same day event argument under distributed environment is obtained, determines whether the same day event argument meets default time delay condition;
If the same day event argument meets default time delay condition, it is determined that when day corresponding with the default time delay condition cuts Between point;
To cut time point the day corresponding with the default time delay condition is sent to distributed child node, for the distribution Formula node is cutting time point progress trade date switching the day.
2. as described in claim 1 based on the batch processing method of distributed environment, which is characterized in that the distributed ring of the acquisition Same day event argument under border, before determining the step of whether same day event argument meets default time delay condition, further includes:
In the first preset time point, batch preceding detection instruction is issued to the distributed child node;
After detecting successfully feedback before receiving the characterization batch that the distributed child node returns, executes step: obtaining and divide Same day event argument under cloth environment, determines whether the same day event argument meets default time delay condition.
3. as described in claim 1 based on the batch processing method of distributed environment, which is characterized in that the distributed ring of the acquisition Same day event argument under border, after determining the step of whether same day event argument meets default time delay condition, further includes:
If the same day event argument does not meet default time delay condition, time point is cut using the second preset time point as day;
The second preset time point is sent to distributed child node, so that the distributed child node is default described second Time point carries out trade date switching.
4. as described in claim 1 based on the batch processing method of distributed environment, which is characterized in that the same day event argument Including the date on the same day, the same day event argument obtained under distributed environment determines whether the same day event argument meets The step of default time delay condition includes:
The date on the same day under distributed environment is obtained, judges whether the date on the same day is the default delay date;
If the date on the same day is the default delay date, determine that the same day event argument meets default time delay condition;
If the date on the same day is not the default delay date, determine that the same day event argument does not meet default time delay condition.
5. as described in claim 1 based on the batch processing method of distributed environment, which is characterized in that if the same day thing Part parameter meets default time delay condition, it is determined that the step of day corresponding with the default time delay condition cuts time point include:
If the same day event argument meets default time delay condition, obtained and the default time delay condition according to default mapping relations Corresponding delay duration;
Day corresponding with the default time delay condition is calculated according to the second preset time point and the delay duration Cut time point.
6. such as the batch processing method described in any one of claim 1 to 5 based on distributed environment, which is characterized in that described to incite somebody to action Cutting time point the day corresponding with the default time delay condition is sent to distributed child node, for the distribution formula section Point is after the step of cutting time point progress trade date switching the day, further includes:
Receive the distributed child node is executed after being switched to next day of trade ought everyday end batch implementing result Later, the implementing result is sent to general ledger system to carry out general ledger task.
7. a kind of batch processing system based on distributed environment, which is characterized in that the batch processing system based on distributed environment System includes:
Distributed management node determines that the same day event argument is for obtaining the same day event argument under distributed environment It is no to meet default time delay condition;If the same day event argument meets default time delay condition, it is determined that with the default delay item Part corresponding day cuts time point;To cut time point the day corresponding with the default time delay condition is sent to distribution formula Node, so that the distributed child node is cutting time point progress trade date switching the day;
Distributed child node, for receiving that the distributed management end sends, day corresponding with the default time delay condition is cut Time point, and cutting time point progress trade date switching the day.
8. a kind of batch processing device based on distributed environment, which is characterized in that the batch processing dress based on distributed environment It sets and includes:
It obtains module and determines whether the same day event argument meets for obtaining the same day event argument under distributed environment Default time delay condition;
Determining module, if meeting default time delay condition for the same day event argument, it is determined that with the default time delay condition Corresponding day cuts time point;
Switching module is sent to distribution formula section for will cut time point the day corresponding with the default time delay condition Point, so that the distributed child node is cutting time point progress trade date switching the day.
9. a kind of batch processing equipment based on distributed environment, which is characterized in that the batch processing based on distributed environment is set It is standby including memory, processor and be stored on the memory and can run on the processor based on distributed ring The batch program in border, it is described that such as claim is realized when being executed based on the batch program of distributed environment by the processor The step of batch processing method described in any one of 1-6 based on distributed environment.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium and be based on dividing The batch program of cloth environment is realized when the batch program based on distributed environment is executed by processor as right is wanted The step of seeking the batch processing method described in any one of 1-6 based on distributed environment.
CN201910518008.XA 2019-06-14 2019-06-14 Batch processing method, system, device, equipment and medium based on distributed environment Pending CN110263096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910518008.XA CN110263096A (en) 2019-06-14 2019-06-14 Batch processing method, system, device, equipment and medium based on distributed environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910518008.XA CN110263096A (en) 2019-06-14 2019-06-14 Batch processing method, system, device, equipment and medium based on distributed environment

Publications (1)

Publication Number Publication Date
CN110263096A true CN110263096A (en) 2019-09-20

Family

ID=67918460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910518008.XA Pending CN110263096A (en) 2019-06-14 2019-06-14 Batch processing method, system, device, equipment and medium based on distributed environment

Country Status (1)

Country Link
CN (1) CN110263096A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369333A (en) * 2020-02-28 2020-07-03 中国工商银行股份有限公司 Daily cutting cooperative processing method and system for distributed system
CN113761064A (en) * 2021-08-27 2021-12-07 成都质数斯达克科技有限公司 Block chain based daily cutting account checking method, device, equipment and readable storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09293104A (en) * 1996-04-25 1997-11-11 Hitachi Ltd Atm system and transaction method between different banks
CN1790416A (en) * 2004-12-17 2006-06-21 兴业银行股份有限公司 Data processing method and data processing system
WO2007071984A2 (en) * 2005-12-19 2007-06-28 Misys Plc Method and system for running a batch process
CN102567912A (en) * 2010-12-14 2012-07-11 中国移动通信集团湖南有限公司 Switching method of accounting date and business clearing and settlement system
US20120278293A1 (en) * 2011-04-26 2012-11-01 Bulkowski Brian J Real-time transaction scheduling in a distributed database
JP2016018348A (en) * 2014-07-08 2016-02-01 株式会社野村総合研究所 Job management method, job management system, and job management program
CN106649311A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Service data symbolization method and device
CN106981021A (en) * 2017-03-28 2017-07-25 中国工商银行股份有限公司 It is a kind of to realize the data processing method continuously serviced and device
CN108228659A (en) * 2016-12-22 2018-06-29 经贸联网科技股份有限公司 Dynamic update finance data and/or dynamic adjust the method and system of power configuration
WO2018120457A1 (en) * 2016-12-29 2018-07-05 平安科技(深圳)有限公司 Data processing method, apparatus, device, and computer readable storage medium
CN108509344A (en) * 2018-04-04 2018-09-07 深圳前海微众银行股份有限公司 Cut race batch test method, equipment and readable storage medium storing program for executing day
CN109598604A (en) * 2018-11-20 2019-04-09 中国银行股份有限公司 Day cuts judgment method and device
CN109741165A (en) * 2018-12-18 2019-05-10 中信百信银行股份有限公司 A kind of data processing method and electronic equipment of financial system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09293104A (en) * 1996-04-25 1997-11-11 Hitachi Ltd Atm system and transaction method between different banks
CN1790416A (en) * 2004-12-17 2006-06-21 兴业银行股份有限公司 Data processing method and data processing system
WO2007071984A2 (en) * 2005-12-19 2007-06-28 Misys Plc Method and system for running a batch process
CN102567912A (en) * 2010-12-14 2012-07-11 中国移动通信集团湖南有限公司 Switching method of accounting date and business clearing and settlement system
US20120278293A1 (en) * 2011-04-26 2012-11-01 Bulkowski Brian J Real-time transaction scheduling in a distributed database
JP2016018348A (en) * 2014-07-08 2016-02-01 株式会社野村総合研究所 Job management method, job management system, and job management program
CN106649311A (en) * 2015-10-28 2017-05-10 阿里巴巴集团控股有限公司 Service data symbolization method and device
CN108228659A (en) * 2016-12-22 2018-06-29 经贸联网科技股份有限公司 Dynamic update finance data and/or dynamic adjust the method and system of power configuration
WO2018120457A1 (en) * 2016-12-29 2018-07-05 平安科技(深圳)有限公司 Data processing method, apparatus, device, and computer readable storage medium
CN106981021A (en) * 2017-03-28 2017-07-25 中国工商银行股份有限公司 It is a kind of to realize the data processing method continuously serviced and device
CN108509344A (en) * 2018-04-04 2018-09-07 深圳前海微众银行股份有限公司 Cut race batch test method, equipment and readable storage medium storing program for executing day
CN109598604A (en) * 2018-11-20 2019-04-09 中国银行股份有限公司 Day cuts judgment method and device
CN109741165A (en) * 2018-12-18 2019-05-10 中信百信银行股份有限公司 A kind of data processing method and electronic equipment of financial system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
中国人民银行包头市中心支行营业部课题组;: "改进支付系统清算账户管理模式的思考", 华南金融电脑, no. 04, 10 April 2008 (2008-04-10) *
鹿玉红: "基于Linux的小额支付系统的架构分析", 《黑龙江科技信息》, no. 06, 25 February 2008 (2008-02-25) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111369333A (en) * 2020-02-28 2020-07-03 中国工商银行股份有限公司 Daily cutting cooperative processing method and system for distributed system
CN111369333B (en) * 2020-02-28 2023-08-29 中国工商银行股份有限公司 Day-cut cooperative processing method and system for distributed system
CN113761064A (en) * 2021-08-27 2021-12-07 成都质数斯达克科技有限公司 Block chain based daily cutting account checking method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109885399A (en) Data processing method, electronic device, computer equipment and storage medium
CN107025236A (en) Data processing method and data system for settling account between system for settling account
JPH03130842A (en) Simultaneous execution controller for data base system
CN107038645B (en) Service processing method, device and system and server
CN105654291A (en) Method and device for seamless electronic channel payment mode switching
CN106874130A (en) The processing method of distributed transaction in a kind of micro services framework
CN110263096A (en) Batch processing method, system, device, equipment and medium based on distributed environment
CN111160873A (en) Batch processing device and method based on distributed architecture
CN109584060A (en) Processing method, device and the computer equipment and storage medium of timing transaction task
CN111444213B (en) Ledger clearing system and method based on credit business
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
CN111259032A (en) Service processing method and device
CN116719623A (en) Job scheduling method, job result processing method and device
CN106157137A (en) The control method of a kind of bank account amount of money and device
CN115658320A (en) Service data processing method and related equipment
CN112508710B (en) Account checking system and corresponding computer equipment
CN110428314B (en) Asynchronous calling method and device for summary check subsystem and electronic equipment
CN114579654A (en) Unified operation management method and platform for multi-payment settlement system of bank
CN113436018A (en) Asset hosting business processing method and device, storage medium and electronic equipment
CN113469686B (en) Method, device, equipment and storage medium for adjusting business transaction amount
JP6890753B1 (en) Pooling management system, pooling management method and pooling management program
CN115134320B (en) Transaction system for determining time sequence based on message distribution
CN112036873B (en) Cross-line payment mode determining method and device
CN113792051B (en) Data processing method, system, equipment and storage medium based on multi-mode lock
CN110889751B (en) Enterprise fund pool management method, device, system, electronic equipment and readable medium

Legal Events

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