Transaction processing system and method across new and old systems

By introducing transaction processing systems and methods across new and old systems in large systems, using transaction split combination, routing and linkage devices, the problem of inefficient transaction processing during switching between new and old systems is solved, and the synchronization of high performance and transaction integrity is achieved support.

CN113450097BActive Publication Date: 2025-02-18BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110794020.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2025-02-18
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

In large systems, there is a lack of effective transaction processing methods across new and old systems during the switching of new and old systems, resulting in inefficient transaction processing and difficult to ensure data integrity.

Method used

A transaction processing system and method across new and old systems is proposed, and transaction splitting, routing and processing are realized through transaction splitting combination device, distribution device and linkage device. Specific steps include extracting routing record elements, splitting transactions, querying routing tables, sending atomic transactions, receiving and feedback transaction results, and realizing linkage between systems through message queues.

Benefits of technology

This method can maintain high performance while synchronously supporting new and old systems, and ensure transaction integrity of new and old systems, solving the problem of inefficient transaction processing during switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113450097B_ABST
    Figure CN113450097B_ABST
Patent Text Reader

Abstract

The present invention provides a transaction processing system and method across new and old systems, which can be used in the field of distributed technology. The system includes: a transaction splitting and combining device, which is used to extract multiple routing record elements of the sent transaction sent by the calling end; split the sent transaction according to the multiple routing record elements; send the multiple atomic transactions after splitting to the distribution device; receive the transaction result and feed back to the calling end; the distribution device is used to query the routing table to obtain the target system corresponding to the routing record element of each atomic transaction after splitting; send each atomic transaction after splitting to the corresponding target system; receive the returned transaction result and feed back to the transaction splitting and combining device; a linkage device, which is used to receive the transaction data processing request sent by the first system and send it to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing. The present invention can realize transaction processing across new and old systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed technology, and in particular to a transaction processing system and method across new and old systems. Background Art

[0002] In large-scale systems, high-performance national services with large business volumes are provided. In large-scale systems, new systems have been developed and need to be switched part by part for safety reasons. Since the switching period may be long (such as 1-2 years), any transaction must not only consider the processing of a single old system or a single new system (distributed), but also consider transactions across the old and new systems. However, there is currently a lack of a transaction processing method across the old and new systems. Summary of the invention

[0003] The embodiment of the present invention provides a transaction processing system across new and old systems, which is used to implement transaction processing across new and old systems. The system includes:

[0004] The transaction splitting and combining device is used to extract multiple routing record elements of the transaction sent by the calling end; split the transaction according to the multiple routing record elements; send the split multiple atomic transactions to the distribution device; receive the transaction result returned by the distribution device and feed it back to the calling end;

[0005] The distribution device is used to query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction; send each split atomic transaction to the corresponding target system; receive the transaction result returned by the target system and feed it back to the transaction splitting and combining device; the target system is a new system or an old system;

[0006] A linkage device is used to receive a transaction data processing request sent by a first system and send it to a message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain a transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system.

[0007] The embodiment of the present invention provides a transaction processing method across new and old systems, so as to realize transaction processing across new and old systems. The method includes:

[0008] Extract multiple routing record elements of the transaction sent by the calling end;

[0009] Splitting the sent transaction according to multiple routing record elements;

[0010] Query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction, where the target system is a new system or an old system;

[0011] Send each split atomic transaction to the corresponding target system;

[0012] Receive the transaction results returned by the target system and feed back to the calling end;

[0013] After receiving the transaction data processing request sent by the first system, the transaction data processing request is sent to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system.

[0014] An embodiment of the present invention further proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned transaction processing method across the new and old systems when executing the computer program.

[0015] The embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program for executing the transaction processing method across the new and old systems.

[0016] In an embodiment of the present invention, a transaction splitting and combining device is used to extract multiple routing record elements of the transaction sent by the calling end; split the transaction according to the multiple routing record elements; send the multiple atomic transactions after splitting to the distribution device; receive the transaction result returned by the distribution device and feedback to the calling end; the distribution device is used to query the routing table to obtain the target system corresponding to the routing record element of each atomic transaction after splitting; send each atomic transaction after splitting to the corresponding target system; receive the transaction result returned by the target system and feedback to the transaction splitting and combining device; the target system is a new system or an old system; the linkage device is used to receive the transaction data processing request sent by the first system and send it to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is the new system and the second system is the old system, or the first system is the old system and the second system is the new system. In the above process, while synchronously supporting the new and old systems, the high-performance operation of the new and old systems is maintained, and the transactions of the new and old systems can maintain their original integrity. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0018] Figure 1 A schematic diagram of a transaction processing system across new and old systems in an embodiment of the present invention;

[0019] Figure 2 Another schematic diagram of a transaction processing system across new and old systems in an embodiment of the present invention;

[0020] Figure 3 It is a schematic diagram of a transaction processing system across new and old systems in an embodiment of the present invention;

[0021] Figure 4 Flow chart of a transaction processing method across new and old systems in an embodiment of the present invention;

[0022] Figure 5 Schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0024] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of the present application, and the order of steps is not limited and can be appropriately adjusted as needed.

[0025] Figure 1 FIG. 1 is a schematic diagram of a transaction processing system across new and old systems in an embodiment of the present invention. Figure 1 As shown, the system includes:

[0026] The transaction splitting and combining device 101 is used to extract multiple routing record elements of the transaction sent by the calling end; split the transaction according to the multiple routing record elements; send the split multiple atomic transactions to the distribution device; receive the transaction result returned by the distribution device and feed it back to the calling end;

[0027] The distribution device 102 is used to query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction; send each split atomic transaction to the corresponding target system; receive the transaction result returned by the target system and feed it back to the transaction splitting and combining device; the target system is a new system or an old system;

[0028] The linkage device 103 is used to receive a transaction data processing request sent by the first system and send it to a message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain a transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system.

[0029] In the embodiment of the present invention, while supporting the new and old systems synchronously, the high-performance operation of the new and old systems is maintained, and the transactions of the new and old systems can maintain their original integrity.

[0030] During the specific implementation, the new system and the old system coexist. Figure 2 This is another schematic diagram of the transaction processing system across the new and old systems in an embodiment of the present invention. In one embodiment, the system also includes an account verification device 104, which is used to perform account verification between the new system and the old system according to a preset period based on the transaction data processing results of the linkage device to check whether there is a unilateral transaction.

[0031] Figure 3 This is a schematic diagram of a transaction processing system across new and old systems in an embodiment of the present invention. In specific implementation, the routing record element may be an account number. For example, in a transfer transaction, a transfer-out account number, a transfer-in account number, a fee account number, etc. may be involved. The atomic transactions corresponding to these accounts may be distributed in the new system and the old system respectively. In this case, the original uploaded transaction needs to be split into three atomic transactions according to the transfer-out account number, the transfer-in account number, and the fee account number, namely, a transfer-out transaction, a transfer-in transaction, and a fee transaction, wherein each atomic transaction has a corresponding target system. For example, if the target system corresponding to the account number of the transfer-out transaction and the fee transaction is the new system, and the account number involved in the transfer-in transaction is found to be an account number of the old system after routing calculation, it needs to be routed to the old system for processing.

[0032] In addition, the transaction interface format of each atomic transaction needs to be organized according to the format of the target system (such as fixed-length package, XML, JSON, etc.).

[0033] In one embodiment, the transaction splitting and combining device is further used for:

[0034] For each atomic transaction, determine whether the atomic transaction requires the transaction result of the preceding atomic transaction;

[0035] If so, after receiving the transaction result of the preceding atomic transaction, the atomic transaction is sent to the distribution device;

[0036] If not, the atomic transaction is sent to the distribution device synchronously with the preceding atomic transaction.

[0037] The above embodiment is aimed at the transaction result of the previous atomic transaction that may be involved in a non-first atomic transaction. For example, if the transfer-in transaction is the transfer-out amount + the interest involved in the transfer-out amount, then after the transfer-out transaction is completed, the return amount and interest need to be filled into the transfer-in account and then distributed.

[0038] In one embodiment, the transaction splitting and combining device is further used for:

[0039] When the returned transaction result is a transaction failure, the reverse transaction of the preceding atomic transaction of the atomic transaction corresponding to the transaction failure is sent to the distribution device; the transaction result of the reverse transaction returned by the distribution device is received and fed back to the calling end;

[0040] The distribution device is also used to: receive the transaction result of the reverse transaction returned by the target system and feed it back to the transaction splitting and combining device.

[0041] In the above embodiment, the reversal of atomic transactions is achieved.

[0042] In one embodiment, the transaction splitting and combining device is further used for:

[0043] After receiving the transaction results of all atomic transactions after the upward transaction is split, the transaction results of all atomic transactions are spliced ​​together and fed back to the calling end.

[0044] In the above embodiment, the purpose of splicing is to send the result corresponding to the transaction to the calling end, rather than sending it in the form of the transaction result of all atomic transactions.

[0045] In the embodiment of the present invention, most of the data in the old and new systems are processed separately, and some data will not be divided according to the granularity of the switch between the old and new systems. For example, the total quota table, etc., these data will be synchronized with one side as the main one. For such data, the system needs to be linked and processed.

[0046] Therefore, the linkage device can receive a transaction data processing request sent by the first system and send it to a message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain a transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system.

[0047] That is, if the data is mainly from the old system, the transaction data processing request needs to be sent to the old system through the linkage device. In the old system, if the data is mainly from the new system, it will be processed in reverse. The linkage device uses a two-way message queue for asynchronous transmission, which reduces the coupling relationship between the two systems. Due to performance considerations, the processing results are not returned to the new system or the old system, but can be sent to the account reconciliation device. Based on the transaction data processing results of the linkage device, the account reconciliation between the new system and the old system is performed according to a preset period (for example, every day) to check whether there is a unilateral transaction. If so, feedback can be given to the business personnel.

[0048] In summary, in the device proposed in the embodiment of the present invention, the transaction splitting and combining device is used to extract multiple routing record elements of the transaction sent by the calling end; split the transaction according to the multiple routing record elements; send the multiple atomic transactions after splitting to the distribution device; receive the transaction result returned by the distribution device and feedback to the calling end; the distribution device is used to query the routing table to obtain the target system corresponding to the routing record element of each atomic transaction after splitting; send each atomic transaction after splitting to the corresponding target system; receive the transaction result returned by the target system and feedback to the transaction splitting and combining device; the target system is a new system or an old system; the linkage device is used to receive the transaction data processing request sent by the first system and send it to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is the new system and the second system is the old system, or the first system is the old system and the second system is the new system. In the above process, while synchronously supporting the new and old systems, the high-performance operation of the new and old systems is maintained, and the transactions of the new and old systems can maintain their original integrity.

[0049] The embodiment of the present invention further proposes a transaction processing method across new and old systems, the principle of which is similar to that of the transaction processing system across new and old systems, and will not be described in detail here.

[0050] Figure 4 FIG. 1 is a flow chart of a transaction processing method across new and old systems in an embodiment of the present invention. Figure 4 As shown, including:

[0051] Step 401, extracting multiple routing record elements of the transaction sent by the calling end;

[0052] Step 402, splitting the transaction according to multiple routing record elements;

[0053] Step 403, query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction, wherein the target system is a new system or an old system;

[0054] Step 404, sending each split atomic transaction to the corresponding target system;

[0055] Step 405, receiving the transaction result returned by the target system and feeding back to the calling end;

[0056] Step 406, after receiving the transaction data processing request sent by the first system, the transaction data processing request is sent to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system.

[0057] In one embodiment, sending each split atomic transaction to a corresponding target system includes:

[0058] For each atomic transaction, determine whether the atomic transaction requires the transaction result of the preceding atomic transaction;

[0059] If yes, after receiving the transaction result of the preceding atomic transaction, the atomic transaction is sent to the corresponding target system;

[0060] If not, the atomic transaction is sent synchronously with the preceding atomic transaction to the corresponding target system.

[0061] In one embodiment, the method further comprises:

[0062] When the returned transaction result is a transaction failure, the reverse transaction of the preceding atomic transaction of the atomic transaction corresponding to the transaction failure is sent to the corresponding target system;

[0063] Receive the transaction results of the reverse transaction returned by the target system and feed them back to the calling end.

[0064] In one embodiment, receiving the transaction result returned by the target system and feeding back to the calling end includes:

[0065] After receiving the transaction results of all atomic transactions after the upward transaction is split, the transaction results of all atomic transactions are spliced ​​together and fed back to the calling end.

[0066] In one embodiment, the method further includes: based on the transaction data processing result, performing account verification between the new system and the old system according to a preset period to check whether there is any unilateral transaction.

[0067] In summary, in the method proposed in the embodiment of the present invention, multiple routing record elements of the transaction sent by the calling end are extracted; the transaction is split according to the multiple routing record elements; the routing table is queried to obtain the target system corresponding to the routing record element of each atomic transaction after the split, and the target system is a new system or an old system; each atomic transaction after the split is sent to the corresponding target system; the transaction result returned by the target system is received and fed back to the calling end; after receiving the transaction data processing request sent by the first system, the transaction data processing request is sent to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is the new system and the second system is the old system, or the first system is the old system and the second system is the new system. In the above process, while synchronously supporting the new and old systems, the high-performance operation of the new and old systems is maintained, and the transactions of the new and old systems can maintain their original integrity.

[0068] An embodiment of the present invention further provides a computer device, Figure 5 Schematic diagram of a computer device in an embodiment of the present invention. The computer device can implement all steps in the transaction processing method across the new and old systems in the above embodiment. The computer device specifically includes the following contents:

[0069] Processor (processor) 501, memory (memory) 502, communication interface (CommunicationsInterface) 503 and communication bus 504;

[0070] The processor 501, the memory 502, and the communication interface 503 communicate with each other through the communication bus 504; the communication interface 503 is used to realize information transmission between the server-side device, the detection device, the user-side device and other related devices;

[0071] The processor 501 is used to call the computer program in the memory 502. When the processor executes the computer program, all steps of the transaction processing method across the new and old systems in the above embodiment are implemented.

[0072] An embodiment of the present invention also provides a computer-readable storage medium that can implement all steps of the transaction processing method across the new and old systems in the above embodiment. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the transaction processing method across the new and old systems in the above embodiment.

[0073] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0074] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0075] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0077] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A transaction processing system across new and old systems, characterized in that: include: The transaction splitting and combining device is used to extract multiple routing record elements of the transaction sent by the calling end; According to multiple routing record elements, the sent transaction is split; the split multiple atomic transactions are sent to the distribution device; the transaction result returned by the distribution device is received and fed back to the calling end; The distribution device is used to query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction; send each split atomic transaction to the corresponding target system; receive the transaction result returned by the target system and feed it back to the transaction splitting and combining device; the target system is a new system or an old system; A linkage device, used for receiving a transaction data processing request sent by the first system and sending it to a message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain a transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system; It also includes an account checking device, which is used to check the accounts between the new system and the old system according to a preset period based on the transaction data processing results of the linkage device to check whether there is a unilateral transaction.

2. The transaction processing system across new and old systems as claimed in claim 1, characterized in that: The transaction splitting combination device is also used to: For each atomic transaction, determine whether the atomic transaction requires the transaction result of the preceding atomic transaction; If so, after receiving the transaction result of the preceding atomic transaction, the atomic transaction is sent to the distribution device; If not, the atomic transaction is sent to the distribution device synchronously with the preceding atomic transaction.

3. The transaction processing system across new and old systems as claimed in claim 1, characterized in that: The transaction splitting combination device is also used to: When the returned transaction result is a transaction failure, the reverse transaction of the preceding atomic transaction of the atomic transaction corresponding to the transaction failure is sent to the distribution device; the transaction result of the reverse transaction returned by the distribution device is received and fed back to the calling end; The distribution device is also used to: receive the transaction result of the reverse transaction returned by the target system and feed it back to the transaction splitting and combining device.

4. The transaction processing system across new and old systems as claimed in claim 1, characterized in that: The transaction splitting combination device is also used to: After receiving the transaction results of all atomic transactions after the upward transaction is split, the transaction results of all atomic transactions are spliced ​​together and fed back to the calling end.

5. A transaction processing method across new and old systems, characterized in that: include: Extract multiple routing record elements of the transaction sent by the caller; Splitting the transaction according to multiple routing record elements; Query the routing table to obtain the target system corresponding to the routing record element of each split atomic transaction, where the target system is a new system or an old system; Send each split atomic transaction to the corresponding target system; Receive the transaction results returned by the target system and feed back to the calling end; After receiving the transaction data processing request sent by the first system, the transaction data processing request is sent to the message queue; wherein the second system monitors the message queue, obtains the transaction data processing request and performs transaction data processing to obtain the transaction data processing result; wherein the first system is a new system and the second system is an old system, or the first system is an old system and the second system is a new system; Also includes: Based on the results of transaction data processing, the accounts between the new system and the old system are reconciled according to the preset cycle to check whether there are unilateral transactions.

6. The transaction processing method across new and old systems as claimed in claim 5, characterized in that: Send each split atomic transaction to the corresponding target system, including: For each atomic transaction, determine whether the atomic transaction requires the transaction result of the preceding atomic transaction; If yes, after receiving the transaction result of the preceding atomic transaction, the atomic transaction is sent to the corresponding target system; If not, the atomic transaction is sent synchronously with the preceding atomic transaction to the corresponding target system.

7. The transaction processing method across new and old systems as claimed in claim 5, characterized in that: Also includes: When the returned transaction result is a transaction failure, the reverse transaction of the preceding atomic transaction of the atomic transaction corresponding to the transaction failure is sent to the corresponding target system; Receive the transaction results of the reverse transaction returned by the target system and feed them back to the calling end.

8. The transaction processing method across new and old systems as claimed in claim 5, characterized in that: Receive the transaction results returned by the target system and feed them back to the calling end, including: After receiving the transaction results of all atomic transactions after the upward transaction is split, the transaction results of all atomic transactions are spliced ​​together and fed back to the calling end.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 5 to 8 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 5 to 8.

Citation Information

Patent Citations

  • Method and device for processing reversal transaction, electronic equipment and computer readable medium

    CN111626858A

  • Transaction route distribution method and related device

    CN113052687A