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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


