Skip to content

Is it required to define the exchange and pseudo queue for direct reply-to? #363

Answered by WonderPanda
L-U-C-K-Y asked this question in Q&A
Discussion options

You must be logged in to vote

No, rpc-queue is where the RPC will be listening. It attaches to the exchange and routing key and all of the messages sent will end up in its own queue to be processed. If you want to get a response you need to send a request to to the exchange + routing key where the RPC is listening.

Once the RPC queue receives and processes the message the question is, how does it send you back a reply? Normally you would have to set up your own queue manually to receive the response on. With direct-reply you don't need to worry about that.

The takeaway is that the library abstracts this away from you and there is very little you need to do. Assuming you have an RPC listener configured as above and you…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@L-U-C-K-Y
Comment options

@WonderPanda
Comment options

@L-U-C-K-Y
Comment options

@WonderPanda
Comment options

Answer selected by L-U-C-K-Y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #362 on January 19, 2022 13:10.