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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
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