CN107909460A - Position synchronous method, equipment, data center and storage medium - Google Patents
Position synchronous method, equipment, data center and storage medium Download PDFInfo
- Publication number
- CN107909460A CN107909460A CN201711305674.2A CN201711305674A CN107909460A CN 107909460 A CN107909460 A CN 107909460A CN 201711305674 A CN201711305674 A CN 201711305674A CN 107909460 A CN107909460 A CN 107909460A
- Authority
- CN
- China
- Prior art keywords
- reconciliation
- flowing water
- synchronous
- node
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses the position synchronous method under a kind of distributed environment, including:By the first position pipeline sending of not synchronous in client trading node and non-reconciliation to backstage transaction node, and backstage transaction node is asked to carry out reconciliation one by one;Based on reconciliation one by one as a result, the synchronous regime and reconciliation state of the first position flowing water of renewal;To the successful second position flowing water of synchronous and reconciliation carries out batch reconciliation in client trading node and request backstage transaction node carries out batch reconciliation to the second position flowing water, first and second batch reconciliation result is obtained;If difference is not present in first and second batch reconciliation result, it is determined that completes the second position flowing water from client trading node to the synchronization of backstage transaction node.The invention also discloses a kind of position synchronizer, data center and readable storage medium storing program for executing.All position flowing water that the present invention realizes each client trading node under distributed environment can all be synchronized to the backstage transaction node of distal end and ensure synchronous two-way correctness.
Description
Technical field
The present invention relates in financial application technical field, more particularly to a kind of position synchronous method, equipment, distributed data
The heart and computer-readable recording medium.
Background technology
Existing financial transaction system is generally all to use centralized processing mode, that is to say, that all business unit bases
This all passes through the server providing services of one or more concentration.Although centralized service system can realize that multiple business are handed over
Easy synchronization, but centralized deployment framework is not easy to the extension of business, can not support the business service of magnanimity.
Seem to solve the problems, such as operation expanding using distributed deployment framework, however, in distributed business system,
All client tradings all occur on multiple and different servers, and the system that square position transaction is done with other financial institutions then exists
Occur on other server, simultaneously for for position management peace firm bargain, it is necessary to one concentration, can quickly calculate
The environment of position and strategy of determining deal, thus, it is necessary to will be dispersed in the position stream on each server under distributed environment
Water is accurate to be synchronized on the backstage trading server of a concentration.
The content of the invention
It is a primary object of the present invention to provide a kind of position synchronous method, equipment, distributive data center and computer
Readable storage medium storing program for executing, it is intended to solve the position flowing water that how will be dispersed on each server is accurate to be synchronized to a concentration
Backstage trading server on technical problem.
To achieve the above object, the present invention provides the position synchronous method under a kind of distributed environment, the distribution ring
Border has multiple data centers, and each data center includes a backstage transaction node, multiple client trading nodes, the head
Very little synchronous method comprises the following steps:
In epicycle position synchronization, by the first position stream of not synchronous in the selected client trading node and non-reconciliation
Water is sent to the backstage transaction node, and it is right one by one to ask the backstage transaction node to carry out the first position flowing water
Account;
The reconciliation one by one of the backstage transaction node return is received as a result, and based on the reconciliation one by one as a result, renewal institute
State synchronous regime of the first position flowing water in the client trading node and reconciliation state;
Batch reconciliation is carried out to the successful second position flowing water of synchronous and reconciliation in the client trading node, obtains the
Batch reconciliation is as a result, and ask the backstage transaction node to carry out batch reconciliation to the second position flowing water;
The second batch reconciliation that the backstage transaction node returns is received as a result, and judging the first batch reconciliation result
Whether had differences with the second batch reconciliation result, if not, it is determined that complete the second position flowing water from the client
Synchronization of the transaction node to the backstage transaction node.
Alternatively, it is described to be based on the reconciliation one by one as a result, renewal the first position flowing water is in the client trading section
Synchronous regime in point includes with reconciliation state:
When the result of reconciliation one by one is consistent with the first position flowing water, by the synchronization of the first position flowing water
State is updated to synchronous, reconciliation success respectively with reconciliation state;
When the result of reconciliation one by one and the first position flowing water are inconsistent, by the same of the first position flowing water
Step state is updated to not synchronous, non-reconciliation respectively with reconciliation state.
Alternatively, the position synchronous method further includes:
, will position stream corresponding with the situation when not receiving the result of reconciliation one by one that the backstage transaction node returns
Water is added in next round position synchronization.
Alternatively, the position synchronous method further includes:
It is in synchronous perform or not synchronous and synchronization shape to monitor in the client trading node with the presence or absence of synchronous regime
The state duration exceedes the position flowing water of preset time period, if in the presence of sending alarm to outside.
Alternatively, it is described to the successful second position flowing water of synchronous and reconciliation carries out batch in the client trading node
Reconciliation includes:
When the synchronous and successful position flowing water of reconciliation reaches preset batch reconciliation benchmark in the client trading node
When, the new global reconciliation code of generation one;
Position flowing water corresponding with the batch reconciliation benchmark is carried out as the second position flowing water and with the reconciliation code
Association, and pair the second position flowing water progress netting processing associated with the reconciliation code.
Alternatively, the request backstage transaction node carries out batch reconciliation to the second position flowing water includes:
The backstage transaction node pair is asked to carry out netting processing with the associated second position flowing water of the reconciliation code, its
In, the first batch reconciliation result and the phase for including the second position flowing water in the second batch reconciliation result respectively
Close summary information.
Alternatively, complete to communicate by messaging bus between the client trading node and the backstage transaction node.
Further, to achieve the above object, the present invention also provides a kind of position synchronizer, the position synchronizer
Including memory, processor and it is stored in the position synchronization program that can be run on the memory and on the processor, institute
State and realized when position synchronization program is performed by the processor such as the step of above-mentioned any one of them position synchronous method.
Further, to achieve the above object, the present invention also provides a kind of distributive data center, data center's bag
Include a backstage transaction node, multiple client trading nodes;
The client trading node includes position synchronizer as described above, and the position synchronizer is total by message
Line mode communicates with the backstage transaction node;
The backstage transaction node, is asked for receiving the position flowing water that the position synchronizer is sent with reconciliation, with
And perform and handled with the corresponding reconciliation of reconciliation request and return to reconciliation handling result.
Further, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer
Position synchronization program is stored with readable storage medium storing program for executing, is realized when the position synchronization program is performed by the processor as above-mentioned
The step of any one of them position synchronous method.
In the present invention, carry out position flowing water it is synchronous when, to ensure the correctness of synchronous position flowing water, carry out first by
Bar reconciliation, so that it is guaranteed that each nib cun flowing water of synchronous initiator (client trading node) be all synchronized to recipient (after
Platform transaction node);Then batch reconciliation is carried out again, so that it is guaranteed that the received synchronous head of synchronous recipient's (backstage transaction node) institute
Very little flowing water is consistent with the position flowing water in initiator's (client trading node), by foregoing reconciliation one by one and batch reconciliation, and then
Ensure that all position flowing water of each client trading node all normal synchronized to distal end backstage transaction node, and really
It is synchronously two-way correct to protect position.
Brief description of the drawings
Fig. 1 is the structure diagram for the device hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the high-level schematic functional block diagram of one embodiment of distributive data center of the present invention;
Fig. 3 is the flow diagram of one embodiment of position synchronous method of the present invention.
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.
Embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
As shown in Figure 1, the structure diagram for the device hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Position of embodiment of the present invention synchronizer can be the equipment such as PC hosts, server, be applied particularly to distributed ring
Border.The distributed environment has multiple data centers, and each data center includes a backstage transaction node, multiple clients hand over
Easy node.
As shown in Figure 1, the position synchronizer can include:Processor 1001, such as CPU, communication bus 1002, user
Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used for realization the connection between these components
Communication.User interface 1003 can 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 can optionally include having for standard
Line interface, wave point (such as WI-FI interfaces).Memory 1005 can be the storage of high-speed RAM memory or stabilization
Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing
The storage device of device 1001.
It will be understood by those skilled in the art that the hardware configuration of the position synchronizer shown in Fig. 1 does not form enemy
The restriction of very little synchronizer, can include than illustrating more or fewer components, either combine some components or different portions
Part is arranged.
As shown in Figure 1, as in a kind of memory 1005 of computer-readable recording medium can include operating system, net
Network communication module, Subscriber Interface Module SIM and position synchronization program.Wherein, operating system is management and control position synchronizer
With the program of software resource, network communication module, Subscriber Interface Module SIM, position synchronization program and other programs or software are supported
Operation;Network communication module is used to managing and controlling network interface 1002;Subscriber Interface Module SIM is used to managing and controlling user
Interface 1003.
In the position synchronizer hardware configuration shown in Fig. 1, network interface 1004 is mainly used for connecting system background, with
System background is into row data communication;User interface 1003 is mainly used for connecting client (user terminal), and data are carried out with client
Communication;Position synchronizer calls the position synchronization program stored in memory 1005 by processor 1001, and performs following
Step:
In epicycle position synchronization, the first position flowing water of not synchronous in selected client trading node and non-reconciliation is sent out
Send to backstage transaction node, and ask backstage transaction node to carry out reconciliation one by one to the first position flowing water;
The reconciliation one by one of backstage transaction node return is received as a result, and based on reconciliation one by one as a result, the first position stream of renewal
Synchronous regime of the water in client trading node and reconciliation state;
To the successful second position flowing water of synchronous and reconciliation carries out batch reconciliation in client trading node, first is obtained
Reconciliation is measured as a result, and asking backstage transaction node to carry out batch reconciliation to the second position flowing water;
The second batch reconciliation that backstage transaction node returns is received as a result, and judging the first batch reconciliation result and second batch
Whether amount reconciliation result has differences, if not, it is determined that completes the second position flowing water from client trading node to backstage transaction section
The synchronization of point.
Further, the position synchronizer calls the position stored in memory 1005 synchronous by processor 1001
Program, to perform following operation:
When reconciliation result is consistent with the first position flowing water one by one, by the synchronous regime of the first position flowing water and reconciliation shape
State is updated to synchronous, reconciliation success respectively;
When reconciliation result is inconsistent with the first position flowing water one by one, by the synchronous regime of the first position flowing water and reconciliation
State is updated to not synchronous, non-reconciliation respectively.
Further, the position synchronizer calls the position stored in memory 1005 synchronous by processor 1001
Program, to perform following operation:
When not receiving the result of reconciliation one by one that backstage transaction node returns, position flowing water corresponding with the situation is added
Enter in next round position synchronization.
Further, the position synchronizer calls the position stored in memory 1005 synchronous by processor 1001
Program, to perform following operation:
With the presence or absence of synchronous regime in synchronous perform or the synchronous and synchronous regime is not held in monitoring client trading node
The continuous time exceedes the position flowing water of preset time period, if in the presence of sending alarm to outside.
Further, the position synchronizer calls the position stored in memory 1005 synchronous by processor 1001
Program, to perform following operation:
It is raw when the synchronous and successful position flowing water of reconciliation reaches preset batch reconciliation benchmark in client trading node
The global reconciliation code of Cheng Yixin;
Position flowing water corresponding with batch reconciliation benchmark is associated as the second position flowing water and with reconciliation code, and
Pair carry out netting processing with the associated second position flowing water of reconciliation code.
Further, the position synchronizer calls the position stored in memory 1005 synchronous by processor 1001
Program, to perform following operation:
Backstage transaction node pair is asked to carry out netting processing with the associated second position flowing water of reconciliation code, wherein, first
Measure related summary information of the reconciliation result to including the second position flowing water in the second batch reconciliation result respectively.
With reference to Fig. 2, Fig. 2 is the high-level schematic functional block diagram of one embodiment of distributive data center of the present invention.
In the present embodiment, the data center based on distributed deployment framework includes:One backstage transaction node 10, Duo Geke
Family transaction node 20.Backstage transaction node 10 is the server for being provided with backstage transaction system, and client trading node 20 is installation
There is the server of client transaction system.
Wherein, position synchronizer 30 is equipped with each client trading node 20.Each client trading node 20 passes through position
Synchronizer 30 carries out position synchronization process with backstage transaction node 10, and very little synchronizer 30 passes through messaging bus mode and backstage
Transaction node 10 communicates.
In the present embodiment, the position flowing water that backstage transaction node 10 is used to receive the transmission of position synchronizer 30 please with reconciliation
Ask, and perform and handled with the corresponding reconciliation of reconciliation request and return to reconciliation handling result.
In the present embodiment, when carrying out the synchronization of position flowing water, to ensure the correctness of synchronous position flowing water, carry out first
Reconciliation one by one, so that it is guaranteed that each nib cun flowing water of synchronous initiator's (client trading node 20) has all been synchronized to recipient
(backstage transaction node 10);Then batch reconciliation is carried out again, so that it is guaranteed that synchronous recipient's (backstage transaction node 10) is received
Synchronous position flowing water it is consistent with the position flowing water in initiator's (client trading node 20), pass through foregoing reconciliation one by one and batch
Reconciliation, and then ensure that all position flowing water of each client trading node all the backstage of normal synchronized to distal end has been merchandised section
Point, and ensure that position is synchronously two-way correct.
Based on above-mentioned hardware configuration, each embodiment of the position synchronous method under distributed environment of the present invention is proposed.
With reference to Fig. 3, Fig. 3 is the flow diagram of one embodiment of position synchronous method of the present invention.In the present embodiment, the head
Very little synchronous method comprises the following steps:
Step S10, in epicycle position synchronization, by first of not synchronous in selected client trading node and non-reconciliation
Very little pipeline sending asks backstage transaction node to carry out reconciliation one by one to the first position flowing water to backstage transaction node;
In the present embodiment, since the position flowing water produced on each client trading node 20 is more and dynamic change, namely
Each nib cun flowing water on client trading node 20 disposably can not be synchronized to backstage transaction node 10, therefore, adopted
The synchronous 100 nib cun stream of position synchronization, the subsynchronous a small amount of position flowing water of each round, such as each round is carried out with more round modes
Water.
In the present embodiment, position is synchronously not only shown in the transfer of data, while is also manifested by the data of transfer just
In true property.To ensure synchronous accuracy of the position flowing water from client trading node 20 to backstage transaction node 10, therefore, this implementation
Example is especially by carrying out the mode of reconciliation to realize following purpose:
Purpose one:Ensure that all position flowing water of synchronous initiator are all already sent to recipient;
Purpose two:Ensure recipient received all position flowing water it is consistent with the position flowing water of initiator.
In the present embodiment, in a wheel position synchronization, in the client trading node 20 that position synchronizer 30 will be selected not
The first position flowing water (including more different position flowing water) of synchronous and non-reconciliation is sent to backstage transaction node 10, and is asked
Backstage transaction node 10 carries out reconciliation one by one to the first position flowing water, so as to realize above-mentioned purpose one.
In this example, reconciliation one by one specifically refers to backstage transaction node 10 and docks received each nib cun flowing water according to one
Fixed order carries out reconciliation one by one, and unlimited for the concrete mode and content of reconciliation, for example checks the production of each nib cun flowing water
Raw time, journal entry, flowing water amount of money etc., and generate the reconciliation result of each nib cun flowing water.
Step S20, receives reconciliation one by one that backstage transaction node returns as a result, and based on reconciliation one by one as a result, renewal the
Synchronous regime of the one position flowing water in client trading node and reconciliation state;
In the present embodiment, position synchronizer 30 receives the reconciliation one by one of the return of backstage transaction node 10 as a result, and being based on
This one by one reconciliation as a result, synchronous regime of the first position flowing water of renewal in client trading node 20 and reconciliation state.Such as will
Synchronous regime is synchronous by not being changed to synchronously, and reconciliation state is changed to reconciliation success by non-reconciliation.
Step S30, to the successful second position flowing water of synchronous and reconciliation carries out batch reconciliation in client trading node, obtains
To the first batch reconciliation as a result, and request backstage transaction node to the second position flowing water carry out batch reconciliation, and receive backstage
The second batch reconciliation that transaction node returns is as a result, wherein, the first position flowing water includes the second position flowing water;
Step S40, judges whether the first batch reconciliation result has differences with the second batch reconciliation result;
Step S50, if so, then sending alarm to outside;
Step S60, if not, it is determined that complete the second position flowing water from client trading node to the same of backstage transaction node
Step.
In the present embodiment, the synchronous and successful second position flowing water of reconciliation is to have met in client trading node
Purpose one is stated, therefore, further to achieve the above object two, the present embodiment specifically uses batch reconciliation mode, specifically includes:
First, position synchronizer 30 to the synchronous and successful second position flowing water of reconciliation in client trading node 20 into
Row batch reconciliation, obtains the first batch reconciliation result;
Second, the request backstage transaction node 10 of position synchronizer 30 docks received second position flowing water and similarly carries out
Batch reconciliation, and receive the second batch reconciliation result of the return of backstage transaction node 10;
The present embodiment is unlimited for the mode of batch reconciliation, for example all position flowing water are carried out collecting reconciliation, and position is same
Whether step equipment 30 is had differences by both comparisons batch reconciliation result can determine that whether position synchronously realizes above-mentioned mesh
Two.
If the first batch reconciliation result has differences with the second batch reconciliation result, alarm is sent, and then by being manually situated between
Enter and checked and fixed a breakdown;And if difference is not present with the second batch reconciliation result in the first batch reconciliation result, illustrate
The second position flowing water meets above-mentioned purpose one, purpose two at the same time, namely ensure that position flowing water from client trading node 20
The two-way correctness synchronized to backstage transaction node 10.
In the present embodiment, when carrying out the synchronization of position flowing water, to ensure the correctness of synchronous position flowing water, carry out first
Reconciliation one by one, so that it is guaranteed that each nib cun flowing water of synchronous initiator's (client trading node) has all been synchronized to recipient
(backstage transaction node);Then batch reconciliation is carried out again, so that it is guaranteed that synchronous recipient's (backstage transaction node) institute is received same
It is consistent with the position flowing water in initiator's (client trading node) to walk position flowing water, by foregoing reconciliation one by one and batch reconciliation,
And then ensure that all position flowing water of each client trading node all normal synchronized to distal end backstage transaction node, and
And ensure that position is synchronously two-way correct.
Optionally, in another embodiment of position synchronous method of the present invention, reconciliation result specifically includes following three classes one by one
Situation:
Situation one:Reconciliation result is consistent with the corresponding position flowing water in the first position flowing water one by one
Under such situation, position synchronizer 30 by the first position flowing water with the corresponding position stream of reconciliation result one by one
The synchronous regime of water is updated to synchronous, reconciliation success respectively with reconciliation state;
Situation two:Reconciliation result and the corresponding position flowing water in the first position flowing water are inconsistent one by one
Under such situation, position synchronizer 30 by the first position flowing water with the corresponding position stream of reconciliation result one by one
The synchronous regime of water is updated to not synchronous, non-reconciliation respectively with reconciliation state;
Situation three:Reconciliation result does not return to reconciliation result one by one for sky, namely backstage transaction node 10 one by one
Under such situation, position synchronizer 30 is by under position flowing water addition corresponding with the situation in the first position flowing water
In one wheel position synchronization, for continuing that position is synchronous until the position flowing water realizes true synchronization, namely until the position
Untill the synchronous regime of flowing water is updated to synchronous, reconciliation success respectively with reconciliation state.
In addition, in another embodiment, there are anomalous event to influence synchronous efficiency to avoid in synchronizing process, therefore:
Optionally, position synchronizer 30 is monitored in client trading node 20 with the presence or absence of synchronous regime as in synchronous perform
Or the not synchronous and synchronous regime duration exceedes the position flowing water of preset time period, if in the presence of, alarm is sent to outside,
Such as notice operation maintenance personnel manpower intervention.
It is further alternative, in one embodiment of position synchronous method of the present invention, in above-mentioned steps S30:Position is synchronous
Equipment 30 specifically includes the successful second position flowing water progress batch reconciliation of synchronous and reconciliation in client trading node following
Step:
Step S1, when the synchronous and successful position flowing water of reconciliation reaches preset batch reconciliation base in client trading node
On time, the new global reconciliation code of generation one;
Step S2, position flowing water corresponding with batch reconciliation benchmark is closed as the second position flowing water and with reconciliation code
Connection, and pair the second position flowing water progress netting processing associated with reconciliation code.
In the present embodiment, to ensure position synchronizer 30 and the reconciliation mark when performing batch reconciliation of backstage transaction node 10
Accurate unification, therefore, preset batch reconciliation benchmark, such as using preset time span as batch reconciliation benchmark, or with preset
Position flowing water quantity be batch reconciliation benchmark.
In the present embodiment, especially by setting global reconciliation code to be associated, a reconciliation code corresponds to more nib cun flowing water.
For example, using 100 nib cun flowing water as batch reconciliation benchmark, and set a reconciliation code to be associated with the 100 nib cun flowing water;Or
Using the position flowing water produced in a hour as batch reconciliation benchmark, and set what is produced in hour of a reconciliation code and this
Position flowing water associates.
Optionally, position synchronizer 30 is carrying out netting processing to the associated position flowing water of a reconciliation code, obtains the
While batch reconciliation result, further ask backstage transaction node 10 same to the position flowing water associated by identical reconciliation code
Netting processing is carried out, obtains the second batch reconciliation as a result, finally by the first batch reconciliation result of comparison and the second batch reconciliation
As a result whether have differences, if being not present, it is determined that complete the associated second position flowing water of the reconciliation code from client trading node
20 arrive the synchronization of backstage transaction node 10, and it is right to mark the associated position flowing water of the reconciliation code to be successfully completed batch automatically
Account.
The related summary information of the corresponding second position flowing water of reconciliation code can be obtained by being handled by netting, such as total receipts
Enter the amount of money, amount paid, total evidence for payment information etc..Repeatedly rolled if being done respectively for identical more nib cun flowing water
Difference, then the summary information obtained every time must be identical, if it is different, then illustrate that the corresponding position flowing water of different nettings is different, base
In this can be used to judge position flowing water that backstage transaction node 10 receives whether with initiator's (client trading node 20)
Position flowing water it is consistent.
The present invention also provides a kind of computer-readable recording medium applied to position synchronizer.
Position synchronization program is stored with computer-readable recording medium, it is real when which is executed by processor
Step in existing above-mentioned position synchronous method any embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much
Form, every equivalent structure or equivalent flow shift made using description of the invention and accompanying drawing content, directly or indirectly
Other related technical areas are used in, these are belonged within the protection of the present invention.
Claims (10)
1. the position synchronous method under a kind of distributed environment, it is characterised in that the distributed environment has multiple data
Center, each data center include a backstage transaction node, multiple client trading nodes, the position synchronous method include with
Lower step:
In epicycle position synchronization, the first position flowing water of not synchronous in the selected client trading node and non-reconciliation is sent out
Send to the backstage transaction node, and ask the backstage transaction node to carry out reconciliation one by one to the first position flowing water;
The reconciliation one by one that the backstage transaction node returns is received as a result, and based on the reconciliation one by one as a result, renewal described the
Synchronous regime of the one position flowing water in the client trading node and reconciliation state;
To the successful second position flowing water of synchronous and reconciliation carries out batch reconciliation in the client trading node, first is obtained
Reconciliation is measured as a result, and asking the backstage transaction node to carry out batch reconciliation to the second position flowing water;
The second batch reconciliation that the backstage transaction node returns is received as a result, and judging the first batch reconciliation result and institute
State whether the second batch reconciliation result has differences, if not, it is determined that complete the second position flowing water from the client trading
Synchronization of the node to the backstage transaction node.
2. position synchronous method as claimed in claim 1, it is characterised in that described to be based on the reconciliation one by one as a result, renewal
Synchronous regime of the first position flowing water in the client trading node includes with reconciliation state:
When the result of reconciliation one by one is consistent with the first position flowing water, by the synchronous regime of the first position flowing water
Synchronous, reconciliation success is updated to respectively with reconciliation state;
When the result of reconciliation one by one and the first position flowing water are inconsistent, by the synchronous shape of the first position flowing water
State is updated to not synchronous, non-reconciliation respectively with reconciliation state.
3. position synchronous method as claimed in claim 1, it is characterised in that the position synchronous method further includes:
When not receiving the result of reconciliation one by one that the backstage transaction node returns, position flowing water corresponding with the situation is added
Enter in next round position synchronization.
4. position synchronous method as claimed in claim 1, it is characterised in that the position synchronous method further includes:
Monitor in the client trading node with the presence or absence of synchronous regime as in synchronous perform or the synchronous and synchronous regime is not held
The continuous time exceedes the position flowing water of preset time period, if in the presence of sending alarm to outside.
5. the position synchronous method as any one of claim 1-4, it is characterised in that described to the client trading section
The successful second position flowing water progress batch reconciliation of synchronous and reconciliation includes in point:
It is raw when the synchronous and successful position flowing water of reconciliation reaches preset batch reconciliation benchmark in the client trading node
The global reconciliation code of Cheng Yixin;
Position flowing water corresponding with the batch reconciliation benchmark is associated as the second position flowing water and with the reconciliation code,
And pair the second position flowing water progress netting processing associated with the reconciliation code.
6. position synchronous method as claimed in claim 5, it is characterised in that the request backstage transaction node is to described
Second position flowing water, which carries out batch reconciliation, to be included:
The backstage transaction node pair is asked to carry out netting processing with the associated second position flowing water of the reconciliation code, wherein, institute
The first batch reconciliation result is stated to including the related remittance of the second position flowing water in the second batch reconciliation result respectively
Total information.
7. position synchronous method as claimed in claim 1, it is characterised in that the client trading node is merchandised with the backstage
Complete to communicate by messaging bus between node.
8. a kind of position synchronizer, it is characterised in that the position synchronizer includes memory, processor and is stored in institute
The position synchronization program that can be run on memory and on the processor is stated, the position synchronization program is held by the processor
The step of position synchronous method as any one of claim 1 to 7 is realized during row.
9. a kind of distributive data center, it is characterised in that the data center includes a backstage transaction node, multiple clients
Transaction node;
The client trading node includes position synchronizer as claimed in claim 8, and the position synchronizer is by disappearing
Breath bus mode communicates with the backstage transaction node;
The backstage transaction node, is asked for receiving the position flowing water that the position synchronizer is sent with reconciliation, and is held
Row handles with the corresponding reconciliation of reconciliation request and returns to reconciliation handling result.
10. a kind of computer-readable recording medium, it is characterised in that it is same to be stored with position on the computer-readable recording medium
Program is walked, the position as any one of claim 1 to 7 is realized when the position synchronization program is performed by the processor
The step of synchronous method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711305674.2A CN107909460B (en) | 2017-12-11 | 2017-12-11 | Position synchronization method, device, data center and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711305674.2A CN107909460B (en) | 2017-12-11 | 2017-12-11 | Position synchronization method, device, data center and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107909460A true CN107909460A (en) | 2018-04-13 |
CN107909460B CN107909460B (en) | 2022-01-11 |
Family
ID=61854140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711305674.2A Active CN107909460B (en) | 2017-12-11 | 2017-12-11 | Position synchronization method, device, data center and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107909460B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114070845A (en) * | 2021-11-11 | 2022-02-18 | 中国银行股份有限公司 | Method and device for cooperatively submitting transaction information |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710410A (en) * | 2009-10-28 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and system for checking accounting data |
EP2309389A1 (en) * | 2009-10-09 | 2011-04-13 | Amadeus s.a.s | Delivery with reconciliation on client side |
CN105279693A (en) * | 2015-11-13 | 2016-01-27 | 中国建设银行股份有限公司 | Method for maintaining interbank transaction accounting consistency and system thereof |
CN105338093A (en) * | 2015-11-16 | 2016-02-17 | 中国建设银行股份有限公司 | Data synchronizing method and system |
CN106097092A (en) * | 2016-06-07 | 2016-11-09 | 中国建设银行股份有限公司 | Data processing method and device for reconciliation |
CN106355784A (en) * | 2016-08-24 | 2017-01-25 | 南京紫津融畅信息科技服务有限公司 | Clearing and reconciliation method and system used for ATM equipment |
CN106447475A (en) * | 2016-08-30 | 2017-02-22 | 重庆好乐视网络科技有限公司 | Automatic batch checking method and system |
-
2017
- 2017-12-11 CN CN201711305674.2A patent/CN107909460B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2309389A1 (en) * | 2009-10-09 | 2011-04-13 | Amadeus s.a.s | Delivery with reconciliation on client side |
CN101710410A (en) * | 2009-10-28 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and system for checking accounting data |
CN105279693A (en) * | 2015-11-13 | 2016-01-27 | 中国建设银行股份有限公司 | Method for maintaining interbank transaction accounting consistency and system thereof |
CN105338093A (en) * | 2015-11-16 | 2016-02-17 | 中国建设银行股份有限公司 | Data synchronizing method and system |
CN106097092A (en) * | 2016-06-07 | 2016-11-09 | 中国建设银行股份有限公司 | Data processing method and device for reconciliation |
CN106355784A (en) * | 2016-08-24 | 2017-01-25 | 南京紫津融畅信息科技服务有限公司 | Clearing and reconciliation method and system used for ATM equipment |
CN106447475A (en) * | 2016-08-30 | 2017-02-22 | 重庆好乐视网络科技有限公司 | Automatic batch checking method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114070845A (en) * | 2021-11-11 | 2022-02-18 | 中国银行股份有限公司 | Method and device for cooperatively submitting transaction information |
CN114070845B (en) * | 2021-11-11 | 2024-04-16 | 中国银行股份有限公司 | Method and device for cooperatively reporting transaction information |
Also Published As
Publication number | Publication date |
---|---|
CN107909460B (en) | 2022-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7456450B2 (en) | Large scale node configuration management for MaaS platforms | |
CN108197913A (en) | Method of payment, system and computer readable storage medium based on block chain | |
JP2001084320A (en) | Workflow management system | |
JP2004513431A (en) | Collaborative management of distributed network cache | |
CN107105477A (en) | Share the method and apparatus of feedback or excitation information for providing WAP | |
CN102365642A (en) | Verifiable device assisted service usage billing with integrated accounting, mediation accounting, and multi-account | |
CN107657522B (en) | A kind of construction site labour and capital management method | |
CN108564277A (en) | See room method for processing business, device, equipment and readable storage medium storing program for executing | |
CN104429054A (en) | Wi-fi hot-spot networking ecommerce | |
CN106878236A (en) | A kind of user's request processing method and equipment | |
CN106130753A (en) | Application performance data gathering system, method, agent client and associated server | |
WO2019042115A1 (en) | Hotspot leasing method and device | |
CN108022090A (en) | Virtual account management method, equipment, system and readable storage medium storing program for executing | |
CN105023049A (en) | On-line seat-picking method and system, and overload protection device | |
CN109391482A (en) | The upgrade method and updating and management entity of network function | |
CN110166536A (en) | A kind of cloud mobile phone cross-region control method, system, device and storage medium | |
TWI602132B (en) | Multivariate barrel gas fleet distribution system and method | |
CN109657952A (en) | Distribution method, device and the storage medium of client | |
CN110910089A (en) | Intelligent community work order processing method and device, server and system | |
CN109146398A (en) | A kind of digitlization building operation management method, device, system and storage medium | |
CN107909460A (en) | Position synchronous method, equipment, data center and storage medium | |
CN109474902A (en) | Message message accounting, method, terminal and system | |
CN108064059A (en) | A kind of method of resource allocation, medium and equipment | |
CN109428733A (en) | A kind of method and device orienting charge on traffic | |
CN110474976A (en) | A kind of message transfer method, apparatus, storage medium and system applied to automatic vending equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |