Look on this RPC example. You will have to slightly modify it to exit listening and start publishing.
publishing and subscribing through rabbitmq server
-
28-09-2022 - |
Domanda
I need a scenario where one node send a message and another node starts waiting to get the message.
Each node after getting message sent turns into listener and after receiving message it turns into publisher again.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow