How do AutomaticRecoveryEnabled and amq.rabbitmq.reply-to interact? #1778
-
How does setting AutomaticRecoveryEnabled to true interact with using amq.rabbitmq.reply-to for RPC style communication? Specifically if a connection issue and recovery occurs before the server responds to the RPC request will the response be routed to the correct channel? (using EventingBasicConsumer if that matters). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As the docs explain, you can always switch to use a client-named unique durable queue for responses. |
Beta Was this translation helpful? Give feedback.
amq-rabbitmq.reply-to
entirely depends on channel state. By definition, when a TCP connection is lost, all channels are discarded by the server (not instantly but shortly after) and all pending Direct Reply-to state goes with it.As the docs explain, you can always switch to use a client-named unique durable queue for responses.
There's nothing wrong with that as long as you do not declare a new queue per request, or if you do, they are exclusive classic queues.