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

Message routing method, device and system

A message and routing technology, applied in the field of network communication, can solve problems such as manual adjustment of forwarding rules, achieve the effect of improving scalability and avoiding operation and maintenance costs

Inactive Publication Date: 2016-10-26
LETV HLDG BEIJING CO LTD +1
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a message routing method, device and system to solve the defect in the prior art that manual adjustment of forwarding rules is required

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
  • Message routing method, device and system
  • Message routing method, device and system
  • Message routing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] see figure 1 , the embodiment of the present invention provides a message routing method, including:

[0025] Step 101: Receive a message subscription request sent by an application program with an application program ID, and the message subscription request includes a message ID;

[0026] Specifically, message routing is implemented based on the TCP protocol; the application program establishes a TCP connection with the message router through a service port, and each connection is correspondingly assigned a session (session ID, ie application program identification), which is used to represent an application program; message identification It can include message type, message content, message time, etc., and can be obtained by defining a general message protocol format. For example, the message type (msgType) is identified by the protocol header, and the communication between programs must abide by this protocol; message router By listening to a service port (for exam...

Embodiment 2

[0036] see figure 2 , the embodiment of the present invention provides a message routing method, including:

[0037] Step 201: Receive a message subscription request sent by an application program with an application program ID, and the message subscription request includes a message ID;

[0038] Specifically, message routing is implemented based on the TCP protocol; the application program establishes a TCP connection with the message router through a service port, and each connection is correspondingly assigned a session (session ID, ie application program identification), which is used to represent an application program; message identification It can include message type, message content, message time, etc., and can be obtained by defining a general message protocol format. For example, the message type (msgType) is identified by the protocol header, and the communication between programs must abide by this protocol; message router By listening to a service port (for examp...

Embodiment 3

[0064] see Figure 5 , an embodiment of the present invention provides a message routing device, including:

[0065] The receiving module 10 is configured to receive a request for subscribing messages sent by an application program with an application program identification, and the request for subscribing messages includes a message identification;

[0066] Specifically, the message routing is implemented based on the TCP protocol; the application program establishes a TCP connection with the receiving module 10 through a service port, and each connection is correspondingly assigned a session (session ID, i.e. application program identification), which is used to represent an application program; The identification can include message type, message content, message time, etc., which can be obtained by defining a general message protocol format, for example, the message type (msgType) is identified by the protocol header, and the communication between programs must abide by 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 embodiment of the present invention provides a message routing method, device and system. The method comprises the steps of receiving a message subscription request sent by an application program with an application program identifier, wherein the message subscription request comprises a message identifier; according to the message subscription request, generating a subscription relationship of the application program identifier and the message identifier; according to the subscription relationship, sending a message corresponding to the message identifier to the application program corresponding to the application program identifier. According to the message routing method, device and system provided by the embodiment of the present invention, the subscription relationship of the application program identifier and the message identifier is generated according to the message subscription request, and according to the subscription relationship, the message corresponding to the message identifier is sent to the application program corresponding to the application program identifier, thereby adjusting a forwarding rule of the message routing automatically, avoiding a higher operation and maintenance cost brought by adjusting the forwarding rule artificially, and improving the extendibility of the system.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of network communication, and in particular, to a message routing method, device and system. Background technique [0002] A distributed system is composed of multiple applications, and most of the applications communicate with each other through RPC (Remote Procedure Call Protocol, Remote Procedure Call Protocol). A software (message router) is used to forward messages for each program, so that each program only needs to communicate with the message router. [0003] In the prior art solutions, the message router generally implements message routing by forwarding messages according to preset forwarding rules. [0004] The forwarding rules of the above message routing methods are all manually set. Every time the forwarding rules are changed, it is necessary to manually intervene in the message router to adjust the forwarding rules. Relatively poor. Contents of the invention [0...

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): H04L12/851H04L29/06
CPCH04L47/2425H04L69/16
Inventor 魏泽涛胡勇赵月显陈翔
Owner LETV HLDG BEIJING CO LTD
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