MQTT 5 Essentials Part 09 - Topic Alias

Опубликовано: 12 Октябрь 2024
на канале: HiveMQ
2,396
36

MQTT 5 Essentials Part 09 – Topic Alias

What is the purpose of the new Topic Alias feature?
Topic Aliases are used to substitute a defined number of topic strings with integers. MQTT client and MQTT broker can negotiate to which extend Topic Aliases are supported. Both the client and broker can define a Topic Alias for a PUBLISH message, as long as they are the respective sender.

Example:
Imagine a really long and complex topic name to describe the current power consumption of a specific junction box

"data/europe/germany/south/bavaria/munich/schwabing/box-32543y/junction/consumption"

This topic name can be substituted by a single integer: 1

Use Cases:
• Mapping of Topic Alias to Topic is always only relevant
for a single client-broker connection
• Topic Aliases are very useful in specific use cases where
payloads are relatively small
topics are relatively long
message throughput is relatively high

This is where the MQTT 5 Topic Alias feature really shines!


👉 Be sure to watch our first video series - MQTT Essentials - about the basic concepts of MQTT:    • What is MQTT | MQTT Essentials Part 1  

👉 We have a detailed blog series explaining all the new features available in MQTT 5: https://bit.ly/3zVD3Tz

👉 We also explain the core of MQTT, its features, and other essential information in this HiveMQ blog series: https://bit.ly/2Y7JHJn

👉 To learn the basics of MQTT and MQTT 5 together, get your copy of free E-Book here: https://bit.ly/39WFUky

👉 To know about HiveMQ: https://bit.ly/3A24CKW

👉 Subscribe to our HiveMQ channel to get video updates. Hit the subscribe button below or subscribe to our newsletter (https://bit.ly/39QHKDI) to keep up to date on the latest MQTT news.

👉 We're looking forward to seeing you for MQTT 5 Essentials part 10 - Enhanced Authentication:
   • MQTT 5  Essentials Part 10 - Enhanced...  

#MQTT #MQTT5 #MQTTEssentials