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

High concurrency scene processing method and device for online snap-up system based on redis and kafka

A technology of processing methods and scenarios, applied in transmission systems, data processing applications, digital transmission systems, etc., can solve problems such as increasing the cost of ordinary users, and achieve the effects of increasing costs, solving overload, and preventing cheating.

Active Publication Date: 2021-06-18
成都博点科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for experienced studios, the verification code can be cracked by various methods such as early access and graphic recognition, which can only increase the cost of ordinary users and benefit cheaters

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
  • High concurrency scene processing method and device for online snap-up system based on redis and kafka
  • High concurrency scene processing method and device for online snap-up system based on redis and kafka
  • High concurrency scene processing method and device for online snap-up system based on redis and kafka

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062]The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0063] Such as figure 1 As shown, it is a flow chart of Embodiment 1 of a high-concurrency scene processing method for an online snap-up system based on Redis and Kafka disclosed by the present invention. The method includes:

[0064] S101. Generate a login token based on a user login request;

[0065] When the online snap-up system needs to process massive requests in high-concurrency scenarios, the corresponding login token is first generated according to th...

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 present invention provides a method and device for processing high-concurrency scenarios of an online snap-up system based on Redis and Kafka. The method includes: generating a login token based on a user login request, writing the login token into the front-end Cookie and the back-end Redis cache, Check whether the front-end login token matches the back-end login token, if not, return the operation failure result, if so: determine whether the user login token is valid, if not, return the operation failure result, if yes, then: determine Whether the product lock of the corresponding product has been obtained, if not, return the operation failure result, if so: push the request data of the successful snap-up to the Kafka message queue. The present invention effectively reduces the load pressure on the server and the database through current limiting and peak shaving processing, can withstand a large number of concurrent requests in a short period of time, and greatly increases the throughput of the cluster; , can quickly find out cheating users, ensuring stable and fair activities.

Description

technical field [0001] The invention belongs to the technical field of high-concurrency scene processing, and in particular relates to a high-concurrency scene processing method and device for an online snap-up system based on Redis and Kafka. Background technique [0002] With the popularity of the Internet, more and more users choose to use the Internet to purchase goods, participate in house purchases and lottery. In order to attract users, merchants often hold promotional activities such as flash sales and limited-time panic buying, that is, they provide a limited number of discounted products within a limited time. Due to the low price, they are often sold out in a second. Due to the situation of too many monks and too few porridges, a large number of users frequently access the server before and after the event, and the traffic will surge several times or even dozens of times than usual, which will bring huge pressure to the server. After a certain pressure capacity is...

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 Patents(China)
IPC IPC(8): H04L29/06H04L9/32G06Q30/06
CPCG06Q30/0609G06Q30/0637H04L9/3213H04L9/3236H04L9/3297H04L63/0807H04L63/0876H04L63/108
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