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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com