CN111694683A - Data processing method and device, computer equipment and computer readable storage medium - Google Patents

Data processing method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN111694683A
CN111694683A CN202010573712.8A CN202010573712A CN111694683A CN 111694683 A CN111694683 A CN 111694683A CN 202010573712 A CN202010573712 A CN 202010573712A CN 111694683 A CN111694683 A CN 111694683A
Authority
CN
China
Prior art keywords
transaction
transaction data
data
forwarding table
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010573712.8A
Other languages
Chinese (zh)
Inventor
李靖
狄文彬
王白英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010573712.8A priority Critical patent/CN111694683A/en
Publication of CN111694683A publication Critical patent/CN111694683A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data processing method, a data processing device, computer equipment and a computer readable storage medium, wherein the data processing method comprises the following steps: after synchronous transaction processing is executed, transaction data are written into a storage forwarding table; the asynchronous process packages the transaction data to be processed scanned from the storage forwarding table to obtain a transaction data package; and sending the transaction data packet to the external system by calling an interface of the external system. The invention combines the synchronous transaction with the asynchronous message forwarding by using the storage forwarding table as a transition, and converts the processing logic of the non-critical path in the transaction process into asynchronous processing, thereby not only reducing the degree of dependence on an external system, but also improving the transaction efficiency.

Description

Data processing method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of information communication technologies, and in particular, to a data processing method and apparatus, a computer device, and a computer-readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, in payment transaction of a bank card front-end mode or an APP front-end mode, after payment transaction is completed, a transaction result needs to be sent to an APP user and a merchant. Currently, there are two main processing methods: one is online synchronous processing, namely sending and confirming transaction result data or payment confirmation data to a transaction flow; the other method is to adopt a message queue to perform asynchronous processing, namely, only the transaction result data or the payment confirmation data are written into the message queue in the transaction process, and the transaction result data or the payment confirmation data are actively acquired from the message queue by the subscribers such as APP or Unionpay.
However, the online synchronization process needs to wait for the return of the external system, which greatly increases the transaction time and reduces the transaction efficiency; meanwhile, too long transaction link can also bring about the problem of transaction complexity. Asynchronous message queues, however, require that all external systems use common queue middleware, making coordination of external systems difficult when there are many external systems.
Therefore, the conventional transaction processing method has the problems of high dependence on an external system and low transaction efficiency.
Disclosure of Invention
The embodiment of the invention provides a data processing method, which is used for reducing the degree of dependence on an external system and improving the transaction efficiency and comprises the following steps:
after synchronous transaction processing is executed, transaction data are written into a storage forwarding table;
the asynchronous process packages the transaction data to be processed scanned from the storage forwarding table to obtain a transaction data package;
and sending the transaction data packet to the external system by calling an interface of the external system.
An embodiment of the present invention further provides a data processing apparatus, configured to reduce a degree of dependence on an external system and improve transaction efficiency, where the data processing apparatus includes:
the storage module is used for writing the transaction data into a storage forwarding table after synchronous transaction processing is executed;
the scanning and packaging module is used for packaging the transaction data to be processed scanned from the storage forwarding table by the asynchronous process to obtain a transaction data packet;
and the sending module is used for sending the transaction data packet to the external system by calling an interface of the external system.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the data processing method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the data processing method is stored.
In the embodiment of the invention, transaction data processed synchronously are written into a storage forwarding table, and asynchronous processes are utilized to package transaction data to be processed scanned from the storage forwarding table to obtain a transaction data packet; and sending the transaction data packet to the external system by calling an interface of the external system. The embodiment of the invention combines the synchronous transaction with the asynchronous message forwarding by using the storage forwarding table as a transition, and converts the processing logic of a non-critical path in the transaction process into asynchronous processing, thereby not only reducing the degree of dependence on an external system, but also improving the transaction efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart of an implementation of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of a data processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of step 102 in a data processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another implementation of step 102 in the data processing method according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation of step 402 in a data processing method according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of another embodiment of a data processing apparatus;
fig. 8 is a block diagram of a scan group package module 602 in the data processing apparatus according to the embodiment of the present invention;
FIG. 9 is a block diagram of another embodiment of a scan group package module 602 in a data processing apparatus;
fig. 10 is a block diagram of a priority group packing unit 902 in the data processing apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Fig. 1 shows an implementation flow of a data processing method provided by an embodiment of the present invention, and for convenience of description, only parts related to the embodiment of the present invention are shown, and detailed descriptions are as follows:
as shown in fig. 1, a data processing method includes:
step 101, writing transaction data into a storage forwarding table after synchronous transaction processing is executed;
102, an asynchronous process packages transaction data to be processed scanned from a storage forwarding table to obtain a transaction data package;
and step 103, sending the transaction data packet to the external system by calling an interface of the external system.
In the embodiment of the invention, the storage forwarding table is used as a transition, and after a transaction request of an external system is received, transaction services are processed. After the synchronous transaction service is executed, transaction data is written into the storage forwarding table. Wherein the transaction data includes at least payment confirmation data and transaction result data. The partial transaction data only needs to include key data in the transaction process, and does not need to organize complete transaction message data. The above process is an online synchronous transaction process.
After the transaction data is written into the storage forwarding table, the transaction data in the storage forwarding table is scanned by using an asynchronous process, and the scanned transaction data to be processed is packaged, namely the transaction data is processed according to a message organization protocol and a format which are well agreed with an external system, so that a transaction data packet is obtained. And after the transaction data packet is obtained, the transaction data packet is sent to the external system by calling an interface of the external system. The external system comprises a Unionpay terminal or a terminal containing an external system APP and the like. The above process is an asynchronous processing and forwarding process of transaction data.
In the embodiment of the invention, transaction data processed synchronously are written into a storage forwarding table, and asynchronous processes are utilized to package transaction data to be processed scanned from the storage forwarding table to obtain a transaction data packet; and sending the transaction data packet to the external system by calling an interface of the external system. The embodiment of the invention combines the synchronous transaction with the asynchronous message forwarding by using the storage forwarding table as a transition, and converts the processing logic of a non-critical path in the transaction process into asynchronous processing, thereby not only reducing the degree of dependence on an external system, but also improving the transaction efficiency.
Fig. 2 shows another implementation flow of the data processing method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to facilitate an external system to obtain a transaction result in time, the transaction data at least includes transaction result data, as shown in fig. 2, in step 101, after the transaction data is written into a storage forwarding table after performing synchronous transaction processing, the data processing method further includes:
step 201, the transaction result data is sent to an external system.
In an embodiment of the invention, the transaction data comprises at least transaction result data. After the transaction data is written into the storage forwarding table, the transaction is considered to be completed, and transaction result data can be directly returned. I.e. after step 101, the transaction result data may also be sent to the external system so that the external system knows the transaction result in time.
In the embodiment of the invention, the transaction result data is sent to the external system, so that the external system can obtain the transaction result in time.
In an embodiment of the present invention, in order to determine whether the external system successfully receives the transaction data packet, as shown in fig. 2, the data processing method further includes:
step 202, receiving a receiving result message fed back by the external system aiming at the transaction data packet.
In embodiments of the present invention, feedback from the external system may be received to confirm whether the external system received the transaction data packet. Namely, after receiving the transaction data packet, the external system feeds back the transaction data packet in the form of a message. And if the receiving result comprises successful receiving and failed receiving, the receiving result message comprises a successful receiving message and a failed receiving message. For example, receiving a success message includes receiving a successful transaction code and receiving a failure message includes receiving a failure transaction code.
When a successful receiving message aiming at the transaction data packet fed back by the external system is received, the external system is considered to have successfully received the transaction data packet; when receiving a receiving failure message for the transaction data packet fed back by the external system, the external system is considered to have failed to receive the transaction data packet, and at the moment, the next polling processing of the transaction data corresponding to the transaction data packet needs to be waited.
In the embodiment of the invention, the receiving result message fed back by the external system aiming at the transaction data packet can confirm whether the external system successfully receives the transaction data packet.
In an embodiment of the present invention, receiving the result message includes receiving a success message. In order to reduce redundancy of transaction data, as shown in fig. 2, the data processing method further includes:
step 203, deleting the transaction data corresponding to the successfully received message from the storage and forwarding table.
In the embodiment of the invention, if the successful receiving message fed back by the external system is received, the external system is indicated to have successfully received the transaction data packet, and the transaction processing is considered to be successful at this time. The processed transaction data is deleted from the storage forwarding table, so that the redundancy of the transaction data is reduced, and the data space for storing the forwarding table is saved.
In the embodiment of the invention, the transaction data corresponding to the successfully received message is deleted from the storage and forwarding table, so that the redundancy of the transaction data can be reduced, and the data space of the storage and forwarding table is saved.
Fig. 3 illustrates an implementation flow of step 102 in the data processing method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are illustrated, and the following details are described below:
in an embodiment of the present invention, in order to improve the transaction processing efficiency, as shown in fig. 3, in step 102, the asynchronous process packages the transaction data to be processed scanned from the storage and forwarding table to obtain a transaction data package, including:
step 301, the asynchronous process scans and stores the transaction data in the forwarding table in sequence according to the sequence of the transaction time;
step 302, package the scanned transaction data before the transaction time as the transaction data to be processed, and obtain a transaction data package.
In the embodiment of the invention, when scanning the transaction data in the storage forwarding table, the asynchronous process can scan according to the transaction time of the transaction data in the storage forwarding table, preferentially takes the transaction data with the prior transaction time as the transaction data to be processed according to the sequence of the transaction time, and further packages the transaction data with the prior transaction time to obtain the transaction data package.
For example, the transaction time of the transaction data a is 12:30:25 in 5/month and 14/day in 2020, the transaction time of the transaction data B is 12:30:23 in 5/month and 14/day in 2020, the transaction time of the transaction data B is earlier than the transaction time of the transaction data a, and the transaction data B is used as the transaction data to be processed. Namely, transaction data are processed in sequence according to the time sequence of the transaction data in the storage forwarding table.
In the embodiment of the invention, the asynchronous process scans the transaction data in the storage forwarding table in sequence according to the sequence of the transaction time, the scanned transaction data with the transaction time ahead is used as the transaction data to be processed for packaging, and a transaction data packet is obtained.
Fig. 4 shows another implementation flow of step 102 in the data processing method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to improve the transaction efficiency, as shown in fig. 4, in step 102, the asynchronous process packages the transaction data to be processed scanned from the storage and forwarding table to obtain a transaction data package, including:
step 401, an asynchronous process scans and stores transaction data in a forwarding table according to a pre-configured priority of the transaction data;
step 402, the scanned transaction data with higher priority is packaged as the transaction data to be processed, and a transaction data packet is obtained.
In the embodiment of the present invention, the priority of the transaction data may be configured in advance. The priority of the transaction data may be determined based on transaction scenarios or other transaction conditions. For example, enterprise-level transactional data may be prioritized over personal transactional data.
In addition, the priority of the transaction data may be set according to the size of the transaction amount, for example, the priority of the transaction data with the transaction amount of 100 ten thousand or more is set as a lower priority, the priority of the transaction data with the transaction amount of 30 ten thousand to 100 ten thousand is set as a medium priority, the priority of the transaction data with the transaction amount of 1 ten thousand to 30 ten thousand is set as a high priority, the priority of the transaction data with the transaction amount of 2000 to 5000 yuan is set as a higher priority, and the priority of the transaction data with the transaction amount of 2000 or less is set as an emergency priority, etc.
For example, the transaction data may also be prioritized based on the extent to which the transaction facility contributes to the economy. The priority of the transaction data with a higher degree of economic contribution by the transaction institution may be set to a higher priority, the priority of the transaction data with a moderate degree of economic contribution by the transaction institution may be set to a medium priority, and the priority of the transaction data with a lower degree of economic contribution by the transaction institution may be set to a low priority, and the like. The degree of economic contribution of the exchange may be preset.
The transaction scene, the transaction amount, the transaction organization, and the like are transaction parameters of the transaction data, that is, the priority of the transaction data may be set based on the transaction parameters of the transaction data, which is only an exemplary description above.
In the embodiment of the invention, the asynchronous process scans the transaction data in the storage forwarding table according to the priority of the transaction data which is configured in advance, the scanned transaction data with higher priority is used as the transaction data to be processed for packaging, a transaction data packet is obtained, and the asynchronous process scans the storage forwarding table based on the transaction priority, so that the transaction efficiency can be improved.
Fig. 5 shows an implementation flow of step 402 in the data processing method provided by the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the detailed description is as follows:
in an embodiment of the invention, the higher priority pending transaction data comprises a plurality of transaction data of the same priority. In order to further improve the transaction processing efficiency, as shown in fig. 5, step 402, packaging the scanned transaction data with higher priority as the transaction data to be processed, and obtaining a transaction data packet, includes:
step 501, package the transaction data with the prior transaction time in the scanned transaction data with the same priority as the transaction data to be processed, and obtain a transaction data package.
The storage forwarding table may have a plurality of transaction data with the same transaction priority, and at this time, the transaction data with the same transaction priority can be processed according to the transaction time of the transaction data with the same transaction priority, that is, the transaction data with the prior transaction time in the transaction data with the same priority is used as the transaction data to be processed, and then the transaction data with the prior transaction time in the transaction data with the same priority is processed and packaged to obtain a transaction data packet.
In the embodiment of the invention, the transaction data with the prior transaction time in the scanned transaction data with the same priority is used as the transaction data to be processed to be packaged to obtain the transaction data package, and the transaction data to be processed is determined in the transaction data with the same priority based on the transaction time, so that the transaction processing efficiency can be further improved.
An embodiment of the present invention further provides a data processing apparatus, as described in the following embodiments. Since the principle of solving the problems of these apparatuses is similar to that of the data processing method, the implementation of these apparatuses can be referred to the implementation of the method, and the repeated descriptions are omitted.
Fig. 6 shows functional modules of a data processing apparatus provided in an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
referring to fig. 6, each module included in the data processing apparatus is configured to execute each step in the embodiment corresponding to fig. 1, and please refer to fig. 1 and the related description in the embodiment corresponding to fig. 1 for details, which are not repeated herein. In the embodiment of the present invention, the data processing apparatus includes a storage module 601, a scanning group package module 602, and a sending module 603.
The storage module 601 is configured to write transaction data into a storage forwarding table after performing synchronous transaction processing.
And a scanning and packaging module 602, configured to perform packaging on the to-be-processed transaction data scanned from the storage and forwarding table by the asynchronous process to obtain a transaction data packet.
A sending module 603, configured to send the transaction data packet to the external system by invoking an interface of the external system.
In the embodiment of the present invention, the storage module 601 writes the transaction data processed synchronously into the storage forwarding table, and the scanning and packaging module 602 packages the transaction data to be processed scanned from the storage forwarding table by using an asynchronous process, so as to obtain a transaction data packet; the sending module 603 sends the transaction data packet to the external system by calling an interface of the external system. The embodiment of the invention combines the synchronous transaction with the asynchronous message forwarding by using the storage forwarding table as a transition, and converts the processing logic of a non-critical path in the transaction process into asynchronous processing, thereby not only reducing the degree of dependence on an external system, but also improving the transaction efficiency.
Fig. 7 shows another functional module of the data processing apparatus provided in the embodiment of the present invention, and for convenience of description, only the part related to the embodiment of the present invention is shown, and the details are as follows:
in one embodiment of the invention, the transaction data includes at least a transaction result number. To facilitate the external system to obtain the transaction result in time, referring to fig. 7, each module included in the data processing apparatus is configured to execute each step in the embodiment corresponding to fig. 2, please refer to fig. 2 and the related description in the embodiment corresponding to fig. 2 specifically, which is not described herein again. In the embodiment of the present invention, on the basis of the above module structure, the data processing apparatus further includes a transaction result sending module 701.
And a transaction result sending module 701, configured to send the transaction result data to an external system.
In the embodiment of the present invention, the transaction result sending module 701 sends the transaction result data to the external system, so that the external system can obtain the transaction result in time.
In an embodiment of the present invention, in order to confirm whether the external system successfully receives the transaction data packet, as shown in fig. 7, the data processing apparatus further includes:
a message receiving module 702, configured to receive a receiving result message fed back by an external system for the transaction data packet.
In the embodiment of the present invention, the message receiving module 702 receives a receiving result message fed back by the external system for the transaction data packet, and can determine whether the external system successfully receives the transaction data packet.
In an embodiment of the present invention, receiving the result message includes receiving a success message. In order to reduce redundancy of transaction data, as shown in fig. 7, the data processing apparatus further includes:
the deleting module 703 is configured to delete the transaction data corresponding to the successfully received message from the storage and forwarding table.
In the embodiment of the present invention, the deleting module 703 deletes the transaction data corresponding to the successfully received message from the storage forwarding table, which can reduce redundancy of the transaction data and save the data space of the storage forwarding table.
Fig. 8 shows another functional module of the scanning group package module 602 in the data processing apparatus provided in the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to improve the transaction processing efficiency, referring to fig. 8, each unit included in the scan group package module 602 is configured to execute each step in the embodiment corresponding to fig. 3, and please refer to fig. 3 and the related description in the embodiment corresponding to fig. 3 specifically, which is not described herein again. In the embodiment of the present invention, the scanning group packing module 602 includes a time scanning unit 801 and a time packing unit 802.
The time scanning unit 801 is configured to scan the transaction data in the storage forwarding table in sequence according to the sequence of the transaction time by the asynchronous process.
The time packing unit 802 is configured to pack the scanned transaction data with the transaction time ahead as the transaction data to be processed, so as to obtain a transaction data packet.
In the embodiment of the present invention, the time scanning unit 801 sequentially scans the transaction data in the storage forwarding table according to the sequence of the transaction time by using the asynchronous process, the time packing unit 802 packs the scanned transaction data with the transaction time ahead as the transaction data to be processed, so as to obtain the transaction data packet, and the asynchronous process scans the storage forwarding table based on the transaction time, so that the transaction processing efficiency can be improved.
Fig. 9 shows another structural schematic diagram of the scanning group package module 602 in the data processing apparatus provided in the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and the details are as follows:
in an embodiment of the present invention, in order to improve the transaction efficiency, referring to fig. 9, each unit included in the scan group package module 602 is configured to execute each step in the embodiment corresponding to fig. 4, specifically please refer to fig. 4 and the related description in the embodiment corresponding to fig. 4, which is not repeated herein. In the embodiment of the present invention, the scanning group packing module 602 includes a priority scanning unit 901 and a priority group packing unit 902.
A priority scanning unit 901, configured to scan, by an asynchronous process, transaction data in a storage forwarding table according to a priority of the transaction data configured in advance;
the priority group packaging unit 902 is configured to group package the scanned transaction data with a higher priority as the transaction data to be processed, so as to obtain a transaction data packet.
In the embodiment of the present invention, the priority scanning unit 901 scans the transaction data in the storage forwarding table according to the priority of the transaction data configured in advance by using an asynchronous process, the priority packaging unit 902 packages the scanned transaction data with a higher priority as the transaction data to be processed, so as to obtain the transaction data packet, and the asynchronous process scans the storage forwarding table based on the transaction priority, so that the transaction efficiency can be improved.
Fig. 10 shows a schematic structure of a priority group packet unit 902 in the data processing apparatus according to the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, and detailed descriptions are as follows:
in an embodiment of the invention, the higher priority pending transaction data comprises a plurality of transaction data of the same priority. In order to further improve the transaction processing efficiency, referring to fig. 10, each unit included in the priority group packaging unit 902 is used for executing each step in the embodiment corresponding to fig. 5, specifically please refer to fig. 5 and the related description in the embodiment corresponding to fig. 5, which is not repeated herein. In the embodiment of the present invention, the priority group packing unit 902 includes a group packing subunit 1001.
The packaging subunit 1001 is configured to package, as to-be-processed transaction data, transaction data with a transaction time before in the scanned transaction data with the same priority, to obtain a transaction data packet.
In the embodiment of the present invention, the packaging subunit 1001 packages the scanned transaction data with the prior transaction time in the transaction data with the same priority as the transaction data to be processed, obtains the transaction data packet, and determines the transaction data to be processed in the transaction data with the same priority based on the transaction time, so that the transaction processing efficiency can be further improved.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the data processing method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program for executing the data processing method is stored.
In summary, in the embodiment of the present invention, transaction data processed synchronously is written into a storage forwarding table, and transaction data to be processed scanned from the storage forwarding table is packaged by using an asynchronous process, so as to obtain a transaction data packet; and sending the transaction data packet to the external system by calling an interface of the external system. The embodiment of the invention combines the synchronous transaction with the asynchronous message forwarding by using the storage forwarding table as a transition, and converts the processing logic of a non-critical path in the transaction process into asynchronous processing, thereby not only reducing the degree of dependence on an external system, but also improving the transaction efficiency.
The invention ensures that each transaction data is not lost or repeated by calling the external system interface during asynchronous processing. Meanwhile, the transaction data packet is sent through the interface, so that the task accumulation degree of the external system caused by task abnormity can be reduced, and the external system can find and process the problem in time.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A data processing method, comprising:
after synchronous transaction processing is executed, transaction data are written into a storage forwarding table;
the asynchronous process packages the transaction data to be processed scanned from the storage forwarding table to obtain a transaction data package;
and sending the transaction data packet to the external system by calling an interface of the external system.
2. The data processing method of claim 1, wherein the transaction data includes at least transaction result data, and after the step of writing the transaction data into the storage forwarding table after performing the synchronous transaction processing, the data processing method further comprises:
and transmitting the transaction result data to an external system.
3. The data processing method of claim 1, further comprising:
and receiving a receiving result message fed back by the external system aiming at the transaction data packet.
4. The data processing method of claim 3, wherein receiving the result message comprises receiving a success message, the data processing method further comprising:
and deleting the transaction data corresponding to the successfully received message from the storage forwarding table.
5. The data processing method of claim 1, wherein the asynchronous process packages the transaction data to be processed scanned from the storage and forwarding table to obtain a transaction data package, comprising:
the asynchronous process scans and stores the transaction data in the forwarding table in sequence according to the sequence of the transaction time;
and packaging the scanned transaction data with the prior transaction time as the transaction data to be processed to obtain a transaction data packet.
6. The data processing method of claim 1, wherein the asynchronous process packages the transaction data to be processed scanned from the storage and forwarding table to obtain a transaction data package, comprising:
the asynchronous process scans and stores the transaction data in the forwarding table according to the priority of the transaction data which is configured in advance;
and packaging the scanned transaction data with higher priority as the transaction data to be processed to obtain a transaction data packet.
7. The data processing method of claim 6, wherein the transaction data to be processed with higher priority includes a plurality of transaction data with the same priority, and the scanned transaction data with higher priority is packaged as the transaction data to be processed to obtain the transaction data package, including:
and packaging the transaction data with the prior transaction time in the scanned transaction data with the same priority as the to-be-processed transaction data to obtain a transaction data packet.
8. A data processing apparatus, comprising:
the storage module is used for writing the transaction data into a storage forwarding table after synchronous transaction processing is executed;
the scanning and packaging module is used for packaging the transaction data to be processed scanned from the storage forwarding table by the asynchronous process to obtain a transaction data packet;
and the sending module is used for sending the transaction data packet to the external system by calling an interface of the external system.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data processing method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the data processing method of any one of claims 1 to 7.
CN202010573712.8A 2020-06-22 2020-06-22 Data processing method and device, computer equipment and computer readable storage medium Pending CN111694683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010573712.8A CN111694683A (en) 2020-06-22 2020-06-22 Data processing method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010573712.8A CN111694683A (en) 2020-06-22 2020-06-22 Data processing method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111694683A true CN111694683A (en) 2020-09-22

Family

ID=72482769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010573712.8A Pending CN111694683A (en) 2020-06-22 2020-06-22 Data processing method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111694683A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126352A (en) * 2016-06-17 2016-11-16 中国银行股份有限公司 The asynchronous method and device reporting and submitting information
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process
US9996600B1 (en) * 2015-06-25 2018-06-12 Amazon Technologies, Inc. Asynchronous communication of transaction data to clients
CN109492016A (en) * 2018-11-19 2019-03-19 中国银联股份有限公司 A kind of exchange settlement method and device
CN109729023A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Transmission of transaction data method and device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9996600B1 (en) * 2015-06-25 2018-06-12 Amazon Technologies, Inc. Asynchronous communication of transaction data to clients
CN106126352A (en) * 2016-06-17 2016-11-16 中国银行股份有限公司 The asynchronous method and device reporting and submitting information
CN107679931A (en) * 2017-08-17 2018-02-09 平安科技(深圳)有限公司 Method, apparatus, storage medium and the terminal of order asynchronous process
CN109729023A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Transmission of transaction data method and device thereof
CN109492016A (en) * 2018-11-19 2019-03-19 中国银联股份有限公司 A kind of exchange settlement method and device

Similar Documents

Publication Publication Date Title
CN111371892A (en) High-concurrency distributed message pushing system and method
CN110968431A (en) Message processing method, device and equipment
US20220337429A1 (en) Interactive aggregate signature method, and device and storage medium
CN110796545A (en) Batch processing method, equipment and storage medium for blockchain transaction
CN113515320A (en) Hardware acceleration processing method and device and server
CN111510493B (en) Distributed data transmission method and device
CN111445331A (en) Transaction matching method and device
CN107577700B (en) Database disaster tolerance processing method and device
CN113992654A (en) High-speed file transmission method, system, equipment and medium
CN114493884A (en) Data interaction method, device and system
CN114092248A (en) Transaction flow processing method and device
CN110889765B (en) Transaction information reporting method and device
CN108306815A (en) A kind of method, apparatus, equipment and computer readable storage medium obtaining message
CN111694683A (en) Data processing method and device, computer equipment and computer readable storage medium
CN101883345B (en) Method and device for processing AT command
CN111884769A (en) Message synchronization method and device
CN111400066A (en) Message distribution method and device
CN113645316B (en) Upgrade data processing method, upper computer, lower computer, device and storage medium
CN112732660B (en) Intervening file transmission method, device and system
CN111754348A (en) Scene combined transaction method and device
CN112333262A (en) Data updating prompting method and device, computer equipment and readable storage medium
CN111309500A (en) Service processing method, device, equipment and storage medium
CN111371780B (en) Message transmission method, system and device
CN115118628B (en) Abnormal message processing method and device
CN115118710B (en) File transmission method and device

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