Scenarios
The MQTT protocol is based on the publish/subscribe (Pub/Sub) model. Topics are used to categorize and manage messages generated by the system. Clients can subscribe to one or more topics to receive messages on those topics. Clients can also publish messages to a topic so that other clients subscribed to that topic can receive them. According to the standard MQTT protocol, topics support a hierarchical structure and are dynamic, using "/" as the delimiter between levels.
Features
TDMQ for MQTT supports automatic topic creation. You can send and receive messages without creating topics in advance. Additionally, to help you manage topics, TDMQ for MQTT supports viewing monitoring metrics for specified topic prefixes. For example, when you use topic "AAA" for messaging, this topic serves as a top-level prefix. You can then view monitoring data for all related sub-topics under this prefix, such as "AAA/1", "AAA/2", "AAA/BBB/CCC". This allows you to monitor business metrics for each topic prefix in real time.
Note:
Previously created top-level topics automatically become topic prefixes, and you can view monitoring data for all sub-topics under these prefixes.
To facilitate management and monitoring of key topics, you can configure up to three levels of topic prefixes. For example, after configuring the "a/b" prefix, you can view metrics for topics such as "a/b/1", "a/b/2", ..., "a/b/n". For details, see Viewing Monitoring Data.