Commodity panic buying request distribution method

A technology for requesting distribution and goods, applied in the field of e-commerce, can solve the problems of increasing failure scenarios, violating first-in-first-out, and inconsistent number sequence, etc., to improve user experience, ensure fairness, and avoid overselling and wrong selling Effect

Active Publication Date: 2019-10-15
北京首汽智行科技有限公司
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Inventory oversold is the primary problem to be solved in high-concurrency panic-buying scenarios. It can be solved based on pessimistic locks and queues, but it has a great impact on relative performance and concurrency; redis-based operations frequently read and write inventory values ​​under high concurrency will easily lead to server performance degradation. , reducing the concurrent processing capability of the system; regular queues can only fix the number of queues to be processed, and cannot be configured for business scenarios, which increases the failure scenarios and reduces the usability and user experience; the rush-purchase processing logic based on multi-load servers is applied to different hosts, causing users There is a problem of inconsistent numerical order in the request, which violates the principle of first-in first-out, making the rush purchase lack of fairness

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
  • Commodity panic buying request distribution method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be specifically introduced below in conjunction with the accompanying drawings and specific embodiments.

[0024] Such as figure 1 As shown, the method for allocating commodity snap-buying requests provided by the embodiment of the present invention includes the following steps:

[0025] S101, according to the SKU of the commodity, split the commodity inventory into multiple commodity single instances and store the multiple commodity single columns in the form of key-value respectively.

[0026] Among them, SKU is the smallest physically indivisible inventory unit, which refers to a product, and each product corresponds to a SKU, which is convenient for product identification, and the specific stock of goods can be determined according to the SKU.

[0027] As a specific embodiment, the key value of the product is generated by the SHA1 algorithm and stored in pieces in the form of hash modulo to ensure that the space for the product identifica...

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 commodity panic buying request distribution method, and relates to the technical field of electronic commerce, wherein the method comprises the steps: dividing a commodity inventory into a plurality of commodity single examples according to the SKU of a commodity, and storing the plurality of commodity single examples in a key-value form; obtaining the number of servers and the inventory number of each commodity case from a redis database; calculating the number of the commodity panic buying requests processed by each server, and reallocating the servers to the commodity panic buying requests according to the number of the commodity panic buying requests and the weights of the server response threads, so that the situations of overselling and wrong selling are avoided, the fairness of commodity panic buying is ensured, and the user experience is improved.

Description

technical field [0001] The invention belongs to the technical field of electronic commerce, and in particular relates to a method for allocating commodity snap-up requests. Background technique [0002] At present, various companies issue coupons to customers online to achieve important business functions such as city promotion, channel rewards, new activities, and settlement compensation. As a type of commodity, coupons are an important acquisition channel. How to efficiently and accurately allow users to obtain coupons has become an important problem to be solved in program design. [0003] At present, the solution to the high-concurrency rush-buying scenario is as follows: [0004] Inventory oversold is the primary problem to be solved in high-concurrency panic-buying scenarios. It can be solved based on pessimistic locks and queues, but it has a great impact on relative performance and concurrency; redis-based operations frequently read and write inventory values ​​unde...

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): G06F9/50G06Q10/08G06Q30/06G06F16/22
CPCG06F9/5027G06Q10/087G06Q30/0635G06F16/22Y02D10/00
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