Why is there no reply_to_exchange
?
#9015
-
In general, consumers deal with queues, and producers deal with exchanges. The entire concept of "send a message to a queue" is actually "send a message to the default exchange with a routing key of the queue name". When using RPC style with If you want the current process to handle the response, then you do, in fact, have both, so using typical consumer patterns is in order. However, if you want to handle the response in a completely asynchronous manner where PartyA sends a message to PartyB and wants the response to go to PartyC, PartyA is merely a producer, but required to know a specific queue name that will get to PartyC. In this case, it seems like it would make a lot of sense to allow something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@ehaynes99 Direct Reply To had one very specific goal in mind: avoiding a one-off temporary queue declaration for each and every response. That's a very expensive operations for request-reply systems with a high throughput rate. You can build what you want without Direct Reply-to, and use exchanges or even exchange-to-exchange bindings. |
Beta Was this translation helpful? Give feedback.
@ehaynes99 Direct Reply To had one very specific goal in mind: avoiding a one-off temporary queue declaration for each and every response. That's a very expensive operations for request-reply systems with a high throughput rate.
You can build what you want without Direct Reply-to, and use exchanges or even exchange-to-exchange bindings.