Use Shared Subscriptions
masterhmq supports shared subscriptions using the $share/<group>/<topic> syntax. This allows multiple clients in a group to share the load of a topic.
Pattern:
- Topic format:
$share/<group>/topic - Subscribe command:
mosquitto_sub -t '$share/<group>/topic' - Publish command:
mosquitto_pub -t 'topic'
| Prefix | Examples | Publish |
| -------------------| ----------------------------------------- | ---------------------------- |
| $share/<group>/topic | mosquitto_sub -t ‘$share/<group>/topic’ | mosquitto_pub -t ‘topic’ |