HiveMQ - Deny Wildcard Plugin
Written by HiveMQ Team
Published: August 23, 2013
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.
- 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
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? Drop us a line in the comments or contact us via email