Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Transaction data storage method, apparatus and device, and storage medium

A transaction data and transaction technology, applied in the field of data processing, can solve the problems of increased transaction time, inability to obtain transaction results, and increased access pressure on payment gateways, so as to reduce access pressure and improve data storage efficiency.

Active Publication Date: 2020-06-05
GUANGZHOU HUYA TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The storage of bills is generally stored in the database after the transaction with the payment gateway. However, under high concurrent requests, the transaction time may increase, and there is a risk of losing the bills after the transaction is stored in the database. Therefore, in the prior art, the transaction order number and related bills are sent to the message queue in advance, and then other threads pull the order number from the message queue, and then go to the payment gateway to query the transaction result according to the order number, and the transaction result is successful The relevant tickets in the message queue corresponding to the order number are stored in the database
[0004] In the existing technology, after the order number is pulled from the message queue, each order needs to query the payment gateway to obtain the bill, which will greatly increase the access pressure of the payment gateway
In addition, since each network transaction sends the order number to the message queue before the transaction, the payment gateway is queried after the order number is obtained from the message queue at this time. If the transaction has not been completed, the transaction result cannot be obtained, and the try, thus further increasing the access pressure of the payment gateway
Even if the message queue is replaced with a delay queue, it still needs to rely on the accuracy of the local time, otherwise it will also increase the access pressure of the payment gateway

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Transaction data storage method, apparatus and device, and storage medium
  • Transaction data storage method, apparatus and device, and storage medium
  • Transaction data storage method, apparatus and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] Figure 1a It is a schematic flowchart of a transaction data storage method provided by Embodiment 1 of the present invention. The method is applicable to the situation of storing transaction data during network transactions, and the method can be executed by a transaction data storage device, which can be composed of hardware and / or software, and can generally be integrated in mobile phones, computers and all In the electronic equipment of the online transaction client. Specifically include the following steps:

[0030] S110. Buffer the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to obtain the transaction result returned by the payment gateway.

[0031] In this embodiment, the transaction data in this embodiment can be the data generated during the network transaction process, which generally refers to all data that can be stored asynchronously without affecting the main transaction process...

Embodiment 2

[0049] Figure 2a It is a schematic flowchart of a transaction data storage method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above-mentioned embodiments, and provides a preferred transaction data storage method, specifically, further optimizes the transaction data obtained from the archive queue and stored in the database. Specifically include the following:

[0050] S210. Buffer the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to acquire the transaction result returned by the payment gateway.

[0051] S220. If the transaction success result returned by the payment gateway is received, transfer the transaction data cached in the temporary queue to the archive queue.

[0052] S230. Acquire the quantity of transaction data in the archiving queue according to a first preset period.

[0053] In this embodiment, the first preset period may be a ...

Embodiment 3

[0065] image 3 It is a schematic structural diagram of a transaction data storage device provided by Embodiment 3 of the present invention. refer to image 3 , the transaction data storage device includes: a temporary cache module 310, a queue transfer module 320, and a data storage module 330, each module will be described in detail below.

[0066] Temporary caching module 310, configured to cache the acquired transaction data into a temporary queue, and request the payment gateway according to the transaction data, so as to obtain the transaction result returned by the payment gateway;

[0067] The queue transfer module 320 is configured to transfer the transaction data cached in the temporary queue to the archiving queue if the successful transaction result returned by the payment gateway is received;

[0068] The data storage module 330 is configured to obtain the transaction data from the archiving queue and store it in a database.

[0069] The transaction data storag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a transaction data storage method and device, equipment and a storage medium. The method comprises the following steps: caching acquired transaction data to atemporary queue, and requesting a payment gateway according to the transaction data to acquire a transaction result returned by the payment gateway; if a transaction success result returned by the payment gateway is received, transferring the transaction data cached in the temporary queue to an archiving queue; and obtaining the transaction data from the archiving queue and storing the transaction data in a database. Through the technical scheme of the invention, the access pressure of the payment gateway can be reduced, and the data storage efficiency is improved.

Description

technical field [0001] Embodiments of the present invention relate to data processing technologies, and in particular to a transaction data storage method, device, equipment, and storage medium. Background technique [0002] With the popularity of online transactions, people pay more and more attention to the security of online transactions. Therefore, after the transaction is completed, it is necessary to store the generated transaction data such as bills in the database, so as to communicate with payment gateways such as banks and third-party payment platforms. Perform reconciliation. [0003] The storage of bills is generally stored in the database after the transaction with the payment gateway. However, under high concurrent requests, the transaction time may increase, and there is a risk of losing the bills after the transaction is stored in the database. Therefore, in the prior art, the transaction order number and related bills are sent to the message queue in advanc...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q20/38G06Q20/02G06F16/2455
CPCG06Q20/389G06Q20/027G06F16/24552Y02D10/00
Inventor 岑锦豪
Owner GUANGZHOU HUYA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products