Large-scale concurrent request-oriented e-commerce transaction matching method and system

An e-commerce and large-scale technology, applied in the field of data processing, can solve problems such as queue structure CPU false sharing, lock programming, thread data exchange inefficiency, etc.

Active Publication Date: 2021-04-02
临沂市新商网络技术有限公司
View PDF13 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The traditional queue structure has the problems of CPU false shari

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
  • Large-scale concurrent request-oriented e-commerce transaction matching method and system
  • Large-scale concurrent request-oriented e-commerce transaction matching method and system
  • Large-scale concurrent request-oriented e-commerce transaction matching method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] This embodiment provides an e-commerce transaction matching method for large-scale concurrent requests;

[0046] Such as figure 1 As shown, the e-commerce transaction matching method for large-scale concurrent requests includes:

[0047] S101: Obtain basic information of several seller terminals; obtain basic information of several buyer terminals;

[0048] S102: Use a circular buffer to store the information of the seller terminal and the buyer terminal; the circular buffer is a circular address block;

[0049] S103: set a unique serial number for each buyer terminal, and set a sequence barrier;

[0050] S104: Use the CAS operation to replace the lock operation, resolve the transaction conflicts between the buyer's terminals, and form transaction data; send the formed transaction data to the seller's terminal and the buyer's terminal.

[0051] Exemplarily, the basic information of the seller terminal includes: seller terminal number, product name, product type and p...

Embodiment 2

[0099] This embodiment provides an e-commerce transaction matching system based on a circular buffer;

[0100] An e-commerce transaction matching system for large-scale concurrent requests, including:

[0101] An acquisition module configured to: acquire basic information of several seller terminals; acquire basic information of several buyer terminals;

[0102] The storage module is configured to: use a circular buffer to store the information of the seller terminal and the buyer terminal; the circular buffer is a circular address block;

[0103] a setting module, which is configured to: set a unique serial number for each buyer terminal, and set a sequence barrier;

[0104] The transaction conflict resolution module is configured to: replace the lock operation with the CAS operation, resolve the transaction conflict between the buyer terminals, and form transaction data; send the formed transaction data to the seller terminal and the buyer terminal.

[0105] What needs to ...

Embodiment 3

[0109] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein, the processor is connected to the memory, and the one or more computer programs are programmed Stored in the memory, when the electronic device is running, the processor executes one or more computer programs stored in the memory, so that the electronic device executes the method described in Embodiment 1 above.

[0110] It should be understood that in this embodiment, the processor can be a central processing unit CPU, and the processor can also be other general-purpose processors, digital signal processors DSP, application specific integrated circuits ASIC, off-the-shelf programmable gate array FPGA or other programmable logic devices , discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, o...

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 large-scale concurrent request-oriented e-commerce transaction matching method and system. The method comprises the steps of obtaining basic information of a plurality of seller terminals, obtaining basic information of a plurality of buyer terminals, storing the seller terminal information and the buyer terminal information by adopting a circular buffer area, wherein thecircular buffer area is an annular address block, setting a unique serial number for each buyer terminal, and setting a sequence obstacle, adopting CAS operation to replace lock operation, solving transaction conflicts existing between buyer terminals, and forming transaction data, and sending the formed transaction data to the seller terminal and the buyer terminal. The problems of CPU pseudo sharing, lock programming and low efficiency of data exchange between independent threads of a traditional queue are solved. An e-commerce transaction matching method and an engine are designed, and a system single thread developed based on the engine can support 5 million orders per second.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a method and system for e-commerce transaction matching for large-scale concurrent requests. Background technique [0002] The statements in this section merely mention the background art related to this application, and do not necessarily constitute the prior art. [0003] In the fast-paced modern information society, "efficiency" is the label, and the same is true for business activities. Convenience, speed, and time-saving have become the business concepts of the main body of transactions. In particular, the popularization of computer network applications has gradually narrowed the traditional time and space limitations, coupled with the continuous improvement of modern enterprise systems, innovations in financial payment methods, advances in information processing technology, the formulation of electronic security transaction agreements, the development of c...

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
IPC IPC(8): G06Q40/04G06F9/54
CPCG06Q40/04G06F9/544G06F9/546
Inventor 张庆崔旭岳涛李奕管绍朋
Owner 临沂市新商网络技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products