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

Method and device for online transactions

A network transaction and transaction technology, applied in the Internet field, can solve the problems of prolonging the transaction processing time, and achieve the effect of shortening the transaction processing time, ensuring accuracy, and improving accuracy

Active Publication Date: 2021-10-01
联动优势电子商务有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the case of a node system in the cluster where the transaction request message is lost, the final status must be determined after the reconciliation is completed, which greatly prolongs the transaction processing time

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
  • Method and device for online transactions
  • Method and device for online transactions
  • Method and device for online transactions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

[0037] Such as Figure 5 As shown, according to an embodiment of the present invention, a network transaction method is provided, and the network transaction method includes the following steps:

[0038] S52. The first application sequentially sends a transaction request message and a query request message to the second application.

[0039] S54. When the transaction request message and the query request message arrive at the second application, respectively perform lock grabbing operations, w...

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 invention discloses a network transaction method and device. The network transaction method includes: a first application sends a transaction request message and a query request message to a second application in sequence; when the transaction request message and the query request message arrive at the second application Each application performs lock grabbing operations separately, wherein the one that arrives at the second application after the transaction request message and the query request message fails to grab the lock; among them, if the lock grabbing of the transaction request message succeeds, the second application The application accepts the transaction request of the first application; if the transaction request message fails to grab the lock, the second application returns the transaction failure to the first application. Through the above-mentioned technical solution of the present invention, it is possible to ensure the consistency of the transaction state in the case of network delay or system application failure in the same transaction flow.

Description

technical field [0001] The present invention relates to the technical field of the Internet, specifically, to a network transaction method and device, and more specifically, to a method for ensuring consistency of transaction status in the same transaction flow under network delay or system application failure scenarios. Background technique [0002] Usually, in a transaction system, the transaction initiator initiates a transaction, and if the transaction is returned as being accepted, unknown or timed out, the transaction initiator will initiate a query operation on the transaction. And each transaction will go through multiple applications, here, application A and application B are used instead of applications; the order of each transaction request message is from application A to application B. In a distributed cluster environment, due to network delay or a certain application failure scenario, the query request message may arrive at the B application before the transact...

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 Patents(China)
IPC IPC(8): G06F9/52G06Q40/04
CPCG06F9/524G06Q40/04
Inventor 欧阳平周咏来吴丽
Owner 联动优势电子商务有限公司
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