SlideShare a Scribd company logo
Christian Götz, Co-Founder & CEO of HiveMQ
IoT World 2019, Santa Clara
Best Practices Using MQTT
to Connect Millions of IoT Devices
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
• Co-Founder & CEO of HiveMQ/dc-square
• MQTT Expert with 7 years of experience
• Seen & supported 130+ customers from
Day 1 to production
• Member of the MQTT Standardization
Technical Committee
• Speaker & Author in international
conferences and magazines
Christian
Götz
@goetzchr
Introduction
01MQTT Overview
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
MQTT Basics
temperature
sensor
MQTT-Broker
laptop
mobile device
publish: “21°C“
publish: “21°C“
publish: “21°C“
subscribe
subscribe
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
MQTT Highlights
Instant Data
Movement
Guaranteed Delivery
Simple Usage
Reduced attack
surface
Low Overhead
Low Cost
$
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
MQTT is the IoT standard
Source: Google Trends
02
Our MQTT Experience
& Use Cases
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
We built HiveMQ
#1
Enterprise
MQTT broker
High-performant Java Client
HiveMQ Open Source Version
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
HiveMQ Usage
10,000,000 IoT devices
more than
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Customers trusting in us
130+ customers
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
HiveMQ powers Horizon 4 Platform
Scale to Millions of Devices
Platform exceeded Expectations
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Trusted by BMW for Connected Car
Foundation for all Vehicle Communication
Cloud Native Deloyment with Enterprise Integrations
04Scaling MQTT
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
What does scale mean?
1,000
10,000
100,000
1,000,000
10,000,000
100,000,000
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. 15
node3
node2
node1
Use Clustering
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Elastically adding nodes
16
HiveMQ - Linear Scalability - Example: Add node
3 nodes
4 nodes
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Elastically removing nodes
17
HiveMQ - Linear Scalability - Example: Add node
3 nodes4 nodes
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Address as one node
18
HiveMQ - Linear Scalability - Example: Add node
3 nodes
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Cloud Native Technologies
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Source: http://www.alenk.de/assets/2017-12-06_AWS-Talk-pub2.pdf
Source: http://www.alenk.de/assets/2017-12-06_AWS-Talk-pub2.pdf
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Scalability depends mainly on MQTT Broker
• Pick a mature broker that is proven in business-critical deployments
• Support of 100% MQTT features
• MQTT is stateful - clustering is key to enable true high availability
• Benchmark your individual scenario - don't trust general benchmarks
• Must coping with alleged Edge Cases like network splits
• Distributed Systems are hard - Ease of use/operation is key!

=> Scaling MUST be viewed holistically!
05Best Practises
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Holistic Security Design
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Best practices Infrastructure & OS
24
Infrastructure
Only expected traffic gets forwarded to downstream systems
UDP - not used by MQTT - can be blocked
Allow only traffic to ports, needed for your MQTT system (1883, 8883)

Operating System
Use SELinux, keep libraries and software updated

Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Best practices MQTT Broker
25
Use TLS (or even mutual TLS)
Use Authentication (make it revokable)
Use Authorization with separate topic namespaces
Throttling your MQTT clients to prevent overload
Configure message size to maximum of your use case
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
End 2 End Scale Testing
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Resilience Testing
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Build the best possible Playground
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Trouble-Shooting
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Monitoring, Logging & Alerting
06Conclusion
Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved.
Scaling MQTT Summary
• MQTT is the IoT Standard Protocol
• MQTT is broadly used in different industries for IoT use cases
• Scaling MQTT must always be viewed holistically
• Do your homework for high scale scenarios (independent of MQTT)
• Picking matured and battle-tested technology is key
Thank you!
Christian Götz
@goetzchr
christian.goetz@hivemq.com
HiveMQ
@HiveMQ
www.hivemq.com

More Related Content

What's hot (20)

PDF
Mqtt
Elias Hasnat
 
PDF
MQTT with Eclipse Paho: A protocol for IoT and M2M communication
Christian Götz
 
PDF
An introduction to MQTT
Alexandre Moreno
 
PPTX
Mqtt presentation
Shiang - Chi Lee
 
PPTX
IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)
PeterNiblett
 
PDF
A Short Report on MQTT protocol for Internet of Things(IoT)
sonycse
 
PDF
Introduction MQTT in English
Eric Xiao
 
PDF
[http://1PU.SH] Building Wireless Sensor Networks with MQTT-SN, RaspberryPi a...
Zvi Avraham
 
PDF
MQTT 101 - Getting started with the lightweight IoT Protocol
Christian Götz
 
PDF
Low Latency Mobile Messaging using MQTT
Henrik Sjöstrand
 
PDF
MQTT with Java - a protocol for IoT and M2M communication
Christian Götz
 
PDF
MQTT - Austin IoT Meetup
Bryan Boyd
 
PDF
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
PDF
MQTT in Reactive Blocks
Bitreactive
 
PDF
Mqtt overview (iot)
David Fowler
 
PPTX
Mqtt
Oded Rotter
 
PDF
Scaling MQTT - Webinar with Elastic Beam
Dominik Obermaier
 
PDF
Node home automation with Node.js and MQTT
Michael Dawson
 
MQTT with Eclipse Paho: A protocol for IoT and M2M communication
Christian Götz
 
An introduction to MQTT
Alexandre Moreno
 
Mqtt presentation
Shiang - Chi Lee
 
IAB-5039 : MQTT: A Protocol for the Internet of Things (InterConnect 2015)
PeterNiblett
 
A Short Report on MQTT protocol for Internet of Things(IoT)
sonycse
 
Introduction MQTT in English
Eric Xiao
 
[http://1PU.SH] Building Wireless Sensor Networks with MQTT-SN, RaspberryPi a...
Zvi Avraham
 
MQTT 101 - Getting started with the lightweight IoT Protocol
Christian Götz
 
Low Latency Mobile Messaging using MQTT
Henrik Sjöstrand
 
MQTT with Java - a protocol for IoT and M2M communication
Christian Götz
 
MQTT - Austin IoT Meetup
Bryan Boyd
 
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
MQTT in Reactive Blocks
Bitreactive
 
Mqtt overview (iot)
David Fowler
 
Scaling MQTT - Webinar with Elastic Beam
Dominik Obermaier
 
Node home automation with Node.js and MQTT
Michael Dawson
 

Similar to Best Practices Using MQTT to Connect Millions of IoT Devices (20)

PDF
Introducing HiveMQ Cloud
MargarethaErber
 
PDF
HiveMQ Cloud - The Cloud Native IoT Messaging Layer
Dominik Obermaier
 
PDF
MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT
Dominik Obermaier
 
PDF
HiveMQ Cloud Webinar
HiveMQ
 
PDF
Lightweight and scalable IoT Messaging with MQTT
Dominik Obermaier
 
PDF
IoT Security Issues and MQTT
HiveMQ
 
PDF
Iot in-production
Florian Raschbichler
 
PDF
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
Dominik Obermaier
 
PDF
IoT Meetup HiveMQ and MQTT
Ian Skerrett
 
PDF
Lightweight and Scalable IoT Messaging with MQTT
HiveMQ
 
PDF
Implementing the 5 Pillars of IT Security for MQTT
HiveMQ
 
PDF
Debugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
HiveMQ
 
PDF
JAX 2014 - M2M for Java Developers with MQTT
Dominik Obermaier
 
PDF
How to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
HiveMQ
 
PDF
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Dominik Obermaier
 
PDF
MQTT - The Key to Scalable Reliable Connected Car Platforms
HiveMQ
 
PDF
MQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
HiveMQ
 
PDF
Modernizing the Manufacturing Industry with Kafka and MQTT
Dominik Obermaier
 
PDF
Mqtt.fx on hive mq cloud
MargarethaErber
 
PDF
Best Practices for Streaming Connected Car Data with MQTT & Kafka
HiveMQ
 
Introducing HiveMQ Cloud
MargarethaErber
 
HiveMQ Cloud - The Cloud Native IoT Messaging Layer
Dominik Obermaier
 
MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT
Dominik Obermaier
 
HiveMQ Cloud Webinar
HiveMQ
 
Lightweight and scalable IoT Messaging with MQTT
Dominik Obermaier
 
IoT Security Issues and MQTT
HiveMQ
 
Iot in-production
Florian Raschbichler
 
HiveMQ Webinar: Lightweight and scalable IoT Messaging with MQTT
Dominik Obermaier
 
IoT Meetup HiveMQ and MQTT
Ian Skerrett
 
Lightweight and Scalable IoT Messaging with MQTT
HiveMQ
 
Implementing the 5 Pillars of IT Security for MQTT
HiveMQ
 
Debugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
HiveMQ
 
JAX 2014 - M2M for Java Developers with MQTT
Dominik Obermaier
 
How to Set up, Run and Scale a Secure MQTT Broker on Kubernetes
HiveMQ
 
Software-Infrastrukturen modernisieren in der Produktion - Digitale Transform...
Dominik Obermaier
 
MQTT - The Key to Scalable Reliable Connected Car Platforms
HiveMQ
 
MQTT.fx on HiveMQ Cloud Testing MQTT in the Cloud
HiveMQ
 
Modernizing the Manufacturing Industry with Kafka and MQTT
Dominik Obermaier
 
Mqtt.fx on hive mq cloud
MargarethaErber
 
Best Practices for Streaming Connected Car Data with MQTT & Kafka
HiveMQ
 
Ad

Recently uploaded (20)

PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
PDF
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
PDF
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
MiniTool Power Data Recovery 8.8 With Crack New Latest 2025
bashirkhan333g
 
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Ad

Best Practices Using MQTT to Connect Millions of IoT Devices

  • 1. Christian Götz, Co-Founder & CEO of HiveMQ IoT World 2019, Santa Clara Best Practices Using MQTT to Connect Millions of IoT Devices
  • 2. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. • Co-Founder & CEO of HiveMQ/dc-square • MQTT Expert with 7 years of experience • Seen & supported 130+ customers from Day 1 to production • Member of the MQTT Standardization Technical Committee • Speaker & Author in international conferences and magazines Christian Götz @goetzchr Introduction
  • 4. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. MQTT Basics temperature sensor MQTT-Broker laptop mobile device publish: “21°C“ publish: “21°C“ publish: “21°C“ subscribe subscribe
  • 5. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. MQTT Highlights Instant Data Movement Guaranteed Delivery Simple Usage Reduced attack surface Low Overhead Low Cost $
  • 6. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. MQTT is the IoT standard Source: Google Trends
  • 8. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. We built HiveMQ #1 Enterprise MQTT broker High-performant Java Client HiveMQ Open Source Version
  • 9. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. HiveMQ Usage 10,000,000 IoT devices more than
  • 10. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Customers trusting in us 130+ customers
  • 11. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. HiveMQ powers Horizon 4 Platform Scale to Millions of Devices Platform exceeded Expectations
  • 12. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Trusted by BMW for Connected Car Foundation for all Vehicle Communication Cloud Native Deloyment with Enterprise Integrations
  • 14. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. What does scale mean? 1,000 10,000 100,000 1,000,000 10,000,000 100,000,000
  • 15. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. 15 node3 node2 node1 Use Clustering
  • 16. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Elastically adding nodes 16 HiveMQ - Linear Scalability - Example: Add node 3 nodes 4 nodes
  • 17. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Elastically removing nodes 17 HiveMQ - Linear Scalability - Example: Add node 3 nodes4 nodes
  • 18. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Address as one node 18 HiveMQ - Linear Scalability - Example: Add node 3 nodes
  • 19. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Cloud Native Technologies
  • 20. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Source: http://www.alenk.de/assets/2017-12-06_AWS-Talk-pub2.pdf Source: http://www.alenk.de/assets/2017-12-06_AWS-Talk-pub2.pdf
  • 21. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Scalability depends mainly on MQTT Broker • Pick a mature broker that is proven in business-critical deployments • Support of 100% MQTT features • MQTT is stateful - clustering is key to enable true high availability • Benchmark your individual scenario - don't trust general benchmarks • Must coping with alleged Edge Cases like network splits • Distributed Systems are hard - Ease of use/operation is key!
 => Scaling MUST be viewed holistically!
  • 23. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Holistic Security Design
  • 24. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Best practices Infrastructure & OS 24 Infrastructure Only expected traffic gets forwarded to downstream systems UDP - not used by MQTT - can be blocked Allow only traffic to ports, needed for your MQTT system (1883, 8883)
 Operating System Use SELinux, keep libraries and software updated

  • 25. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Best practices MQTT Broker 25 Use TLS (or even mutual TLS) Use Authentication (make it revokable) Use Authorization with separate topic namespaces Throttling your MQTT clients to prevent overload Configure message size to maximum of your use case
  • 26. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. End 2 End Scale Testing
  • 27. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Resilience Testing
  • 28. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Build the best possible Playground
  • 29. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Trouble-Shooting
  • 30. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Monitoring, Logging & Alerting
  • 32. Confidential and Proprietary. Copyright © by dc-square GmbH. All Rights Reserved. Scaling MQTT Summary • MQTT is the IoT Standard Protocol • MQTT is broadly used in different industries for IoT use cases • Scaling MQTT must always be viewed holistically • Do your homework for high scale scenarios (independent of MQTT) • Picking matured and battle-tested technology is key