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

Seckilling method based on a Swole framework

A seckill and framework technology, applied in the seckill method and system field based on the Swoole framework, can solve the problems of data transmission reliability and consistency, increase system complexity, reduce system coupling and other problems, achieve rapid response to user requests, The effect of reducing CPU consumption and speeding up access rate

Pending Publication Date: 2021-06-11
成都环宇知了科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The current mainstream seckill architecture is the "browser-site-service-data" model. When a large number of users flood into the site, the business of the website is tested by a large number of concurrency, and the IO operation capability of the database is suitable for high-concurrency data The request operation is very limited, so there is a technical bottleneck in this operation, so many systems will use the consumption queue to perform asynchronous processing to improve the performance of the system, which reduces the coupling of the system, but at the same time the complexity of the system The increase and decrease in availability have brought about reliability and consistency issues in data transmission, so how to correctly and effectively process the data results of queue consumption is a technical bottleneck

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
  • Seckilling method based on a Swole framework
  • Seckilling method based on a Swole framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0048] like figure 1 As shown, the present invention provides a seckill method based on the Swoole framework, comprising the following steps:

[0049] S1. Authorize the user to enter the seckill page and cache user information;

[0050] S2. Accept the user’s second kill request, check the user’s second kill memcached cache, and determine whether there is a cache. If yes, return the second kill result in the cache to the user. If not, then check the inventory. If the product inventory minus the user’s second kill Return if the seckill inventory is less than 0, and the seckill is over;

[0051] S3. Put the seckill data into the redis queue for consumption;

[0052] S4. Wait for the consumption result, and re-request the processing result after a delay;

[0053] S5. Synchronously return the processing result to the user after obtaining the processing result;

[0054] S6. Create a consumption service. After consuming the service, check the product inventory to determine whether ...

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 seckilling method based on a Swole framework. The seckilling method comprises the steps: S1, enabling an authorized user to enter a seckilling page and caching user information; s2, receiving an order-placing seckilling request of the user, checking a seckilling memcached cache of the user, judging whether the cache exists or not, if yes, returning a seckilling result in the cache to the user, if not, checking the inventory, if the result obtained by subtracting the seckilling inventory of the user from the commodity inventory number is smaller than 0, returning, and ending the seckilling; s3, inputting the seckilling data into a redis queue for consumption; s4, waiting for a consumption result, and requesting a processing result again after time delay; (the interface makes a delay request, the interface delay is set, data is acquired, and the delay is set to be 2s) S5, and after a processing result is acquired, synchronously returning the processing result to the user; and S6, creating a consumption service, checking a commodity inventory after the consumption service, judging whether consumption succeeds or not, if so, carrying out ordering processing, and if not, recording seckilling failure information into a seckilling memcached cache of the user, and ending seckilling.

Description

technical field [0001] The present invention relates to the technical field of network development, in particular to a Swoole frame-based seckill method and system. Background technique [0002] With the popularity of e-commerce, shopping on Internet platforms has become a common phenomenon. Seckill is a limited-time online snap-buying activity for the purpose of promotion, allowing multiple people to snap up goods online in real time. The current mainstream seckill architecture is the "browser-site-service-data" model. When a large number of users flood into the site, the business of the website is tested by a large number of concurrency, and the IO operation capability of the database is suitable for high-concurrency data The request operation is very limited, so there is a technical bottleneck in this operation, so many systems will use the consumption queue to perform asynchronous processing to improve the performance of the system, which reduces the coupling of the syst...

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): G06Q30/06
CPCG06Q30/0607
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