What is the Request Response Pattern?
The request response pattern in MQTT is different from the synchronous pattern in protocols like HTTP. In MQTT is works as asynchronous end-to-end acknowledgment. It ensures messages have been received by sending an acknowledge message back to the sender (so-called “business ACK”)
New Request Response Features in MQTT 5
1. Response Topic: defines the topic for the acknowledgment
2. Correlation Data: defines the correlation of published messages and responses
2. Response Information: allows the broker to send an optional UTF-8 string with information about the response topics that are expected to be used
Best Practices
- If possible make use of the Response Information field
- Use unique identifiers in the Response Topic
- Make sure that intended responders and requesters have the necessary permissions to publish and subscribe to the response topics
*** Chapters / Table of Contents ***
00:00 Introduction
00:17 The Request Response pattern in MQTT
01:12 New Request Response features in MQTT 5
02:43 Use case: door opening for a Smart Home using MQTT5
03:31 Best practices and gotchas of MQTT5
04:50 Conclusion and announcement of part 9: Topic Alias in MQTT5
👉 Be sure to watch our first video series - MQTT Essentials - about the basic concepts of MQTT: [ Ссылка ]
👉 We have a detailed blog series explaining all the new features available in MQTT 5: [ Ссылка ]
👉 We also explain the core of MQTT, its features, and other essential information in this HiveMQ blog series: [ Ссылка ]
👉 To learn the basics of MQTT and MQTT 5 together, get your copy of free E-Book here: [ Ссылка ]
👉 To know about HiveMQ: [ Ссылка ]
👉 Subscribe to our HiveMQ channel to get video updates. Hit the subscribe button below or subscribe to our newsletter ([ Ссылка ]) to keep up to date on the latest MQTT news.
👉 We're looking forward to seeing you for MQTT 5 Essentials Part 9: Topic Alias
[ Ссылка ]
#MQTT #MQTT5 #MQTTEssentials
![](https://s2.save4k.ru/pic/mmq4zAJjO-I/maxresdefault.jpg)