Redis-based request processing method, device, gateway and system

A request processing and gateway technology, which is applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve the problems of forwarding efficiency to be improved, no cache mechanism, etc., to save memory, ensure time efficiency and space efficiency, and improve The effect of interactive efficiency

Inactive Publication Date: 2019-10-08
LINDE CHINA FORKELEVATOR TRUCK CORP
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the process of gateway forwarding, it often forwards through the server memory. It does not have a corresponding caching mechanism, and the efficiency of forwarding needs to be improved.

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
  • Redis-based request processing method, device, gateway and system
  • Redis-based request processing method, device, gateway and system
  • Redis-based request processing method, device, gateway and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The present invention will be further described below through specific embodiments.

[0043] see figure 1 As shown, on the one hand, a redis-based request processing method of the present invention includes:

[0044] S101, receiving multiple requests and performing analysis to obtain the analysis data of each request;

[0045] S102, according to the analysis data, judge whether the specified field value of each request includes a preset number; if yes, insert the parsed request into the redis message queue associated with the preset number; if not, insert the parsed The request is inserted into the default redis message queue.

[0046] In this embodiment, the request may be a message stream assembled according to a communication protocol.

[0047] It should be noted that the preset number includes one or more. Specifically, it can be placed in a collection such as an array. When a request message is received, it includes whether the specified field value in the reque...

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 redis-based request processing method and device, a gateway and a redis-based request processing system. The processing method comprises the following steps: receiving a plurality of requests and analyzing the requests to obtain analyzed data of each request; judging whether the specified field of each request comprises a preset number or not according to the analysis data; if yes, inserting the analyzed request into a redis message queue associated with the preset number; and if not, inserting the analyzed request into a default redis message queue. On the basis of aredis caching mechanism, no memory is needed, so that not only is the memory saved, but also the forwarding efficiency is improved; meanwhile, in the request analysis process, the request is forwarded to a specific redis message queue according to the value of a specified field in the request, and classification processing of the request message is achieved; and the external server interacts withthe redis message queue in a polling manner, so that resources are saved, and the interaction efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of gateway data processing, in particular to a redis-based request processing method, device, gateway and system. Background technique [0002] The currently used gateway service program mainly receives requests from external services. The gateway parses the requests according to specific rules, forwards them to related services for processing, and sends the processing results to external services. The request parsing includes protocol parsing, protocol filtering, and protocol forwarding. [0003] Protocol analysis is divided into partial analysis and full analysis. Part of the analysis only analyzes the protocol header, and the encrypted analysis of the message content is handled by a specific service, while the full analysis analyzes the entire message, including decryption, reducing the burden of subsequent analysis. [0004] Protocol filtering is to process requests at the TCP layer. For example, messa...

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): H04L29/08H04L29/06H04L12/24
CPCH04L69/22H04L41/0813H04L67/566H04L67/568
Inventor 高歌汪成林
Owner LINDE CHINA FORKELEVATOR TRUCK CORP
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