A broker with a connection router configured can have a backup just like
any other broker can.

As the documentation [1] notes, A connection router works by redirecting a
client to the proper broker. This is done at the protocol level.
Unfortunately the STOMP protocol simply doesn't support any kind of
redirect functionality. STOMP clients can use the management API [2] to
determine where to connect.


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#redirection
[2]
https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#management-api-redirect-sequence

On Tue, Aug 19, 2025 at 2:38 AM Sergey Fedechkin <sergey.fedech...@gmail.com>
wrote:

> Hi, Justin.
>
> Thanks for your reply.
>
> Let me clarify my question. I mean connection router HA in case of router
> jvm or hardware failing, when the router stops to accept connection at all.
> It`s nice to have an additional (backup) router to serve the incoming
> connections, and to which client can failover.
>
> And one more question: is there any plan to support STOMP in connection
> router? I see the MQTT was supported in 2.42, maybe STOMP is on the way.
>
> Best regards,
> Sergey.
>
> пн, 18 авг. 2025 г. в 19:33, Justin Bertram <jbert...@apache.org>:
>
> > It's not clear to me that using any kind of HA URL makes sense in the
> > context of a connection router. If you're using a cluster pool [1] or a
> > discovery pool [2] then when the primary fails and the backup activates
> it
> > should either join the cluster or broadcast to the discovery group which
> > will allow the connection router to find it. If you're using a static
> pool
> > [3] then you can just add the URL for the backup there.
> >
> >
> > Justin
> >
> > [1]
> >
> >
> https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#cluster-pool
> > [2]
> >
> >
> https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#discovery-pool
> > [3]
> >
> >
> https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#static-pool
> >
> > On Mon, Aug 18, 2025 at 10:48 AM Sergey Fedechkin <
> > sergey.fedech...@gmail.com> wrote:
> >
> > > Hi.
> > >
> > > Could you help, is it possible to configure connection router as HA?
> > >
> > > Here
> > > <
> > >
> >
> https://stackoverflow.com/questions/74657675/activemq-artemis-connection-router-config-in-a-cluster
> > > >
> > > the symmetric-redirect
> > > <
> > >
> >
> https://github.com/apache/activemq-artemis-examples/blob/main/examples/features/connection-router/symmetric-redirect/readme.md
> > > >
> > > is suggested to prevent SPOF, but in config examples I haven`t found
> the
> > HA
> > > parameters.
> > > Is the client url
> "(tcp://localhost:61616,tcp://localhost:61617)?ha=true"
> > > working for connection routers?
> > >
> > > Thanks.
> > >
> > > Best regards,
> > > Serger.
> > >
> >
>
>
> --
> С уважением, Сергей
>

Reply via email to