Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request/Response using RabbitMQ #143

Open
quesGit opened this issue Sep 28, 2021 · 2 comments
Open

Request/Response using RabbitMQ #143

quesGit opened this issue Sep 28, 2021 · 2 comments

Comments

@quesGit
Copy link

quesGit commented Sep 28, 2021

Hi all,

Anyone have an example how the broadcast request/response is working using CFXSDK library? So let's say a Areyouthererequest is sent.
Each endpoint would receive the Areyouthererequest through an exchange. Do i need to bind the exchange with the Queue? Where is it expected to reply with the AreyouThereReponse, what path should it follow? Please give me some idea

@quesGit quesGit changed the title Request/Response using RabbitMQ- Event not firing Request/Response using RabbitMQ Oct 6, 2021
@henryclon
Copy link

I too have this question, if you found out how it works please let me know!

@SarumathiGetech
Copy link
Contributor

Hi

Broadcast request/repsonse work from endpoint to endpoint with the help of broker. They are called requests but they are actually events requiring a response... i.e : AreyouThereRequest/Response.

On the sending side you need to add a publish channel using endpoint.AddPublishChannel() with the correct uri to reach the broker .i.e Publish Address (exchange name).

On the receiving side, you are suppossed to used OnCFXMessageReceived to receive the AreyouThereRequest message. Then this received can send the response back with endpoint.Publish the AreYouThereResponse message .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants