HiveMQ - Deny Wildcard Plugin
We just released a new plugin: The Deny Root Wildcard Subscriptions Plugin for HiveMQ. With this plugin all subscriptions to the root wildcard topic (’#’) are denied by the broker and the client gets disconnected.
The Challenge With Root Wildcards
A subscribing client which subscribes the root wildcard will receive *every message which is ever published to a broker by any client. This means, the subscribing client has to handle an amount of messages which can be close to the message amount a broker has to handle. Such a subscriber can be an absolute bottleneck in many scenarios. In practice, it’s very hard to find a MQTT client library which can handle massive amounts of messages without slowing down something.
To protect yourself against this kind of subscribers, we developed this simple plugin. It’s super simple and because of this, it’s also a good starting point for your own plugin developments.
Installation
Navigate to the HiveMQ plugin store and download the latest version of the “Deny Root Wildcard Subscriptions” plugin and click “Download”.
Unzip the zip file and copy the jar file to the “<HIVEMQ_HOME>/plugins” directory
Done. No configuration needed
Conclusion
The Deny Root Wildcard Subscriptions plugin is a great way to protect yourself against subscribers on the root topic. The source code is available on Github under a commercial-friendly Apache2 license.
The plugin SDK of HiveMQ is free and open source and it’s dead easy to implement your own plugins in the shortest time possible.
Which plugins would you like to see next? Contact us.
HiveMQ Team
Team HiveMQ shares deep expertise in MQTT, Industrial AI, IoT data streaming, Unified Namespace (UNS), and Industrial IoT protocols. Our blogs explore real-world challenges, practical deployment guidance, and best practices for building modern, reliable, and a secure data backbone on the HiveMQ platform, along with thought leadership shaping the future of the connected world.
We’re on a mission to build the Industrial AI Platform that transforms industrial data into real-time intelligence, actionable insights, and measurable business outcomes.
Our experts are here to support your journey. Have questions? We’re happy to help. Contact us.
