Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and application based on Rabbit MQ duplex communication

A communication and communication module technology, applied in the computer field, can solve problems such as inability to communicate

Pending Publication Date: 2022-06-03
WUXI CHINAC DATA TECH SERVICE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method and application based on Rabbit MQ duplex communication, to solve the problem that when it is necessary to communicate with the opposite end, only point-to-point connection can be performed, and the communication cannot be carried out when the position of the opposite end is unknown.

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
  • Method and application based on Rabbit MQ duplex communication
  • Method and application based on Rabbit MQ duplex communication
  • Method and application based on Rabbit MQ duplex communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] like Figure 1 to Figure 5 As shown, a method based on Rabbit MQ duplex communication in an embodiment of the present invention is introduced, and the method includes the following steps.

[0041] In step S101, the sender creates a left queue and a right queue respectively.

[0042] The working principle of RabbitMQ is that the message publisher sends a message to the Rabbit MQ proxy server, the switch inside the proxy server receives the information, passes the message to the message queue bound to the switch and saves it, and the consumer establishes a connection with the message proxy server , and then take out the message from the corresponding message queue for processing.

[0043] The sending end and the receiving end agree on the communication connection configuration to be used, including: Rabbit MQ address, user name, password, key, switch to be used for communication, left queue and right queue. Exchanges are used to receive messages sent by message publishers...

Embodiment 2

[0054] like Figure 6 to Figure 8 As shown, a method based on Rabbit MQ duplex communication in an embodiment of the present invention is introduced, and the method includes the following steps.

[0055] In step S201, the receiving end creates a left queue and a right queue respectively.

[0056] The present invention is not only applicable to the situation of one sending end and one receiving end, but also applicable to one-to-many, many-to-one and many-to-many situations, that is, one sending end may correspond to multiple receiving ends, or multiple receiving ends may correspond to A sender, or multiple different receivers correspond to multiple different senders at the same time, because the routing rules are different, so the lines are independent of each other and do not interfere with each other. In this embodiment, it is taken as an example that one sending end corresponds to multiple receiving ends.

[0057] The working principle of RabbitMQ is that the message publ...

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 method and application based on Rabbit MQ duplex communication, and the method comprises the following steps: creating a left queue and a right queue, the left queue is used for at least one sending end to monitor a message sent by at least one receiving end, and the right queue is used for at least one receiving end to monitor a message sent by at least one receiving end; the rightward queue is used for at least one receiving end to monitor a message sent by at least one sending end; the sending end binds the Rabbit MQ switch with a left direction queue according to a left direction routing rule, and binds the Rabbit MQ switch with a right direction queue according to a right direction routing rule; and the sending end communicates with the receiving end after monitoring a handshake message of the receiving end in the left queue, wherein the handshake message is sent by the receiving end according to the right routing rule. According to the method, a sending end can receive a message by using a left queue and send the message to a switch through key: connection.duplex.right, a receiving end receives the message by using a right queue and sends the message to the switch through key: connection.duplex.left, and duplex communication can be carried out only by sending a handshake message by the receiving end.

Description

technical field [0001] The present invention relates to the computer field, in particular to a method and application based on Rabbit MQ duplex communication. Background technique [0002] In the prior art, the application methods for message distribution or broadcasting through Rabbit MQ all operate through the consumer mode. The characteristic of the consumer mode is that the message publisher does not know the number of consumers, and does not pay attention to whether the consumer is online, as long as the message is produced and pushed to the message bus. In this mode, consumers and message publishers do not know each other's existence, so traditional communication cannot be carried out. [0003] The information disclosed in this Background section is only for enhancing the understanding of the general background of the present invention and should not be taken as an acknowledgment or any form of suggestion that the information constitutes the prior art that is already ...

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): H04L45/16H04L45/30H04L47/50H04L49/90
CPCH04L45/16H04L45/306H04L47/50H04L49/90Y02D30/50
Inventor 沈超霆
Owner WUXI CHINAC DATA TECH SERVICE