The Artemis test-suite is full of examples of clustered, embedded brokers.
I'd recommend looking at
org.apache.activemq.artemis.tests.integration.cluster.distribution.SimpleSymmetricClusterTest.
You'll have to dig through some scaffolding for the test-suite, but
everything you need should be there.

Generally speaking MQTT will work with clustering, but there are some
caveats. For example, I think retained messages and LWT messages will only
work on the local node and not across the cluster. I'd love to hear about
your experience about what works and what doesn't.


Justin

On Wed, Jun 4, 2025 at 9:14 AM Vaclav Haisman
<vaclav.hais...@broadcom.com.invalid> wrote:

> Hi.
>
> We have developed a Spring Boot application with embedded ActiveMQ Artemis
> which has MQTT clients. We have our customized `ActiveMQSecurityManager5`
> instance which uses the Spring Framework beans to do its thing. Now, we
> would like to make it more performant and we are looking at clustering.
>
> Are there any examples of clustering setup with embedded ActiveMQ Artemis
> out there in the wild?
>
> Are we correct in the assumption that MQTT will work with the clustering
> well?
>
> --
>
> --
> VH
>
>
> This electronic communication and the information and any files
> transmitted with it, or attached to it, are confidential and are intended
> solely for the use of the individual or entity to whom it is addressed and
> may contain information that is confidential, legally privileged, protected
> by privacy laws, or otherwise restricted from disclosure to anyone else. If
> you are not the intended recipient or the person responsible for delivering
> the e-mail to the intended recipient, you are hereby notified that any use,
> copying, distributing, dissemination, forwarding, printing, or copying of
> this e-mail is strictly prohibited. If you received this e-mail in error,
> please return the e-mail to the sender, delete it from your computer, and
> destroy any printed copy of it.

Reply via email to