SlideShare une entreprise Scribd logo
1  sur  38
Télécharger pour lire hors ligne
Copyright © by HiveMQ. All Rights Reserved.
● Independent contractor
● Strong software
engineering experience
● Certified Azure
Solutions Architect
● Focused on IoT, from
concept to the
implementation
● Technical blogger
● Speaker
WELCOME
Christoph Schäbel Kresimir Galic
@schaebo @kgalic1
linkedin.com/in/kresimir-galic
-8664a66a/
www.variant-logic.com
● Practical MQTT expert
with multiple years of
experience in the field
● HiveMQ Core Developer
● Background in scalable
and reliable distributed
systems and robotics
linkedin.com/in/cschaebel
www.hivemq.com
Copyright © by HiveMQ. All Rights Reserved.
IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
WHAT WE WILL TALK ABOUT
• Shifting to the Edge
→ What is edge?
• Azure IoT Edge Concept
→ Cloud managed deployments
→ Containerized environment
• Cloud Managed Deployment of HiveMQ Broker for
M2M Communication
Copyright © by HiveMQ. All Rights Reserved.
What We Call ‘Edge’?
• Edge of network
• Closer to the devices/machines
• Outside of the cloud, but managed by
the cloud
Copyright © by HiveMQ. All Rights Reserved.
Shifting To The Edge
• Cloud
→ Globally available, unlimited compute resources
• IoT
→ Signals from sensors and machines, managed centrally by
cloud
• Edge
→ Intelligence offloaded from the cloud to IoT devices
• AI
→ Intelligence capabilities, in the cloud and on the edge
Copyright © by HiveMQ. All Rights Reserved.
Azure IoT Edge
• Cloud Managed
→ Enables rich management of Azure IoT Edge from Azure
provide a complete solution instead of just an SDK
• Cross Platform
→Containerized environment, enables targeting most popular
edge operating systems such as Windows and Linux
• Portable
→ Enables Dev/Test of edge workloads in the cloud with later
deployment to the edge as part of a continuous integration / continuous
deployment pipeline
• Extensible
→ Deploying custom modules, third party solutions and/or AI
Copyright © by HiveMQ. All Rights Reserved.
MQTT on
the edge
Copyright © by HiveMQ. All Rights Reserved.
MQTT
● Lightweight protocol on top of TCP/IP
● Publish / Subscribe pattern
● De-coupling of sender and receiver
● Instant message delivery
● Open standard
Copyright © by HiveMQ. All Rights Reserved.
MQTT History
Copyright © by HiveMQ. All Rights Reserved.
MQTT 5 Features
• Compatibility and Portability improvements
• Session & Message Expiry
• Shared Subscriptions
→ Load balancing for clients
→ Multiple clients share the same subscription
• User Properties
→ User defined metadata
→ Reduce bandwidth and costs
• Improved Client Feedback
→ More descriptive reason codes and messages
→ Negative acknowledgements
• Request / Response pattern
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ ecosystem
• Enterprise MQTT platform
• Different Editions
→ Commercial with enterprise features and up to 24/7 support
→ Open Source “Community” edition
• Open Source client library
→ built for high-performance
• Enterprise integrations
→ Security
→ Kafka
→ ….
Copyright © by HiveMQ. All Rights Reserved.
Why HiveMQ on the Edge?
• MQTT as open standard
→ Interoperability
→ Vendor neutrality
→ HiveMQ supports 100% MQTT v5
→ Azure has partial MQTT v3.1.1 support
• Independent edge
→ Reliable intra-edge communication, without dependency
on internet connectivity
→ Vendor neutrality
• Control data flow and cost
→ Control which part of the IoT data is sent to the cloud or
analyzed on the edge
→ Reduce bandwidth and costs
Copyright © by HiveMQ. All Rights Reserved.
Why HiveMQ and IoT Edge?
• Bidirectional messaging
→ Direct Communication of components / machines at the
edge with each other
• Simple deployment and maintenance
→ Managed through Azure Cloud UI
→ Simple concepts
• Intelligent Edges
→ (Pre-)analyze data at the edge
→ Utilize Azure AI technologies
• High throughput on the Edge
→ Maintain high-throughput of messages on the edge,
not every message has to go to the cloud
→ Reduce bandwidth and costs
Copyright © by HiveMQ. All Rights Reserved.
Use Cases
Copyright © by HiveMQ. All Rights Reserved.
Intra Machine Communication
• Easy to manage and operate
→ IoT Devices can be provisioned and managed in the cloud
• Efficient intra machine communication
→ Low latency
→ Low overhead
• Early data analysis
→ Machine learning and AI for each machine
• Cost effective
→ Only selected and pre-analyzed data is streamed to the
cloud
Copyright © by HiveMQ. All Rights Reserved.
Inter Machine Communication
• Reliable
→ Factory stays independent of internet connectivity
→ Each building / location can have own communications hub
• Fast
→ Lower latencies in local network
• Interoperable
→ between machines and vendors
due to standard protocol MQTT v5
• Secure
→ Separate security layers for on-premise and cloud
• Intelligent
→ Computing and analysis right at the edge
Copyright © by HiveMQ. All Rights Reserved.
Azure IoT Edge
Concepts
Copyright © by HiveMQ. All Rights Reserved.
Concept - Azure IoT Edge Runtime
• Installs and updates workloads on the
device.
• Maintains Azure IoT Edge security
standards on the device.
• Ensures that IoT Edge modules are
always running.
• Reports module health to the cloud for
remote monitoring.
• Facilitates communication between downstream leaf devices and the IoT Edge device.
• Facilitates communication between modules on the IoT Edge device.
• Facilitates communication between the IoT Edge device and the cloud
Copyright © by HiveMQ. All Rights Reserved.
Concept - Module
• Module image is a package containing the software that defines a module.
• Module instance is the specific unit of computation running the module image on an IoT Edge device.
→ The module instance is started by the IoT Edge runtime
• Module identity is a piece of information (including security credentials) stored in IoT Hub, that is associated to each
module instance.
• Module twin is a JSON document stored in IoT Hub, that contains state information for a module instance.
• SDKs to develop custom modules in multiple languages (C#, C, Python, Java, Node.JS)
Copyright © by HiveMQ. All Rights Reserved.
Concept - Routing
● Query Language
FROM
/messages/modules/TelemetrySubscri
berModule/outputs/* INTO $upstream
Copyright © by HiveMQ. All Rights Reserved.
Concept - Device Management
Copyright © by HiveMQ. All Rights Reserved.
IoT in the Cloud vs Edge
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ on Azure IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ on Azure IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
Deploying HiveMQ Broker from the Cloud
● Deployment manifest
● Deploying at scale
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ on Azure IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
● Deployment manifest
● Deploying at scale
Deploying Custom Module from the Cloud
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ on Azure IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
Deploying Custom Module from the Cloud
● Subscribing to the dedicated topic
● Topic name can be a part of Module Configuration (Module Twin)
● Using HiveMQ Client Library
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ on Azure IoT Edge
Copyright © by HiveMQ. All Rights Reserved.
Routing Messages and Sending Results to the Cloud
● Sending the message to the module output
● Azure IoT Edge routes decide where the message goes next (another
module, cloud - IoT Hub)
● "TelemetrySubscriberModuleToIoTHub": "FROM
/messages/modules/TelemetrySubscriberModule/outputs/* INTO $upstream"
Copyright © by HiveMQ. All Rights Reserved.
Machine to Machine Communication
• Clients/Machines can leverage HiveMQ client
library or any other MQTT library
• Using HiveMQ broker to leverage MQTT features
• One example is ‘LastWill’ message to determine whether
machine got disconnected for triggering the alarms
through the cloud
• Full code available on GitHub:
https://github.com/kgalic/IoTEdgeM2MWithHiveMQ
• Broker for machines with additional logic embedded
for preprocessing before alarming another machine
Copyright © by HiveMQ. All Rights Reserved.
What’s next?
Copyright © by HiveMQ. All Rights Reserved.
What’s next?
• AI / ML at the edge and in the cloud
→ (Pre-)analyze data at the edge
→ Utilize Azure AI technologies
• Even deeper integration
→ HiveMQ extensions that directly integrate with IoT Edge
• High availability at the edge
→ Deploy HiveMQ clusters
→ Multiple IoT Edge Devices at the same location
• HiveMQ Cloud <-> Azure Cloud
→ Managed MQTT brokers through HiveMQ Cloud
→ Big Data analytics with Azure
Copyright © by HiveMQ. All Rights Reserved.
Resources
MQTT Essentials Series
Evaluate HiveMQ Broker
Try HiveMQ Cloud
Get Started with MQTT
ANY
QUESTIONS?
Reach out to community.hivemq.com
THANK YOU

Contenu connexe

Similaire à Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ

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
 
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
HiveMQ
 
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
 
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
Dominik Obermaier
 
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
HiveMQ
 

Similaire à Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ (20)

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...
 
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
 
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 Use InfluxDB to Visualize and Monitor MQTT Messages in an IIoT System
How to Use InfluxDB to Visualize and Monitor MQTT Messages in an IIoT SystemHow to Use InfluxDB to Visualize and Monitor MQTT Messages in an IIoT System
How to Use InfluxDB to Visualize and Monitor MQTT Messages in an IIoT System
 
Mqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloudMqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloud
 
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
 
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
 
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
 
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
 
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
 
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 ...
 
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
 
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
Inntroduction to MQTT Sparkplug with HiveMQ and Opto22
 
Back to Basics: An Introduction to MQTT
Back to Basics: An Introduction to MQTTBack to Basics: An Introduction to MQTT
Back to Basics: An Introduction to MQTT
 
IoT Security Issues and MQTT
IoT Security Issues and MQTTIoT Security Issues and MQTT
IoT Security Issues and MQTT
 
MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT
MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT
MQTT AS A KEY TECHNOLOGY FOR INDUSTRY 4.0 & IIoT
 
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
 
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
 
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
 
MQTT 5 - Why You Need It and Potential Pitfalls
MQTT 5 - Why You Need It and Potential PitfallsMQTT 5 - Why You Need It and Potential Pitfalls
MQTT 5 - Why You Need It and Potential Pitfalls
 

Plus de HiveMQ

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
HiveMQ
 
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
HiveMQ
 
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 Cloud
HiveMQ
 
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
HiveMQ
 

Plus de HiveMQ (14)

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
 
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 MQTT 5 Makes Difficult IoT Use Cases Possible
How MQTT 5 Makes Difficult IoT Use Cases PossibleHow MQTT 5 Makes Difficult IoT Use Cases Possible
How MQTT 5 Makes Difficult IoT Use Cases Possible
 
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
 
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
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Dernier (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Machine to Machine Communication with Microsoft Azure IoT Edge & HiveMQ

  • 1.
  • 2. Copyright © by HiveMQ. All Rights Reserved. ● Independent contractor ● Strong software engineering experience ● Certified Azure Solutions Architect ● Focused on IoT, from concept to the implementation ● Technical blogger ● Speaker WELCOME Christoph Schäbel Kresimir Galic @schaebo @kgalic1 linkedin.com/in/kresimir-galic -8664a66a/ www.variant-logic.com ● Practical MQTT expert with multiple years of experience in the field ● HiveMQ Core Developer ● Background in scalable and reliable distributed systems and robotics linkedin.com/in/cschaebel www.hivemq.com
  • 3. Copyright © by HiveMQ. All Rights Reserved. IoT Edge
  • 4. Copyright © by HiveMQ. All Rights Reserved. WHAT WE WILL TALK ABOUT • Shifting to the Edge → What is edge? • Azure IoT Edge Concept → Cloud managed deployments → Containerized environment • Cloud Managed Deployment of HiveMQ Broker for M2M Communication
  • 5. Copyright © by HiveMQ. All Rights Reserved. What We Call ‘Edge’? • Edge of network • Closer to the devices/machines • Outside of the cloud, but managed by the cloud
  • 6. Copyright © by HiveMQ. All Rights Reserved. Shifting To The Edge • Cloud → Globally available, unlimited compute resources • IoT → Signals from sensors and machines, managed centrally by cloud • Edge → Intelligence offloaded from the cloud to IoT devices • AI → Intelligence capabilities, in the cloud and on the edge
  • 7. Copyright © by HiveMQ. All Rights Reserved. Azure IoT Edge • Cloud Managed → Enables rich management of Azure IoT Edge from Azure provide a complete solution instead of just an SDK • Cross Platform →Containerized environment, enables targeting most popular edge operating systems such as Windows and Linux • Portable → Enables Dev/Test of edge workloads in the cloud with later deployment to the edge as part of a continuous integration / continuous deployment pipeline • Extensible → Deploying custom modules, third party solutions and/or AI
  • 8. Copyright © by HiveMQ. All Rights Reserved. MQTT on the edge
  • 9. Copyright © by HiveMQ. All Rights Reserved. MQTT ● Lightweight protocol on top of TCP/IP ● Publish / Subscribe pattern ● De-coupling of sender and receiver ● Instant message delivery ● Open standard
  • 10. Copyright © by HiveMQ. All Rights Reserved. MQTT History
  • 11. Copyright © by HiveMQ. All Rights Reserved. MQTT 5 Features • Compatibility and Portability improvements • Session & Message Expiry • Shared Subscriptions → Load balancing for clients → Multiple clients share the same subscription • User Properties → User defined metadata → Reduce bandwidth and costs • Improved Client Feedback → More descriptive reason codes and messages → Negative acknowledgements • Request / Response pattern
  • 12. Copyright © by HiveMQ. All Rights Reserved. HiveMQ ecosystem • Enterprise MQTT platform • Different Editions → Commercial with enterprise features and up to 24/7 support → Open Source “Community” edition • Open Source client library → built for high-performance • Enterprise integrations → Security → Kafka → ….
  • 13. Copyright © by HiveMQ. All Rights Reserved. Why HiveMQ on the Edge? • MQTT as open standard → Interoperability → Vendor neutrality → HiveMQ supports 100% MQTT v5 → Azure has partial MQTT v3.1.1 support • Independent edge → Reliable intra-edge communication, without dependency on internet connectivity → Vendor neutrality • Control data flow and cost → Control which part of the IoT data is sent to the cloud or analyzed on the edge → Reduce bandwidth and costs
  • 14. Copyright © by HiveMQ. All Rights Reserved. Why HiveMQ and IoT Edge? • Bidirectional messaging → Direct Communication of components / machines at the edge with each other • Simple deployment and maintenance → Managed through Azure Cloud UI → Simple concepts • Intelligent Edges → (Pre-)analyze data at the edge → Utilize Azure AI technologies • High throughput on the Edge → Maintain high-throughput of messages on the edge, not every message has to go to the cloud → Reduce bandwidth and costs
  • 15. Copyright © by HiveMQ. All Rights Reserved. Use Cases
  • 16. Copyright © by HiveMQ. All Rights Reserved. Intra Machine Communication • Easy to manage and operate → IoT Devices can be provisioned and managed in the cloud • Efficient intra machine communication → Low latency → Low overhead • Early data analysis → Machine learning and AI for each machine • Cost effective → Only selected and pre-analyzed data is streamed to the cloud
  • 17. Copyright © by HiveMQ. All Rights Reserved. Inter Machine Communication • Reliable → Factory stays independent of internet connectivity → Each building / location can have own communications hub • Fast → Lower latencies in local network • Interoperable → between machines and vendors due to standard protocol MQTT v5 • Secure → Separate security layers for on-premise and cloud • Intelligent → Computing and analysis right at the edge
  • 18. Copyright © by HiveMQ. All Rights Reserved. Azure IoT Edge Concepts
  • 19. Copyright © by HiveMQ. All Rights Reserved. Concept - Azure IoT Edge Runtime • Installs and updates workloads on the device. • Maintains Azure IoT Edge security standards on the device. • Ensures that IoT Edge modules are always running. • Reports module health to the cloud for remote monitoring. • Facilitates communication between downstream leaf devices and the IoT Edge device. • Facilitates communication between modules on the IoT Edge device. • Facilitates communication between the IoT Edge device and the cloud
  • 20. Copyright © by HiveMQ. All Rights Reserved. Concept - Module • Module image is a package containing the software that defines a module. • Module instance is the specific unit of computation running the module image on an IoT Edge device. → The module instance is started by the IoT Edge runtime • Module identity is a piece of information (including security credentials) stored in IoT Hub, that is associated to each module instance. • Module twin is a JSON document stored in IoT Hub, that contains state information for a module instance. • SDKs to develop custom modules in multiple languages (C#, C, Python, Java, Node.JS)
  • 21. Copyright © by HiveMQ. All Rights Reserved. Concept - Routing ● Query Language FROM /messages/modules/TelemetrySubscri berModule/outputs/* INTO $upstream
  • 22. Copyright © by HiveMQ. All Rights Reserved. Concept - Device Management
  • 23. Copyright © by HiveMQ. All Rights Reserved. IoT in the Cloud vs Edge
  • 24. Copyright © by HiveMQ. All Rights Reserved. HiveMQ on Azure IoT Edge
  • 25. Copyright © by HiveMQ. All Rights Reserved. HiveMQ on Azure IoT Edge
  • 26. Copyright © by HiveMQ. All Rights Reserved. Deploying HiveMQ Broker from the Cloud ● Deployment manifest ● Deploying at scale
  • 27. Copyright © by HiveMQ. All Rights Reserved. HiveMQ on Azure IoT Edge
  • 28. Copyright © by HiveMQ. All Rights Reserved. ● Deployment manifest ● Deploying at scale Deploying Custom Module from the Cloud
  • 29. Copyright © by HiveMQ. All Rights Reserved. HiveMQ on Azure IoT Edge
  • 30. Copyright © by HiveMQ. All Rights Reserved. Deploying Custom Module from the Cloud ● Subscribing to the dedicated topic ● Topic name can be a part of Module Configuration (Module Twin) ● Using HiveMQ Client Library
  • 31. Copyright © by HiveMQ. All Rights Reserved. HiveMQ on Azure IoT Edge
  • 32. Copyright © by HiveMQ. All Rights Reserved. Routing Messages and Sending Results to the Cloud ● Sending the message to the module output ● Azure IoT Edge routes decide where the message goes next (another module, cloud - IoT Hub) ● "TelemetrySubscriberModuleToIoTHub": "FROM /messages/modules/TelemetrySubscriberModule/outputs/* INTO $upstream"
  • 33. Copyright © by HiveMQ. All Rights Reserved. Machine to Machine Communication • Clients/Machines can leverage HiveMQ client library or any other MQTT library • Using HiveMQ broker to leverage MQTT features • One example is ‘LastWill’ message to determine whether machine got disconnected for triggering the alarms through the cloud • Full code available on GitHub: https://github.com/kgalic/IoTEdgeM2MWithHiveMQ • Broker for machines with additional logic embedded for preprocessing before alarming another machine
  • 34. Copyright © by HiveMQ. All Rights Reserved. What’s next?
  • 35. Copyright © by HiveMQ. All Rights Reserved. What’s next? • AI / ML at the edge and in the cloud → (Pre-)analyze data at the edge → Utilize Azure AI technologies • Even deeper integration → HiveMQ extensions that directly integrate with IoT Edge • High availability at the edge → Deploy HiveMQ clusters → Multiple IoT Edge Devices at the same location • HiveMQ Cloud <-> Azure Cloud → Managed MQTT brokers through HiveMQ Cloud → Big Data analytics with Azure
  • 36. Copyright © by HiveMQ. All Rights Reserved. Resources MQTT Essentials Series Evaluate HiveMQ Broker Try HiveMQ Cloud Get Started with MQTT
  • 37. ANY QUESTIONS? Reach out to community.hivemq.com