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

Redis-based RPC (Remote Procedure Call Protocol) communication method

A communication method and unique technology, applied in the direction of inter-program communication, instruments, multi-program devices, etc., can solve the problems of high call failure, unstable network, high difficulty in server debugging and maintenance, and improve development efficiency and high solution. The effect of coupling

Inactive Publication Date: 2017-10-10
GUANGZHOU AIYOU INFORMATION TECH
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, this mesh connection structure has the following disadvantages in a large-scale cluster network. First, it increases the complexity of the server-side architecture, making the debugging and maintenance of the server very difficult; second, due to the unstable network, There is a higher probability of call failure

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 RPC (Remote Procedure Call Protocol) communication method
  • Redis-based RPC (Remote Procedure Call Protocol) communication method
  • Redis-based RPC (Remote Procedure Call Protocol) communication method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.

[0019] Such as Figure 1-2 As shown, the embodiment of the present invention provides a Redis-based RPC communication method, including the following steps:

[0020] S1, establish a connection between the calling server and the Redis server, and obtain a unique ID;

[0021] S2. The calling server subscribes to a corresponding channel according to the unique ID;

[0022] S3, the called server sends RPC data to the Redis server;

[0023] S4, the Redis server forwards the received RPC data to the calling server through the corresponding channel subscribed in S2;

[0024] S5. After receiving the R...

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 RPC (Remote Procedure Call Protocol) communication method and relates to the field of server-side distributed architectures. The RPC communication method comprises the following steps: forwarding RPC data of a called side server to a calling side server through a unique subscribe channel based on a Publish command and a Subscribe command of Redis, analyzing and calling a corresponding method, and realizing remote call. Since a connected relation is not directly established between the calling side server and the called side server and the connection is indirectly established through the Redis service, the communication method has an extremely high decoupling property, and the server cluster structure can be simple and clear. Meanwhile, the condition that the RPC connection is programmed for each server process is avoided, and the development efficiency of the server program is improved.

Description

technical field [0001] The invention relates to the field of server-side distributed architecture, in particular to a Redis-based RPC communication method. Background technique [0002] At present, in a cluster server, when a remote call needs to be made between two servers, the following method is generally adopted: establish a network connection for every two services that may have RPC communication, and then pass the method name and parameters to be called through the TCP or UDP protocol. [0003] However, this mesh connection structure has the following disadvantages in a large-scale cluster network. First, it increases the complexity of the server-side architecture, making the debugging and maintenance of the server very difficult; second, due to the unstable network, There is a high probability of call failure. Contents of the invention [0004] The purpose of the present invention is to provide a Redis-based RPC communication method, thereby solving the aforementio...

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/06G06F9/54
CPCG06F9/547H04L67/133
Inventor 罗培羽邝松恩
Owner GUANGZHOU AIYOU INFORMATION TECH
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