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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com