CN107909460B - Position synchronization method, device, data center and storage medium - Google Patents

Position synchronization method, device, data center and storage medium Download PDF

Info

Publication number
CN107909460B
CN107909460B CN201711305674.2A CN201711305674A CN107909460B CN 107909460 B CN107909460 B CN 107909460B CN 201711305674 A CN201711305674 A CN 201711305674A CN 107909460 B CN107909460 B CN 107909460B
Authority
CN
China
Prior art keywords
reconciliation
synchronization
batch
transaction node
node
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.)
Active
Application number
CN201711305674.2A
Other languages
Chinese (zh)
Other versions
CN107909460A (en
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 CN201711305674.2A priority Critical patent/CN107909460B/en
Publication of CN107909460A publication Critical patent/CN107909460A/en
Application granted granted Critical
Publication of CN107909460B publication Critical patent/CN107909460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The invention discloses a position synchronization method under a distributed environment, which comprises the following steps: sending a first unsynchronized and unsettled position stream in the client transaction node to a background transaction node, and requesting the background transaction node to perform item-by-item reconciliation; updating the synchronization state and the account checking state of the first dimension running water based on the item-by-item account checking result; performing batch reconciliation on the second position running water which is synchronized and successfully reconciled in the client transaction nodes and requesting the background transaction node to perform batch reconciliation on the second position running water to obtain first and second batch reconciliation results; and if the first batch account checking result and the second batch account checking result are not different, determining to finish the synchronization of the second position flow from the client transaction node to the background transaction node. The invention also discloses position synchronization equipment, a data center and a readable storage medium. The invention realizes that all position running water of each client transaction node can be synchronized to the remote background transaction node under the distributed environment and ensures the bidirectional correctness of synchronization.

Description

Position synchronization method, device, data center and storage medium
Technical Field
The invention relates to the technical field of financial application, in particular to a position synchronization method, position synchronization equipment, a distributed data center and a computer readable storage medium.
Background
Existing financial transaction systems generally employ centralized processing, i.e., all business units are serviced substantially by one or more centralized servers. Although the centralized service system can realize synchronization of multiple service transactions, the centralized deployment architecture is inconvenient for service expansion and cannot support massive service services.
However, in the distributed business system, all client transactions occur on a plurality of different servers, while the system performing the flat-disk transaction with other financial institutions occurs on another server, and for position management and flat-disk transaction, a centralized environment capable of rapidly calculating positions and determining transaction strategies is required, so that in the distributed environment, the position stream distributed on each server needs to be accurately synchronized to a centralized background transaction server.
Disclosure of Invention
The invention mainly aims to provide a position synchronization method, a position synchronization device, a distributed data center and a computer readable storage medium, and aims to solve the technical problem of accurately synchronizing positions scattered on various servers to a centralized background transaction server.
In order to achieve the above object, the present invention provides a position synchronization method in a distributed environment, where a plurality of data centers are arranged in the distributed environment, each data center includes a background transaction node and a plurality of client transaction nodes, and the position synchronization method includes the following steps:
in the position synchronization of the round, sending a first position flow which is not synchronized and checked in the selected client trading nodes to the background trading node, and requesting the background trading node to perform one-by-one account checking on the first position flow;
receiving a one-by-one reconciliation result returned by the background transaction node, and updating the synchronization state and the reconciliation state of the first dimension flow in the client transaction node based on the one-by-one reconciliation result;
performing batch reconciliation on a second position flow which is synchronized and successfully reconciled in the customer transaction nodes to obtain a first batch reconciliation result, and requesting the background transaction nodes to perform batch reconciliation on the second position flow;
and receiving a second batch account checking result returned by the background transaction node, judging whether the first batch account checking result is different from the second batch account checking result, and if not, determining that the second position flow is synchronized from the client transaction node to the background transaction node.
Optionally, the updating the synchronization status and the reconciliation status of the first position flow in the customer transaction node based on the itemized reconciliation result comprises:
when the item-by-item reconciliation result is consistent with the first dimension running water, respectively updating the synchronization state and the reconciliation state of the first dimension running water to be synchronized and the reconciliation is successful;
and when the item-by-item reconciliation result does not accord with the first dimension running water, updating the synchronous state and the reconciliation state of the first dimension running water into unsynchronized state and non-reconciliation state respectively.
Optionally, the position synchronization method further includes:
and when the one-by-one reconciliation result returned by the background transaction node is not received, adding the position stream corresponding to the situation into the next position synchronization.
Optionally, the position synchronization method further includes:
and monitoring whether a position stream exists in the customer transaction node, wherein the synchronous state is in synchronous execution or not, and the synchronous state duration time exceeds a preset time length, and if so, sending an alarm to the outside.
Optionally, the batch reconciliation on the second position flow which is synchronized and successfully reconciled in the customer transaction node comprises:
when the position flow of the client transaction nodes which are synchronized and successfully checked reaches the preset batch checking reference, generating a new global checking code;
and taking the position running water corresponding to the batch reconciliation benchmark as a second position running water, associating the position running water with the reconciliation code, and performing pad difference processing on the second position running water associated with the reconciliation code.
Optionally, the requesting the background transaction node to perform batch reconciliation on the second position flow comprises:
requesting the background transaction node to perform pad difference processing on a second position flow associated with the account checking code, wherein the first batch account checking result and the second batch account checking result respectively contain related summary information of the second position flow.
Optionally, the client transaction node and the background transaction node complete communication through a message bus.
Further, to achieve the above object, the present invention also provides a position synchronization apparatus, which includes a memory, a processor, and a position synchronization program stored in the memory and operable on the processor, wherein the position synchronization program, when executed by the processor, implements the steps of the position synchronization method according to any one of the above.
Further, in order to achieve the above object, the present invention further provides a distributed data center, where the data center includes a background transaction node and a plurality of client transaction nodes;
the client transaction node comprises the position synchronization equipment, and the position synchronization equipment is communicated with the background transaction node in a message bus mode;
and the background transaction node is used for receiving the position flow and account checking request sent by the position synchronization equipment, executing account checking processing corresponding to the account checking request and returning an account checking processing result.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having a position synchronization program stored thereon, the position synchronization program, when executed by the processor, implementing the steps of the position synchronization method according to any one of the above.
In the invention, when position stream synchronization is carried out, in order to ensure the correctness of the synchronized position stream, account checking is carried out one by one firstly, thereby ensuring that each point of the position stream of a synchronization initiator (a client transaction node) is synchronized to a receiver (a background transaction node); and then batch reconciliation is carried out, so that the synchronous position flow received by the synchronous receiving party (background trading node) is ensured to be consistent with the position flow in the initiating party (client trading node), and all the position flow of each client trading node is ensured to be normally synchronized to the remote background trading node through the one-by-one reconciliation and the batch reconciliation, and the position synchronization is ensured to be correct in two directions.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment of a device according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of an embodiment of a distributed data center of the present invention;
FIG. 3 is a flowchart illustrating a position synchronization method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of the present invention.
The position synchronization equipment in the embodiment of the invention can be equipment such as a PC host, a server and the like, and is particularly applied to a distributed environment. A plurality of data centers are arranged under the distributed environment, and each data center comprises a background transaction node and a plurality of client transaction nodes.
As shown in fig. 1, the position synchronization apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the hardware configuration of the position synchronization device shown in FIG. 1 does not constitute a limitation of the position synchronization device, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a position synchronization program. The operating system is a program for managing and controlling position synchronization equipment and software resources, and supports the running of a network communication module, a user interface module, a position synchronization program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the hardware structure of the position synchronization device shown in fig. 1, the network interface 1004 is mainly used for connecting to a system background and performing data communication with the system background; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the position synchronization apparatus calls the position synchronization program stored in the memory 1005 through the processor 1001, and performs the following steps:
in the position synchronization of the round, sending a first position flow which is not synchronized and checked in the selected customer transaction nodes to a background transaction node, and requesting the background transaction node to check the account of the first position flow one by one;
receiving a one-by-one reconciliation result returned by the background transaction node, and updating the synchronization state and the reconciliation state of the first dimension flow in the client transaction node based on the one-by-one reconciliation result;
performing batch reconciliation on the second position flow which is synchronized and successfully reconciled in the client transaction nodes to obtain a first batch reconciliation result, and requesting the background transaction nodes to perform batch reconciliation on the second position flow;
and receiving a second batch account checking result returned by the background transaction node, judging whether the first batch account checking result is different from the second batch account checking result, and if not, determining that the synchronization of the second position flow from the client transaction node to the background transaction node is finished.
Further, the position synchronization apparatus calls a position synchronization program stored in the memory 1005 by the processor 1001 to perform the following operations:
when the piece-by-piece account checking result is consistent with the first dimension running water, the synchronous state and the account checking state of the first dimension running water are respectively updated to be synchronous and the account checking is successful;
and when the one-by-one reconciliation result does not accord with the first dimension running water, updating the synchronous state and the reconciliation state of the first dimension running water into unsynchronized state and non-reconciliation state respectively.
Further, the position synchronization apparatus calls a position synchronization program stored in the memory 1005 by the processor 1001 to perform the following operations:
and when the one-by-one reconciliation result returned by the background transaction node is not received, adding the position stream corresponding to the situation into the next position synchronization.
Further, the position synchronization apparatus calls a position synchronization program stored in the memory 1005 by the processor 1001 to perform the following operations:
and monitoring whether a position stream exists in the client transaction node, wherein the synchronous state is in synchronous execution or not, and the synchronous state duration time exceeds a preset time length, and if so, sending an alarm to the outside.
Further, the position synchronization apparatus calls a position synchronization program stored in the memory 1005 by the processor 1001 to perform the following operations:
when the position flow of the client transaction nodes which are synchronized and successfully checked reaches the preset batch checking reference, generating a new global checking code;
and taking the position running water corresponding to the batch reconciliation benchmark as a second position running water and associating with the reconciliation code, and performing pad difference processing on the second position running water associated with the reconciliation code.
Further, the position synchronization apparatus calls a position synchronization program stored in the memory 1005 by the processor 1001 to perform the following operations:
and the request background transaction node performs pad difference processing on a second position flow associated with the reconciliation codes, wherein the first batch reconciliation result and the second batch reconciliation result respectively comprise related summary information of the second position flow.
Referring to fig. 2, fig. 2 is a functional module schematic diagram of a distributed data center according to an embodiment of the present invention.
In this embodiment, the data center based on the distributed deployment architecture includes: one background trading node 10, and a plurality of customer trading nodes 20. The background transaction node 10 is a server installed with a background transaction system, and the client transaction node 20 is a server installed with a client transaction system.
Wherein a position synchronization device 30 is provided in each customer trading node 20. Each client trading node 20 performs position synchronization processing with the background trading node 10 through the position synchronization device 30, and the position synchronization device 30 communicates with the background trading node 10 through a message bus mode.
In this embodiment, the background transaction node 10 is configured to receive the position flow and reconciliation request sent by the position synchronization device 30, execute a reconciliation process corresponding to the reconciliation request, and return a reconciliation process result.
In this embodiment, when position stream synchronization is performed, in order to ensure the correctness of the synchronized position stream, the account checking is performed one by one, so as to ensure that the position stream of each pen of the synchronization initiator (the client transaction node 20) is synchronized to the receiver (the background transaction node 10); and then batch reconciliation is carried out, so that the synchronous position flow received by the synchronous receiving party (the background trading node 10) is ensured to be consistent with the position flow in the initiating party (the client trading node 20), and all the position flow of each client trading node is ensured to be normally synchronized to the remote background trading node through the one-by-one reconciliation and the batch reconciliation, and the position synchronization is ensured to be correct in two directions.
Based on the hardware structure, the invention provides various embodiments of the position synchronization method in the distributed environment.
Referring to fig. 3, fig. 3 is a schematic flow chart of a position synchronization method according to an embodiment of the present invention. In this embodiment, the position synchronization method includes the following steps:
step S10, in the position synchronization, sending the first position flow which is not synchronized and not checked in the selected customer trading nodes to the background trading nodes, and requesting the background trading nodes to check the first position flow one by one;
in this embodiment, because the position flow generated on each customer transaction node 20 is large and dynamically changed, that is, the position flow of each pen on the customer transaction node 20 cannot be synchronized to the background transaction node 10 at one time, the position synchronization is performed in a multi-round manner, and a small amount of position flow is synchronized in each round, for example, each round synchronizes 100 pen positions.
In this embodiment, the position synchronization is expressed not only in the transfer of data but also in the correctness of the transferred data. To ensure the accuracy of synchronization of the position flow from the client transaction node 20 to the background transaction node 10, the present embodiment specifically performs reconciliation to achieve the following objectives:
the purpose is as follows: ensuring that all position streams of the synchronous initiator are sent to the receiver;
purpose two: ensuring that all the position streams received by the receiver are consistent with the position stream of the initiator.
In this embodiment, in one round of position synchronization, the position synchronization device 30 sends the unsynchronized and unpattemed first position flow (including a plurality of different position flows) in the selected customer transaction node 20 to the background transaction node 10, and requests the background transaction node 10 to perform one-by-one account checking on the first position flow, so as to achieve the above-mentioned purpose.
In this example, the reconciliation one by one specifically means that the background transaction node 10 reconciles the received running water of each pen tip one by one according to a certain sequence, and the specific manner and content of reconciliation are not limited, for example, the generation time, running items, running amount, and the like of the running water of each pen tip are collated, and a reconciliation result of the running water of each pen tip is generated.
Step S20, receiving the item-by-item reconciliation result returned by the background trading node, and updating the synchronization state and the reconciliation state of the first dimension flow in the client trading node based on the item-by-item reconciliation result;
in this embodiment, the position synchronization device 30 receives the item-by-item reconciliation result returned by the background transaction node 10, and updates the synchronization state and the reconciliation state of the first position flow in the client transaction node 20 based on the item-by-item reconciliation result. For example, the synchronization status is changed from unsynchronized to synchronized, and the reconciliation status is changed from unpattemed to successful.
Step S30, batch reconciliation is carried out on a second position flow which is synchronized and successfully reconciled in the client transaction node to obtain a first batch reconciliation result, a background transaction node is requested to carry out batch reconciliation on the second position flow, and a second batch reconciliation result returned by the background transaction node is received, wherein the first position flow comprises the second position flow;
step S40, judging whether the first batch reconciliation result is different from the second batch reconciliation result;
step S50, if yes, an alarm is sent to the outside;
and step S60, if not, determining that the synchronization of the second position stream from the customer trading node to the background trading node is completed.
In this embodiment, the second position flow synchronized and successfully checked in the customer transaction node already satisfies the first purpose, so to further achieve the second purpose, this embodiment specifically adopts a batch checking mode, and specifically includes:
firstly, the position synchronization device 30 performs batch reconciliation on a second position flow which is synchronized and successfully reconciled in the customer transaction node 20 to obtain a first batch reconciliation result;
secondly, the position synchronization device 30 requests the background transaction node 10 to perform batch reconciliation on the received second position flow, and receives a second batch reconciliation result returned by the background transaction node 10;
in this embodiment, the batch reconciliation mode is not limited, for example, the reconciliation is collected for all position streams, and the position synchronization device 30 can determine whether the position synchronization has achieved the second objective by comparing whether the batch reconciliation results of the two are different.
If the first batch of reconciliation results are different from the second batch of reconciliation results, sending an alarm, and further checking and eliminating faults through manual intervention; if the first batch reconciliation result is not different from the second batch reconciliation result, the second position flow simultaneously meets the first aim and the second aim, namely the synchronous bidirectional correctness of the position flow from the client trading node 20 to the background trading node 10 is ensured.
In this embodiment, when position stream synchronization is performed, in order to ensure the correctness of the synchronized position stream, account checking is performed one by one, so as to ensure that the position stream of each pen of the synchronization initiator (client transaction node) is synchronized to the receiver (background transaction node); and then batch reconciliation is carried out, so that the synchronous position flow received by the synchronous receiving party (background trading node) is ensured to be consistent with the position flow in the initiating party (client trading node), and all the position flow of each client trading node is ensured to be normally synchronized to the remote background trading node through the one-by-one reconciliation and the batch reconciliation, and the position synchronization is ensured to be correct in two directions.
Optionally, in another embodiment of the position synchronization method of the present invention, the itemized reconciliation result specifically includes the following three types of situations:
the first situation is as follows: the account checking result by one account is matched with the corresponding position running water in the first position running water
In such a case, the position synchronization device 30 updates the synchronization state and the reconciliation state of the position running water corresponding to the one-by-one reconciliation result in the first position running water to be synchronized and the reconciliation is successful, respectively;
case two: the account checking result by one account is not in accordance with the corresponding position running water in the first position running water
In such a case, the position synchronization device 30 updates the synchronization state and the reconciliation state of the position running water corresponding to the one-by-one reconciliation result in the first position running water to unsynchronized and unpaired;
case three: the account result of the item-by-item reconciliation is null, that is, the background transaction node 10 does not return the account result of the item-by-item reconciliation
Under such a situation, the position synchronization device 30 adds the position running water corresponding to the situation in the first position running water into the next position synchronization, so as to continue position synchronization until the position running water achieves real synchronization, that is, until the synchronization state and the reconciliation state of the position running water are respectively updated to be synchronized and the reconciliation is successful.
In addition, in another embodiment, in order to avoid the abnormal event in the synchronization process from affecting the synchronization efficiency, therefore:
optionally, the position synchronization device 30 monitors whether a position flow exists in the customer transaction node 20, where the synchronization state is in synchronization execution or not, and the synchronization state duration time exceeds a preset time duration, and if the position flow exists, sends an alarm to the outside, for example, notifies an operation and maintenance worker of manual intervention.
Further optionally, in an embodiment of the position synchronization method of the present invention, in step S30: the position synchronization device 30 performs batch reconciliation on the second position flow which is synchronized and successfully reconciled in the customer transaction node, and specifically comprises the following steps:
step S1, when the position flow of the synchronized reconciliation success in the customer transaction node reaches the preset batch reconciliation reference, generating a new global reconciliation code;
and step S2, taking the position running water corresponding to the batch reconciliation reference as a second position running water and associating the second position running water with the reconciliation code, and performing pad difference processing on the second position running water associated with the reconciliation code.
In this embodiment, to ensure that the position synchronization device 30 and the background transaction node 10 unify the reconciliation standard when performing batch reconciliation, a batch reconciliation standard is preset, for example, a preset time length is used as the batch reconciliation standard, or a preset position running water amount is used as the batch reconciliation standard.
In this embodiment, a global account checking code is specifically set for association, and one account checking code corresponds to a stream of multiple positions. For example, taking 100 pen inches of running water as a batch reconciliation standard, and setting a reconciliation code to be associated with the 100 pen inches of running water; or taking the position running water generated within one hour as a batch reconciliation reference, and setting a reconciliation code to be associated with the position running water generated within the one hour.
Optionally, the position synchronization device 30 further requests the background transaction node 10 to perform the offset processing on the position flow associated with one account checking code to obtain a first batch of account checking results, and at the same time, further requests the background transaction node 10 to perform the offset processing on the position flow associated with the same account checking code to obtain a second batch of account checking results, and finally determines to complete the synchronization of the second position flow associated with the account checking code from the client transaction node 20 to the background transaction node 10 by comparing whether the first batch of account checking results and the second batch of account checking results are different, and if not, automatically marks that the position flow associated with the account checking code has successfully completed batch account checking.
And obtaining related summary information of the second position running water corresponding to the account code through the difference rolling processing, such as total income amount, expenditure amount, total payment voucher information and the like. If the same multi-position running is subjected to multiple rolling differences respectively, the obtained summary information is bound to be the same, if the obtained summary information is different, the position running corresponding to the different rolling differences is different, and based on the difference, the method can be used for judging whether the position running received by the background trading node 10 is consistent with the position running in the initiator (the client trading node 20).
The present invention also provides a computer-readable storage medium applied to the position synchronization apparatus.
The computer-readable storage medium has stored thereon a position synchronization program which, when executed by a processor, performs the steps of any of the embodiments of the position synchronization method described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (10)

1. A position synchronization method under a distributed environment is characterized in that a plurality of data centers are arranged under the distributed environment, each data center comprises a background transaction node and a plurality of client transaction nodes, and the position synchronization method comprises the following steps:
in the position synchronization of the round, sending a first position flow which is not synchronized and checked in the selected client trading nodes to the background trading node, and requesting the background trading node to perform one-by-one account checking on the first position flow;
receiving a one-by-one reconciliation result returned by the background transaction node, and updating the synchronization state and the reconciliation state of the first dimension flow in the client transaction node based on the one-by-one reconciliation result;
performing batch reconciliation on a second position flow which is synchronized and successfully reconciled in the customer transaction nodes to obtain a first batch reconciliation result, and requesting the background transaction nodes to perform batch reconciliation on the second position flow;
receiving a second batch reconciliation result returned by the background transaction node, judging whether the first batch reconciliation result is different from the second batch reconciliation result, and if not, determining that the synchronization of the second position flow from the client transaction node to the background transaction node is finished; if the first batch reconciliation result is different from the second batch reconciliation result, sending an alarm;
wherein the updating the synchronization status and the reconciliation status of the first dimension flow in the customer transaction node based on the itemized reconciliation result comprises:
and when the item-by-item reconciliation result conforms to the first dimension running water, updating the synchronization state and the reconciliation state of the first dimension running water to be synchronized and the reconciliation is successful respectively.
2. The position synchronization method of claim 1, wherein the updating the synchronization status and the reconciliation status of the first position stream in the customer trading node based on the itemized reconciliation results further comprises:
and when the item-by-item reconciliation result does not accord with the first dimension running water, updating the synchronous state and the reconciliation state of the first dimension running water into unsynchronized state and non-reconciliation state respectively.
3. The position synchronization method according to claim 1, further comprising:
and when the one-by-one reconciliation result returned by the background transaction node is not received, adding the position stream corresponding to the situation into the next position synchronization.
4. The position synchronization method according to claim 1, further comprising:
and monitoring whether a position stream exists in the customer transaction node, wherein the synchronous state is in synchronous execution or not, and the synchronous state duration time exceeds a preset time length, and if so, sending an alarm to the outside.
5. The position synchronization method of any of claims 1-4, wherein the batch reconciliation of the synchronized and successfully reconciled second position stream in the customer trading node comprises:
when the position flow of the client transaction nodes which are synchronized and successfully checked reaches the preset batch checking reference, generating a new global checking code;
and taking the position running water corresponding to the batch reconciliation benchmark as a second position running water, associating the position running water with the reconciliation code, and performing pad difference processing on the second position running water associated with the reconciliation code.
6. The position synchronization method of claim 5, wherein the requesting the background trading node to batch reconcile the second position stream comprises:
requesting the background transaction node to perform pad difference processing on a second position flow associated with the account checking code, wherein the first batch account checking result and the second batch account checking result respectively contain related summary information of the second position flow.
7. The position synchronization method of claim 1, wherein the communication between the client transaction node and the background transaction node is accomplished via a message bus.
8. A position synchronization apparatus, characterized in that the position synchronization apparatus comprises a memory, a processor and a position synchronization program stored on the memory and executable on the processor, the position synchronization program, when executed by the processor, implementing the steps of the position synchronization method as claimed in any one of claims 1 to 7.
9. A distributed data center is characterized by comprising a background transaction node and a plurality of client transaction nodes;
the customer trading node comprising the position synchronization device of claim 8, the position synchronization device in communication with the background trading node by way of a message bus;
and the background transaction node is used for receiving the position flow and account checking request sent by the position synchronization equipment, executing account checking processing corresponding to the account checking request and returning an account checking processing result.
10. A computer-readable storage medium, having a position synchronization program stored thereon, which when executed by a processor, implements the steps of the position synchronization method according to any one of claims 1 to 7.
CN201711305674.2A 2017-12-11 2017-12-11 Position synchronization method, device, data center and storage medium Active CN107909460B (en)

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 CN107909460A (en) 2018-04-13
CN107909460B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070845B (en) * 2021-11-11 2024-04-16 中国银行股份有限公司 Method and device for cooperatively reporting transaction information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN107909460A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN105719182B (en) Automatic account checking method and automatic account checking system
US20110078297A1 (en) Job processing system, method and program
CN110289999B (en) Data processing method, system and device
CN113505520A (en) Method, device and system for supporting heterogeneous federated learning
CN111245642A (en) Method and device for acquiring dependency relationship between multiple systems and electronic equipment
US10176069B2 (en) Quorum based aggregator detection and repair
CN116088892A (en) Distributed service system configuration changing method, device, computer equipment and medium
CN111639086B (en) Data reconciliation method, device, equipment and storage medium
CN107909460B (en) Position synchronization method, device, data center and storage medium
CN110737548A (en) Data request method and server
CN108829495B (en) Verification method, device, equipment and storage medium for multi-database modification transaction
CN114090113A (en) Method, device and equipment for dynamically loading data source processing plug-in and storage medium
CN111626806B (en) Data processing method and device and electronic equipment
CN104735134B (en) A kind of method and apparatus serviced for providing calculating
CN115964021A (en) Demand issuing method and device, electronic equipment and storage medium
CN111626802A (en) Method and apparatus for processing information
CN108121730B (en) Device and method for quickly synchronizing data update to service system
CN112202850A (en) Intelligent cabinet after-sale maintenance work order system and processing method
CN110033145B (en) Financial sharing job order separating method and device, equipment and storage medium
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
CN111159988A (en) Model processing method and device, computer equipment and storage medium
CN114281849B (en) Data query method and device
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information
CN112995244B (en) Subscription withholding method, resource access method and equipment
CN108763247B (en) Method and device for processing user request in data migration process

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