Hi Prashanth,

ActiveMQ Artemis clusters support message load balancing [1] on demand by
default, see the MQTT Clustered Subscription Example [2].

To deploy an ActiveMQ Artemis cluster on Kubernetes I would take a look to
ArtemiCloud.io <https://artemiscloud.io/> [3]

[1]
https://activemq.apache.org/components/artemis/documentation/latest/clusters.html
[2]
https://github.com/apache/activemq-artemis/tree/main/examples/protocols/mqtt/clustered-queue-mqtt
[3] https://artemiscloud.io/

Regards,
Domenico

On Wed, 11 May 2022 at 09:11, Prashanth Babu <[email protected]>
wrote:

> Hi all,
>
> I'd like to know if I could create a cluster of Artemis nodes via a
> kubernetes deployment and use it as an MQTT broker for 2 way communication.
>
> The idea is to create a cluster of say 3 nodes and place it behind a load
> balancer. Now clients can connect to any one of the 3 nodes ( N1,N2,N3 )
> based on load balancer distribution.
>
> Let's assume a client C1 has connected to node N1 and published to topic T1
> Also assume a client C2 has connected to node N2 and subscribed to topic T1
>
> Would C2 get the message from C1 ?
>
> I wasn't able to find a suitable document on achieving this kind of
> clustering for MQTT using kubernetes.
>
> Thanks,
> Prashanth
>

Reply via email to