SlideShare a Scribd company logo
1 of 35
Download to read offline
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Speaker
Florian Raschbichler
Head of Support at HiveMQ
Florian serves as the head of the
HiveMQ support team with years of
first-hand experience overcoming
challenges in achieving reliable,
scalable, and secure IoT messaging
for enterprise customers.
https://www.linkedin.com/in/fraschbi/
@fraschbi
Copyright © by HiveMQ. All Rights Reserved.
• Enhancement for scalability and large scale systems
• Better error handling for more robust systems
• More scalability for cloud-native computing
• Formalize common patterns including capability discovery and
request response
• Performance improvements and support for small clients
MQTT 5 – Quick Intro
The most feature-rich update of the MQTT protocol ever!
Copyright © by HiveMQ. All Rights Reserved.
• Connected cars
• Home automation
• Manufacturing systems
• Transportation
• Logistics
• Enterprise chat applications
• Mobile apps
Popular Use Cases
Copyright © by HiveMQ. All Rights Reserved.
• Topic Aliases
• Shared Subscriptions
• Request-Response Pattern
• User Properties
• Session and Message Expiry
• Payload Type Descriptors
• Enhanced Authentication
MQTT 5 – Rich Feature Set
Deep Dive into Primary
Feature Set of MQTT 5
Explained with Use Case Examples
Copyright © by HiveMQ. All Rights Reserved.
Topic Aliases
Helps Save Bandwidth and Memory
Negotiated individually between client and broker
Certain topics get exchanged with integer alias instead of a string
value
Copyright © by HiveMQ. All Rights Reserved.
Benefits of Topic Aliases
Save data as the consumer
Ensures low latency and limited data consumption for high frequency messaging
Removes bandwidth usage from network as the provider
Copyright © by HiveMQ. All Rights Reserved.
Topic Aliases
Helps Save Bandwidth and Memory
Copyright © by HiveMQ. All Rights Reserved.
● Vehicle to Anything (V2X)
● High frequency messaging (10hz or more)
● Tens or hundreds of thousands of devices (cars, phones, sensors, traffic lights ..)
● Deep topic structure for services, layers and geo location
● Example calculation
○ Topic as String:
Europe/Sweden/Stockholm/North-East/Tile121/Priority/Pedastrian-Alert
= 68 bytes
○ Topic as Integer = 4 bytes
○ 64 bytes * 10.000 cars * 10hz ~ 6 MB/s
=> ~ 15 TeraByte per month for 1 sensor
● Useful for OEMs, ISPs and service provides (cities)
V2X Use Case
Copyright © by HiveMQ. All Rights Reserved.
Improved Error Reporting
Optional, arbitrary ReasonString
Multiple new return codes
Introduction of negative acknowledgement
Copyright © by HiveMQ. All Rights Reserved.
Shared Subscriptions
Special syntax
Multiple clients can share the load on a topic
Client load balancing mechanism
Copyright © by HiveMQ. All Rights Reserved.
Shared Subscriptions
Copyright © by HiveMQ. All Rights Reserved.
Shared Subscriptions’ Example
Without Shared Subscription Group With Shared Subscription Group
Copyright © by HiveMQ. All Rights Reserved.
● Facilitates scalable consumer infrastructure
● Provides good message throughput even for slow message
processing situations
● High availability for consumers
● Enables really high volume messaging with shared consumer of
messages
Benefits of Shared Subscriptions
Copyright © by HiveMQ. All Rights Reserved.
● Connected cars
● Up to tens of millions of concurrently connected vehicles
● Individual topics for cars (VIN/telemetry)
● Shared wildcard topic for consumer ($share/data-lake/+/telemetry)
● Persist information to single data source
● Enables central calculations (i.e. predictive maintenance)
Vehicle Telemetry Persistence
Copyright © by HiveMQ. All Rights Reserved.
Request - Response Pattern
Still fully asynchronous
“Business acknowledgement” on top of regular given MQTT delivery guarantees
Pattern of communication that allows feedback to sender of messages
Enables extensible, dynamic, and transparent implementation of
“business acknowledgement” functionality
Copyright © by HiveMQ. All Rights Reserved.
Benefits of Request - Response Pattern
• Enables use cases that require guaranteed delivery and processing of
messages
• Any time you are dealing with sensitive commands (For example,
door lock/unlock, sending/receiving temperature, etc.)
• Provides a standardized framework for end-to-end acknowledgements
• Command audit
Copyright © by HiveMQ. All Rights Reserved.
Request - Response Pattern
Copyright © by HiveMQ. All Rights Reserved.
User Properties
Provide near endless extensibility to most MQTT packets
Commonly known from other technologies like HTTP or Kafka
Arbitrary number of Key-Value String pairs
Copyright © by HiveMQ. All Rights Reserved.
User Properties
Offers Limitless Possibilities to Apply Additional Logic
Copyright © by HiveMQ. All Rights Reserved.
• Add message-id to PUBLISH packets
• End-to-end tracing of messages, potentially across multiple systems
• Increases observability in IoT
• The MQTT broker can be involved in identifying problems in
surrounding systems
Tracing
Copyright © by HiveMQ. All Rights Reserved.
Session and Message Expiry
PUBLISH/Session expires when not used for a certain amount of time
Time in seconds set by sending client (Publisher) for Message
Time in seconds set by client for Session
Expires when clients are offline
Expires when Clients are not responding (PUBACK)
Copyright © by HiveMQ. All Rights Reserved.
Benefits of Session and Message Expiry
• Allows users to assign different importance to different message
types (message/service prioritization)
• Delete some quickly
• Keep others longer
• Housekeeping for decommissioned devices
• If a device/client does not come back online for 14 days,
remove all remnants of it from the broker
• Saves infrastructure costs + potential security measure
Copyright © by HiveMQ. All Rights Reserved.
Session and Message Expiry
Premium Navigation Service
Copyright © by HiveMQ. All Rights Reserved.
Payload Type Description
Combination of 2 attributes in PUBLISH packet
Payload Format Indicator and Content Type
Binary or UTF-8 and arbitrary description for UTF-8 payloads
Copyright © by HiveMQ. All Rights Reserved.
Payload Type Descriptors
Helps with standardization across verticals
● 0 = binary byte stream
● 1 = UTF-8 encoded
payload
● Content Type (if 1) =>
Describes the actual type
of Payload (i.e. JSON
Schema v3, XML)
Copyright © by HiveMQ. All Rights Reserved.
Benefits of Payload Type Descriptors
• Support multiple standards across a single deployment
• Helps building cross-vendor type use cases
• IoT Solution provider for various customer solution
• Version control for messaging
• Could use User Properties for binary payloads
• Enable different types of payloads in same use case
Copyright © by HiveMQ. All Rights Reserved.
● Sending lists of license plates
● Transferring pictures
● Cannot differentiate by topic
● Payload descriptors ensure correct parsing and processing of each
message
Smart Toll Booth
Copyright © by HiveMQ. All Rights Reserved.
Enhanced Authentication
Can be used for challenge-response authentication
Additional packet introduced
Copyright © by HiveMQ. All Rights Reserved.
Enhanced Authentication
Authentication Flow
Copyright © by HiveMQ. All Rights Reserved.
Benefits of Enhanced Authentication
• Integrate modern IoT System into existing enterprise grade IT
security infrastructure
• SASL, Kerberos, etc.
• Saves the need to introduce a separate system for your IoT
devices
Copyright © by HiveMQ. All Rights Reserved.
MQTT 5 Essentials Series
MQTT 5 Video Series
Try HiveMQ Cloud
Download HiveMQ
Resources
ANY
QUESTIONS?
Reach out to community.hivemq.com
THANK YOU
Florian Raschbichler
Head of Support at HiveMQ
linkedin.com/in/fraschbi/
@fraschbi
Contact:

More Related Content

Similar to How MQTT 5 Makes Difficult IoT Use Cases Possible

HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTTHiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTTDominik Obermaier
 
How to Stream IoT MQTT Messages Into the Azure Event Hubs Service
How to Stream IoT MQTT Messages Into the Azure Event Hubs ServiceHow to Stream IoT MQTT Messages Into the Azure Event Hubs Service
How to Stream IoT MQTT Messages Into the Azure Event Hubs ServiceHiveMQ
 
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data Integration
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data IntegrationHiveMQ + Kafka - The Ideal Solution for IoT MQTT Data Integration
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data IntegrationHiveMQ
 
Building Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingBuilding Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingHiveMQ
 
Best Practices for Streaming Connected Car Data with MQTT & Kafka
Best Practices for Streaming Connected Car Data with MQTT & KafkaBest Practices for Streaming Connected Car Data with MQTT & Kafka
Best Practices for Streaming Connected Car Data with MQTT & KafkaHiveMQ
 
Building Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingBuilding Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingSilvioGiebl
 
HiveMQ + Kafka: The ideal solution for IoT MQTT data integration
HiveMQ + Kafka: The ideal solution for IoT MQTT data integrationHiveMQ + Kafka: The ideal solution for IoT MQTT data integration
HiveMQ + Kafka: The ideal solution for IoT MQTT data integrationMargarethaErber
 
A pure Java MQTT Stack for IoT
A pure Java MQTT Stack for IoTA pure Java MQTT Stack for IoT
A pure Java MQTT Stack for IoTDominik Obermaier
 
Modernizing the Manufacturing Industry with Kafka and MQTT
Modernizing the Manufacturing Industry with Kafka and MQTT Modernizing the Manufacturing Industry with Kafka and MQTT
Modernizing the Manufacturing Industry with Kafka and MQTT Dominik Obermaier
 
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...Dominik Obermaier
 
HiveMQ Cloud - The Cloud Native IoT Messaging Layer
HiveMQ Cloud - The Cloud Native IoT Messaging LayerHiveMQ Cloud - The Cloud Native IoT Messaging Layer
HiveMQ Cloud - The Cloud Native IoT Messaging LayerDominik Obermaier
 
Introducing HiveMQ Cloud
Introducing HiveMQ CloudIntroducing HiveMQ Cloud
Introducing HiveMQ CloudMargarethaErber
 
HiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ
 
Simplified IoT Operations With HiveMQ and Datadog
Simplified IoT Operations With HiveMQ and DatadogSimplified IoT Operations With HiveMQ and Datadog
Simplified IoT Operations With HiveMQ and DatadogHiveMQ
 
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQMachine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQHiveMQ
 
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...HostedbyConfluent
 
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heaven
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heavenKafka Summit 2021 - Why MQTT and Kafka are a match made in heaven
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heavenDominik Obermaier
 
Lightweight and scalable IoT Messaging with MQTT
Lightweight and scalable IoT Messaging with MQTTLightweight and scalable IoT Messaging with MQTT
Lightweight and scalable IoT Messaging with MQTTDominik Obermaier
 
EMQ Company Deck
EMQ Company DeckEMQ Company Deck
EMQ Company DeckEMQ
 
IoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIan Skerrett
 

Similar to How MQTT 5 Makes Difficult IoT Use Cases Possible (20)

HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTTHiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
 
How to Stream IoT MQTT Messages Into the Azure Event Hubs Service
How to Stream IoT MQTT Messages Into the Azure Event Hubs ServiceHow to Stream IoT MQTT Messages Into the Azure Event Hubs Service
How to Stream IoT MQTT Messages Into the Azure Event Hubs Service
 
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data Integration
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data IntegrationHiveMQ + Kafka - The Ideal Solution for IoT MQTT Data Integration
HiveMQ + Kafka - The Ideal Solution for IoT MQTT Data Integration
 
Building Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingBuilding Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise Computing
 
Best Practices for Streaming Connected Car Data with MQTT & Kafka
Best Practices for Streaming Connected Car Data with MQTT & KafkaBest Practices for Streaming Connected Car Data with MQTT & Kafka
Best Practices for Streaming Connected Car Data with MQTT & Kafka
 
Building Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise ComputingBuilding Scalable & Reliable MQTT Clients for Enterprise Computing
Building Scalable & Reliable MQTT Clients for Enterprise Computing
 
HiveMQ + Kafka: The ideal solution for IoT MQTT data integration
HiveMQ + Kafka: The ideal solution for IoT MQTT data integrationHiveMQ + Kafka: The ideal solution for IoT MQTT data integration
HiveMQ + Kafka: The ideal solution for IoT MQTT data integration
 
A pure Java MQTT Stack for IoT
A pure Java MQTT Stack for IoTA pure Java MQTT Stack for IoT
A pure Java MQTT Stack for IoT
 
Modernizing the Manufacturing Industry with Kafka and MQTT
Modernizing the Manufacturing Industry with Kafka and MQTT Modernizing the Manufacturing Industry with Kafka and MQTT
Modernizing the Manufacturing Industry with Kafka and MQTT
 
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
 
HiveMQ Cloud - The Cloud Native IoT Messaging Layer
HiveMQ Cloud - The Cloud Native IoT Messaging LayerHiveMQ Cloud - The Cloud Native IoT Messaging Layer
HiveMQ Cloud - The Cloud Native IoT Messaging Layer
 
Introducing HiveMQ Cloud
Introducing HiveMQ CloudIntroducing HiveMQ Cloud
Introducing HiveMQ Cloud
 
HiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ Cloud Webinar
HiveMQ Cloud Webinar
 
Simplified IoT Operations With HiveMQ and Datadog
Simplified IoT Operations With HiveMQ and DatadogSimplified IoT Operations With HiveMQ and Datadog
Simplified IoT Operations With HiveMQ and Datadog
 
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQMachine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ
Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ
 
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...
IoT Data Streaming - Why MQTT and Kafka are a match made in heaven | Dominik ...
 
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heaven
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heavenKafka Summit 2021 - Why MQTT and Kafka are a match made in heaven
Kafka Summit 2021 - Why MQTT and Kafka are a match made in heaven
 
Lightweight and scalable IoT Messaging with MQTT
Lightweight and scalable IoT Messaging with MQTTLightweight and scalable IoT Messaging with MQTT
Lightweight and scalable IoT Messaging with MQTT
 
EMQ Company Deck
EMQ Company DeckEMQ Company Deck
EMQ Company Deck
 
IoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTT
 

More from HiveMQ

IoT Security Issues and MQTT
IoT Security Issues and MQTTIoT Security Issues and MQTT
IoT Security Issues and MQTTHiveMQ
 
Testing the Scalability of a Robust IoT System with Confidence
Testing the Scalability of a Robust IoT System with ConfidenceTesting the Scalability of a Robust IoT System with Confidence
Testing the Scalability of a Robust IoT System with ConfidenceHiveMQ
 
Designing an Edge to Cloud Architecture for IIoT
Designing an Edge to Cloud Architecture for IIoTDesigning an Edge to Cloud Architecture for IIoT
Designing an Edge to Cloud Architecture for IIoTHiveMQ
 
MQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
MQTT.fx on HiveMQ Cloud Testing MQTT in the CloudMQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
MQTT.fx on HiveMQ Cloud Testing MQTT in the CloudHiveMQ
 
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]HiveMQ
 
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...HiveMQ
 
How to Monitor and Observe IoT and MQTT Applications with HiveMQ
How to Monitor and Observe IoT and MQTT Applications with HiveMQ How to Monitor and Observe IoT and MQTT Applications with HiveMQ
How to Monitor and Observe IoT and MQTT Applications with HiveMQ HiveMQ
 
Connecting the Smart Factory to the Cloud
Connecting the Smart Factory to the CloudConnecting the Smart Factory to the Cloud
Connecting the Smart Factory to the CloudHiveMQ
 
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ Swarm
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ SwarmRevolutionizing IoT Testing - A Sneak Peek of HiveMQ Swarm
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ SwarmHiveMQ
 
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoT
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoTIntroduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoT
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoTHiveMQ
 
Free Your Manufacturing Data with Apache PLC4X & MQTT
Free Your Manufacturing Data with Apache PLC4X & MQTTFree Your Manufacturing Data with Apache PLC4X & MQTT
Free Your Manufacturing Data with Apache PLC4X & MQTTHiveMQ
 
Build Your Own HiveMQ Extension
Build Your Own HiveMQ ExtensionBuild Your Own HiveMQ Extension
Build Your Own HiveMQ ExtensionHiveMQ
 
How to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
How to Set up, Run and Scale a Secure MQTT Broker on KubernetesHow to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
How to Set up, Run and Scale a Secure MQTT Broker on KubernetesHiveMQ
 
MQTT - The Key to Scalable Reliable Connected Car Platforms
MQTT - The Key to Scalable Reliable Connected Car PlatformsMQTT - The Key to Scalable Reliable Connected Car Platforms
MQTT - The Key to Scalable Reliable Connected Car PlatformsHiveMQ
 
Modernizing the Manufacturing Industry with MQTT and Kafka
Modernizing the Manufacturing Industry with MQTT and KafkaModernizing the Manufacturing Industry with MQTT and Kafka
Modernizing the Manufacturing Industry with MQTT and KafkaHiveMQ
 
Implementing the 5 Pillars of IT Security for MQTT
Implementing the 5 Pillars of IT Security for MQTTImplementing the 5 Pillars of IT Security for MQTT
Implementing the 5 Pillars of IT Security for MQTTHiveMQ
 
4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the FutureHiveMQ
 

More from HiveMQ (17)

IoT Security Issues and MQTT
IoT Security Issues and MQTTIoT Security Issues and MQTT
IoT Security Issues and MQTT
 
Testing the Scalability of a Robust IoT System with Confidence
Testing the Scalability of a Robust IoT System with ConfidenceTesting the Scalability of a Robust IoT System with Confidence
Testing the Scalability of a Robust IoT System with Confidence
 
Designing an Edge to Cloud Architecture for IIoT
Designing an Edge to Cloud Architecture for IIoTDesigning an Edge to Cloud Architecture for IIoT
Designing an Edge to Cloud Architecture for IIoT
 
MQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
MQTT.fx on HiveMQ Cloud Testing MQTT in the CloudMQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
MQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
 
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]
What's New in HiveMQ [Inside the Upcoming HiveMQ 4.7 Release]
 
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...
HiveMQ & HighByte Presents: Building an Enterprise Unified Namespace (UNS) to...
 
How to Monitor and Observe IoT and MQTT Applications with HiveMQ
How to Monitor and Observe IoT and MQTT Applications with HiveMQ How to Monitor and Observe IoT and MQTT Applications with HiveMQ
How to Monitor and Observe IoT and MQTT Applications with HiveMQ
 
Connecting the Smart Factory to the Cloud
Connecting the Smart Factory to the CloudConnecting the Smart Factory to the Cloud
Connecting the Smart Factory to the Cloud
 
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ Swarm
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ SwarmRevolutionizing IoT Testing - A Sneak Peek of HiveMQ Swarm
Revolutionizing IoT Testing - A Sneak Peek of HiveMQ Swarm
 
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoT
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoTIntroduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoT
Introduction to MQTT Sparkplug: Plug 'n Play Interoperability for IIoT
 
Free Your Manufacturing Data with Apache PLC4X & MQTT
Free Your Manufacturing Data with Apache PLC4X & MQTTFree Your Manufacturing Data with Apache PLC4X & MQTT
Free Your Manufacturing Data with Apache PLC4X & MQTT
 
Build Your Own HiveMQ Extension
Build Your Own HiveMQ ExtensionBuild Your Own HiveMQ Extension
Build Your Own HiveMQ Extension
 
How to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
How to Set up, Run and Scale a Secure MQTT Broker on KubernetesHow to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
How to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
 
MQTT - The Key to Scalable Reliable Connected Car Platforms
MQTT - The Key to Scalable Reliable Connected Car PlatformsMQTT - The Key to Scalable Reliable Connected Car Platforms
MQTT - The Key to Scalable Reliable Connected Car Platforms
 
Modernizing the Manufacturing Industry with MQTT and Kafka
Modernizing the Manufacturing Industry with MQTT and KafkaModernizing the Manufacturing Industry with MQTT and Kafka
Modernizing the Manufacturing Industry with MQTT and Kafka
 
Implementing the 5 Pillars of IT Security for MQTT
Implementing the 5 Pillars of IT Security for MQTTImplementing the 5 Pillars of IT Security for MQTT
Implementing the 5 Pillars of IT Security for MQTT
 
4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future
 

Recently uploaded

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 

Recently uploaded (20)

Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 

How MQTT 5 Makes Difficult IoT Use Cases Possible

  • 1. Copyright © by HiveMQ. All Rights Reserved.
  • 2. Copyright © by HiveMQ. All Rights Reserved. Speaker Florian Raschbichler Head of Support at HiveMQ Florian serves as the head of the HiveMQ support team with years of first-hand experience overcoming challenges in achieving reliable, scalable, and secure IoT messaging for enterprise customers. https://www.linkedin.com/in/fraschbi/ @fraschbi
  • 3. Copyright © by HiveMQ. All Rights Reserved. • Enhancement for scalability and large scale systems • Better error handling for more robust systems • More scalability for cloud-native computing • Formalize common patterns including capability discovery and request response • Performance improvements and support for small clients MQTT 5 – Quick Intro The most feature-rich update of the MQTT protocol ever!
  • 4. Copyright © by HiveMQ. All Rights Reserved. • Connected cars • Home automation • Manufacturing systems • Transportation • Logistics • Enterprise chat applications • Mobile apps Popular Use Cases
  • 5. Copyright © by HiveMQ. All Rights Reserved. • Topic Aliases • Shared Subscriptions • Request-Response Pattern • User Properties • Session and Message Expiry • Payload Type Descriptors • Enhanced Authentication MQTT 5 – Rich Feature Set
  • 6. Deep Dive into Primary Feature Set of MQTT 5 Explained with Use Case Examples
  • 7. Copyright © by HiveMQ. All Rights Reserved. Topic Aliases Helps Save Bandwidth and Memory Negotiated individually between client and broker Certain topics get exchanged with integer alias instead of a string value
  • 8. Copyright © by HiveMQ. All Rights Reserved. Benefits of Topic Aliases Save data as the consumer Ensures low latency and limited data consumption for high frequency messaging Removes bandwidth usage from network as the provider
  • 9. Copyright © by HiveMQ. All Rights Reserved. Topic Aliases Helps Save Bandwidth and Memory
  • 10. Copyright © by HiveMQ. All Rights Reserved. ● Vehicle to Anything (V2X) ● High frequency messaging (10hz or more) ● Tens or hundreds of thousands of devices (cars, phones, sensors, traffic lights ..) ● Deep topic structure for services, layers and geo location ● Example calculation ○ Topic as String: Europe/Sweden/Stockholm/North-East/Tile121/Priority/Pedastrian-Alert = 68 bytes ○ Topic as Integer = 4 bytes ○ 64 bytes * 10.000 cars * 10hz ~ 6 MB/s => ~ 15 TeraByte per month for 1 sensor ● Useful for OEMs, ISPs and service provides (cities) V2X Use Case
  • 11. Copyright © by HiveMQ. All Rights Reserved. Improved Error Reporting Optional, arbitrary ReasonString Multiple new return codes Introduction of negative acknowledgement
  • 12. Copyright © by HiveMQ. All Rights Reserved. Shared Subscriptions Special syntax Multiple clients can share the load on a topic Client load balancing mechanism
  • 13. Copyright © by HiveMQ. All Rights Reserved. Shared Subscriptions
  • 14. Copyright © by HiveMQ. All Rights Reserved. Shared Subscriptions’ Example Without Shared Subscription Group With Shared Subscription Group
  • 15. Copyright © by HiveMQ. All Rights Reserved. ● Facilitates scalable consumer infrastructure ● Provides good message throughput even for slow message processing situations ● High availability for consumers ● Enables really high volume messaging with shared consumer of messages Benefits of Shared Subscriptions
  • 16. Copyright © by HiveMQ. All Rights Reserved. ● Connected cars ● Up to tens of millions of concurrently connected vehicles ● Individual topics for cars (VIN/telemetry) ● Shared wildcard topic for consumer ($share/data-lake/+/telemetry) ● Persist information to single data source ● Enables central calculations (i.e. predictive maintenance) Vehicle Telemetry Persistence
  • 17. Copyright © by HiveMQ. All Rights Reserved. Request - Response Pattern Still fully asynchronous “Business acknowledgement” on top of regular given MQTT delivery guarantees Pattern of communication that allows feedback to sender of messages Enables extensible, dynamic, and transparent implementation of “business acknowledgement” functionality
  • 18. Copyright © by HiveMQ. All Rights Reserved. Benefits of Request - Response Pattern • Enables use cases that require guaranteed delivery and processing of messages • Any time you are dealing with sensitive commands (For example, door lock/unlock, sending/receiving temperature, etc.) • Provides a standardized framework for end-to-end acknowledgements • Command audit
  • 19. Copyright © by HiveMQ. All Rights Reserved. Request - Response Pattern
  • 20. Copyright © by HiveMQ. All Rights Reserved. User Properties Provide near endless extensibility to most MQTT packets Commonly known from other technologies like HTTP or Kafka Arbitrary number of Key-Value String pairs
  • 21. Copyright © by HiveMQ. All Rights Reserved. User Properties Offers Limitless Possibilities to Apply Additional Logic
  • 22. Copyright © by HiveMQ. All Rights Reserved. • Add message-id to PUBLISH packets • End-to-end tracing of messages, potentially across multiple systems • Increases observability in IoT • The MQTT broker can be involved in identifying problems in surrounding systems Tracing
  • 23. Copyright © by HiveMQ. All Rights Reserved. Session and Message Expiry PUBLISH/Session expires when not used for a certain amount of time Time in seconds set by sending client (Publisher) for Message Time in seconds set by client for Session Expires when clients are offline Expires when Clients are not responding (PUBACK)
  • 24. Copyright © by HiveMQ. All Rights Reserved. Benefits of Session and Message Expiry • Allows users to assign different importance to different message types (message/service prioritization) • Delete some quickly • Keep others longer • Housekeeping for decommissioned devices • If a device/client does not come back online for 14 days, remove all remnants of it from the broker • Saves infrastructure costs + potential security measure
  • 25. Copyright © by HiveMQ. All Rights Reserved. Session and Message Expiry Premium Navigation Service
  • 26. Copyright © by HiveMQ. All Rights Reserved. Payload Type Description Combination of 2 attributes in PUBLISH packet Payload Format Indicator and Content Type Binary or UTF-8 and arbitrary description for UTF-8 payloads
  • 27. Copyright © by HiveMQ. All Rights Reserved. Payload Type Descriptors Helps with standardization across verticals ● 0 = binary byte stream ● 1 = UTF-8 encoded payload ● Content Type (if 1) => Describes the actual type of Payload (i.e. JSON Schema v3, XML)
  • 28. Copyright © by HiveMQ. All Rights Reserved. Benefits of Payload Type Descriptors • Support multiple standards across a single deployment • Helps building cross-vendor type use cases • IoT Solution provider for various customer solution • Version control for messaging • Could use User Properties for binary payloads • Enable different types of payloads in same use case
  • 29. Copyright © by HiveMQ. All Rights Reserved. ● Sending lists of license plates ● Transferring pictures ● Cannot differentiate by topic ● Payload descriptors ensure correct parsing and processing of each message Smart Toll Booth
  • 30. Copyright © by HiveMQ. All Rights Reserved. Enhanced Authentication Can be used for challenge-response authentication Additional packet introduced
  • 31. Copyright © by HiveMQ. All Rights Reserved. Enhanced Authentication Authentication Flow
  • 32. Copyright © by HiveMQ. All Rights Reserved. Benefits of Enhanced Authentication • Integrate modern IoT System into existing enterprise grade IT security infrastructure • SASL, Kerberos, etc. • Saves the need to introduce a separate system for your IoT devices
  • 33. Copyright © by HiveMQ. All Rights Reserved. MQTT 5 Essentials Series MQTT 5 Video Series Try HiveMQ Cloud Download HiveMQ Resources
  • 34. ANY QUESTIONS? Reach out to community.hivemq.com
  • 35. THANK YOU Florian Raschbichler Head of Support at HiveMQ linkedin.com/in/fraschbi/ @fraschbi Contact: