Skip to content

Spring Websockets Broker relay supporting active/standby broker #26169

Closed
@kmandalas

Description

@kmandalas

In order to support Broker Cluster setups and according to Connecting to a Broker we need to configure a supplier of addresses, instead of a fixed host and port.

However if we have an active/standby setup or in other words High Availability (HA) and Failover cluster (example: https://activemq.apache.org/components/artemis/documentation/1.0.0/ha.html) where only one of the broker instances is active at any time, is this approach still applicable? How will the ReactorNettyTcpClient behave in case of a Broker cluster node failure in general? It is mentioned that the STOMP broker relay always connects, and reconnects as needed if connectivity is lost, to the same host and port. In case of multiple addresses or an active/passive setup, if the TCP connection fails then an attempt is made against the next available node in the list?

@rstoyanchev Adding to the above questions just to note that AbstractWebSocketMessageBrokerConfigurer is Deprecated since 4.0.1 so perhaps an update in the reference docs is needed along with a more thorough explanation on what can be supported out of the box VS the custom implementation needed in production environments where connecting to a cluster is usually expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: messagingIssues in messaging modules (jms, messaging)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions