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

High-concurrency scene processing method and device based on Redis and Kafka online snap-up system

A processing method and scene technology, applied in transmission systems, digital transmission systems, data processing applications, etc., can solve problems such as increasing the cost of ordinary users, achieve the effects of increasing costs, solving heavy loads, and preventing cheating behaviors

Active Publication Date: 2018-08-17
成都博点科技有限公司
View PDF6 Cites 19 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 based on Redis and Kafka online snap-up system
  • High-concurrency scene processing method and device based on Redis and Kafka online snap-up system
  • High-concurrency scene processing method and device based on Redis and Kafka online snap-up system

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 invention provides a high-concurrency scene processing method and device based on a Redis and Kafka online snap-up system; the method comprises the following steps: generating a login token basedon a user login request, writing the login token into caches of front-end Cookie and rear-end Redis, checking whether the front-end login token is matched with the rear-end login token; if not, returning an operation failure result; if yes, judging whether the user login token is valid; if not, returning an operation failure result; if yes, judging whether a commodity lock of a corresponding commodity is obtained or not; if not, returning an operation failure result; if yes, pushing request data of snap-up success to a Kafka information queue. According to the method and the device in the invention, loading pressure of a server and a database is effectively reduced through current-limiting peak-clipping processing; a large number of concurrent requests can be borne in short time; the throughput capacity of the cluster is greatly increased; through front-rear end check on the number of user access times, a cheating user can be quickly found out, so that the event is guaranteed to be carried out stably and fairly.

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
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