More of an aside..note the connection-router can also be used without
any protocol level redirect, just using a local target filter without
any broker pool, effectively acting as a connection filter on each
broker to permit particular subsets of clients. Clients that are then
either externally load balanced across the brokers, or that themselves
just know about all the brokers, attempt connecting until [one of]
'their' broker[s] actually permits the connection. This is described
at 
https://activemq.apache.org/components/artemis/documentation/latest/connection-routers.html#data-gravity.
The symmetric-simple example uses that approach for example, with AMQP
clients that know about both brokers and can try them each, then both
brokers have connection-routers deciding which clients to allow in,
but each brokers routers dont know about each other to do a protocol
redirect as occurs in the symmetric-redirect example.

On Tue, 19 Aug 2025 at 15:02, Justin Bertram <jbert...@apache.org> wrote:
>
> 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.
> > > >
> > >
> >
> >
> > --
> > С уважением, Сергей
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@activemq.apache.org
For additional commands, e-mail: users-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to