/activemq-mqtt-custom

Custom MQTT Strategy for ActiveMQ 5.11

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

ActiveMQ Custom Subscriber Strategy example

Custom MQTT Strategy for ActiveMQ 5.11

About

Some MQTT subscribers needs to be several replicas, doing a round-robin processing messages. As MQTT only uses topics, this is an example to make MQTT subscribers act as if they were using queues. See https://issues.oasis-open.org/browse/MQTT-234.

It is based on mqtt-virtual-topic-subscriptions. Form more information, see http://activemq.apache.org/mqtt.html.

This subscription is the same as mqtt-virtual-topic-subscriptions, unless the subscription topic starts with "$shared". Se

Disclaimer

This repo only shows how it can be implemented as an example, but it is only tested roughly (happy path), and it is not recommended for production.