From 6b720bbd22aca6d6c0f3b9934432b568154e919a Mon Sep 17 00:00:00 2001 From: Daniel Hammer Date: Tue, 23 May 2023 18:06:34 +0200 Subject: [PATCH] Docs; Align client connection order reference Mention an `addressShuffleMode` option when describing a fail over connection factory behavior. --- src/reference/asciidoc/amqp.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reference/asciidoc/amqp.adoc b/src/reference/asciidoc/amqp.adoc index ccb8ab66..50da8cd4 100644 --- a/src/reference/asciidoc/amqp.adoc +++ b/src/reference/asciidoc/amqp.adoc @@ -745,7 +745,7 @@ See <> for more information about ensuring message delivery. When using HA queues in a cluster, for the best performance, you may want to connect to the physical broker where the lead queue resides. The `CachingConnectionFactory` can be configured with multiple broker addresses. -This is to fail over and the client attempts to connect in order. +This is to fail over and the client attempts to connect in accordance with the configured `AddressShuffleMode` order. The `LocalizedQueueConnectionFactory` uses the REST API provided by the management plugin to determine which node is the lead for the queue. It then creates (or retrieves from a cache) a `CachingConnectionFactory` that connects to just that node. If the connection fails, the new lead node is determined and the consumer connects to it.