SlideShare ist ein Scribd-Unternehmen logo
1 von 55
Downloaden Sie, um offline zu lesen
Copyright © by HiveMQ. All Rights Reserved.Copyright © HiveMQ. All Rights Reserved.
WELCOME TO
We will start the session shortly
Copyright © by HiveMQ. All Rights Reserved.
WELCOME
Dominik Obermaier Magi Erber
• HiveMQ CTO
• Strong background in
distributed and large scale
systems architecture
• OASIS MQTT TC Member
• Author of „The Technical
Foundations of IoT“
• Conference Speaker and
Author
• Program committee
member for German and
international IoT
conferences
• Product Manager
@HiveMQ
• Conference Speaker
• Author
• Expert for cloud native
technologies and Apache
Kafka
@dobermai
linkedin.com/in/dobermai/
@ErberMagi
linkedin.com/in/margaretha-erber/
Copyright © by HiveMQ. All Rights Reserved.
The Internet of Things is HUGE
PEOPLE ON THE INTERNET
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
The Internet of Things is HUGE
DEVICES ON THE INTERNET
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Technical IoT Challenges
Customers, ARR, ...
Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Challenge 1 - Scalability
• Enterprise IT infrastructure is not
suitable for IoT
Copyright © by HiveMQ. All Rights Reserved.
• Massive scalability required for
millions of devices
Copyright © by HiveMQ. All Rights Reserved.
Challenge 2 - Instant Data Delivery required
• End customers are used to instant
user experiences like instant
messaging with WhatsApp
Copyright © by HiveMQ. All Rights Reserved.
• Critical systems need reliable and
instant data transfer like manufacturing
systems
• Bidirectional communication required
Copyright © by HiveMQ. All Rights Reserved.
Challenge 3 - Unreliable Networks
• Customer experience for IoT apps and devices
must be excellent even when internet connectivity
is flaky
Especially for moving “devices” like cars
Copyright © by HiveMQ. All Rights Reserved.
• Devices and apps must be easy to program and
maintain, complexity should be in the cloud not
on the device
Cloud is easier to update than physical devices
Copyright © by HiveMQ. All Rights Reserved.
Web Technology used today is
built for the
Internet of Humans,
NOT for the
Internet of Things
Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
We need open standards
designed for the
Internet of Things
Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
What Is MQTT?
• Easy on the device side, pushes all implementation
complexity to the server
• Publish/Subscribe based architecture
• Created for extreme scale and instant data exchange
• (I)IoT Messaging Protocol
• Built for machines and constrained devices(binary,
data agnostic)
• Designed for reliable communication over unreliable
channels
Copyright © by HiveMQ. All Rights Reserved.
Connected Car
IIoT /
Industry 4.0
Logistics Telecommunication
IoT Messaging
Middleware
MQTT Use Cases
Copyright © by HiveMQ. All Rights Reserved.
MQTT Use Cases
Push Communication
Reliable Communication over
unreliable networks
Constrained Devices
Low Bandwidth and High
Latency
Industrial Message Bus
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Apache Kafka
• Distributed streaming platform
• Used by over one third of Fortune 500 companies
• Most popular Apache project on GitHub
• Central messaging and distributed stream processing
application
Copyright © by HiveMQ. All Rights Reserved.
Apache Kafka Strengths
• Optimized to stream data between systems and
applications in a scalable manner
• Scale-out with multiple partitions for a topic and
multiple nodes
• Perfect for inter-system communication
• inside trusted network
• with stable IP addresses and
connections and
• limited number of producers and
consumers
Copyright © by HiveMQ. All Rights Reserved.
Apache Kafka
Copyright © by HiveMQ. All Rights Reserved.
Apache Kafka
Producers Consumers
Partition 1
Partition 2
Partition 3
My Topic
Producer A
Producer B
Consumer
A
Consumer
B
Consumer
C
0
0
0
1
1
1
2
Copyright © by HiveMQ. All Rights Reserved.
Apache Kafka for IoT -
How does it fit in?
Copyright © by HiveMQ. All Rights Reserved.
IoT Reality Challenges
Copyright © by HiveMQ. All Rights Reserved.
Challenge 1 - Millions of Connections
● Clients are connected over the Internet
● Load Balancers are used as first line of defense
● IP addresses of infrastructure (e.g. Kafka nodes) not
exposed to the public Internet
● Load Balancers effectively act as proxy
● Kafka Clients need to address Kafka brokers directly,
which is not possible with L4 load balancers
IoT REALITY
Copyright © by HiveMQ. All Rights Reserved.
● IoT devices typically are segmented to use individual topics
● Individual topics very often contain data like unique device
identifier
● Multiple millions of topics can be used in a single IoT scenario
● Ideal for security as it’s possible to restrict devices to only
produce and consume for specific topics
● Topics are usually dynamic
● Kafka is hard to scale to multiple thousands or
even millions of topics
IoT REALITY
Challenge 2 - Scalability and Topics
Copyright © by HiveMQ. All Rights Reserved.
car-0000001
my-iot-devices/ger/group-1/car-0000001/speed
my-iot-devices/ger/group-1/car-0000001/location
my-iot-devices/ger/group-1/car-0000001/motor-heat
car-1045107
my-iot-devices/eu/group-3/car-1045107/speed
my-iot-devices/eu/group-3/car-1045107/location
my-iot-devices/eu/group-3/car-1045107/motor-heat
my-iot-devices/usa/group-1/car-5239284/speed
my-iot-devices/usa/group-1/car-5239284/location
my-iot-devices/usa/group-1/car-5239284/motor-heat
...
...
car-5239284
Challenge 2 - Scalability and Topics
Copyright © by HiveMQ. All Rights Reserved.
● IoT devices are typically very constrained (computing power and
memory)
● Device programmer need very simple APIs AND full flexibility when it
comes to library behavior
● Single IoT devices typically don’t require lot of throughput
● Important to limit and understand the number of TCP connections,
especially over the Internet. Very often only one TCP connection to
the backend desired
● Kafka Clients are reasonable complex by design (e.g. use multiple
TCP connections)
● Libraries optimized for throughput
● APIs for Kafka libraries are simple to use but the behavior sometimes
isn’t configurable easily (e.g. async send() method can block)
IoT REALITY
Challenge 3 - Constraint Devices
Copyright © by HiveMQ. All Rights Reserved.
● Features like on/off notifications are often required
● Unreliable networks require lightweight keep-alive mechanisms for
producers and consumers (half-open connections)
● Device communication over the Internet requires minimal
communication overhead
● No on/off notification mechanism
● No Keep-Alive mechanism individual TCP connections for producers
● Kafka Protocol for producers rather heavyweight over the Internet
(lots of communication)
IoT REALITY
Challenge 4 - Unreliable Network
Copyright © by HiveMQ. All Rights Reserved.
Kafka is well suited for data
ingestion of cloud native server
applications,
but not well suited for IoT device
data connectivity
Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
Challenges for Apache Kafka in IoT
Kafka brokers need to be addressed directly by the clients
Kafka does not support large amounts of topics
Kafka clients are reasonably complex and resource intensive compared to
client libraries for IoT protocols
Kafka clients require a stable TCP connection for best results
It’s unusual (and very often not even possible at all) to have tens of
thousands or even millions of clients connected to a single Kafka cluster
Kafka is missing some key IoT features
Copyright © by HiveMQ. All Rights Reserved.
How to use the best of
both worlds?
Copyright © by HiveMQ. All Rights Reserved.
A Love Story Made in Heaven
❤
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ - Enterprise MQTT Broker
● Connectivity and Messaging Platform
● Based on standard IoT protocol
(MQTT)
● Scales to more than 10 million
always-on devices
● Allow multi-cloud and Enterprise
software integration
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ - Enterprise MQTT Broker
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ and Kafka
Fast, reliable communication
Ideal for communication over
unreliable networks
Connects millions of IoT
Devices
Optimized to stream data
between systems and
applications
Communication inside trusted
networks
Connects limited number of
communication partners
Copyright © by HiveMQ. All Rights Reserved.
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ Enterprise Extension for Kafka
• Native implementation of Kafka protocol
• End to-end persistent messaging guarantees
• Bi-directional communication
• High Scalability and resilience
• Support of Local Schema Registry (Avro, JSON)
• Support of Confluent Schema Registry (Avro)
• Stream to multiple Kafka instances
Copyright © by HiveMQ. All Rights Reserved.
Support of Different Kafka Distributions
• Multiple Kafka deployments simultaneously
• AWS MSK
• Apache Kafka (Open Source) • Confluent Platform
• Confluent Cloud
Copyright © by HiveMQ. All Rights Reserved.
High Scalability and Resilience
Scales elastically with the MQTT broker
No message loss: Queues messages, if Kafka cluster is temporarily
not available
Extreme throughput. Can write hundreds of thousands of MQTT
messages per second to Kafka
Copyright © by HiveMQ. All Rights Reserved.
Bidirectional Communication
Copyright © by HiveMQ. All Rights Reserved.
Bidirectional Communication
• MQTT to Kafka Topic Mapping
• One to One Topic Mapping
• Aggregating MQTT Topics to Firehose
Kafka Topic (using topic filters)
• Kafka to MQTT Topic Mapping
• One to One Topic Mapping
• One (Many) to Many Topic Mapping
• Message transformation (using parts of
Kafka message)
Copyright © by HiveMQ. All Rights Reserved.
Bidirectional Communication
Record
Kafka Key
Kafka Value
PUBLISH
MQTT Topic
MQTT Payload
Topic
Copyright © by HiveMQ. All Rights Reserved.
Bidirectional Communication
Record
Kafka Key
Kafka Value
PUBLISH
MQTT Topic
MQTT Payload
Topic
Copyright © by HiveMQ. All Rights Reserved.
Message Transformation
Record
Kafka Key
{
“client-id”: “client-1”,
“message”: “whatever needs to be sent”
}
PUBLISH
my-iot-devices/group-1/${client-id}
/{message}
Topic
my-iot-devices/group-1/client-1
“whatever needs to be sent”
Copyright © by HiveMQ. All Rights Reserved.
Message Multicasting
Record
Kafka Key
{
“client-id”: [“client-1”, “client-2”, “client-3”],
“message”: “whatever needs to be sent”
}
PUBLISH
my-iot-devices/group-1
/${client-id}
“whatever needs to
be sent”
Topic
PUBLISH
my-iot-devices/group-1
/${client-id}
“whatever needs to
be sent”
PUBLISH
my-iot-devices/group-1
/${client-id}
“whatever needs to
be sent”
my-iot-devices/group-1
/client-1
my-iot-devices/group-1
/client-2
my-iot-devices/group-1
/client-3
Copyright © by HiveMQ. All Rights Reserved.
Support of Schema Registries
Apache Kafka
• Kafka does not care about message formats
• No verification of message correctness
• Systems are evolving and message formats will
change
● Support of Local Schema Registry
○ JSON and Avro messages
○ Message validation
Schema Registries
• Guarantee the correct functionality of
messaging
• Message validation
• Schema evolution
Copyright © by HiveMQ. All Rights Reserved.
Local Schema Registry
Copyright © by HiveMQ. All Rights Reserved.
Support of Schema Registries
Apache Kafka
• Kafka does not care about message formats
• No verification of message correctness
• Systems are evolving and message formats will
change
● Support of Local Schema Registry
○ JSON and Avro messages
○ Message validation
● Support of Confluent Schema Registry
○ Avro messages
○ Message validation
○ Schema evolution
Schema Registries
• Guarantee the correct functionality of
messaging
• Message validation
• Schema evolution
Copyright © by HiveMQ. All Rights Reserved.
Confluent Schema Registry
Copyright © by HiveMQ. All Rights Reserved.
Observability of Communication
Copyright © by HiveMQ. All Rights Reserved.
• Connect millions of IoT devices, over unreliable networks, to seamlessly send data to one or
multiple Kafka clusters
• Route IoT device data to multiple Kafka clusters allowing for a single IoT platform to support
different types of devices and forward device data to different back-end applications
• Poll information from one or multiple Kafka clusters and distribute this information to millions
of IoT devices
• Support of all MQTT 3.1.1 and MQTT 5 features
• Map millions of MQTT topics to a limited number of Kafka topics using MQTT wildcards
• Enable end to-end persistent messaging guarantees from device to Kafka so no messages are
lost
• Monitor MQTT messages written to Kafka using the HiveMQ Control Center
Copyright © by HiveMQ. All Rights Reserved.
Demo
Copyright © by HiveMQ. All Rights Reserved.
HiveMQ Enterprise Extension for Kafka - Demo
Contact us at kafka@hivemq.com for getting a live demonstration of the HiveMQ Enterprise Extension for Kafka
Mobile
Application
sensor-data
Stream processing
using KSQL
Other
Backend
Systems
MQTT to Kafka
Kafka to MQTT
100simulatedcars
Confluent Schema Registry
Get Schema
alert
THANK YOU
Copyright © by HiveMQ. All Rights Reserved.
For attending the webinar
We will upload the webinar on our YouTube Channel
Subscribe to our YouTube Channel: page.video/hivemq
Stay updated on upcoming webinars
Subscribe to our Newsletter: newsletter.social/hivemq
All unanswered questions will be answered on the
HiveMQ Community Forum
To the HiveMQ Community Forum:
community.hivemq.com

Weitere ähnliche Inhalte

Was ist angesagt?

Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura
 
Industrial transformation-simplified-with-mqtt-and-sparkplug
Industrial transformation-simplified-with-mqtt-and-sparkplugIndustrial transformation-simplified-with-mqtt-and-sparkplug
Industrial transformation-simplified-with-mqtt-and-sparkplugHugoMller5
 
IoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIan Skerrett
 
Ibm_IoT_Architecture_and_Capabilities
Ibm_IoT_Architecture_and_CapabilitiesIbm_IoT_Architecture_and_Capabilities
Ibm_IoT_Architecture_and_CapabilitiesIBM_Info_Management
 
Internet of Things: Comparison of Protocols & Standards
Internet of Things: Comparison of Protocols & StandardsInternet of Things: Comparison of Protocols & Standards
Internet of Things: Comparison of Protocols & StandardsAshu Joshi
 
A Pragmatic Reference Architecture for The Internet of Things
A Pragmatic Reference Architecture for The Internet of ThingsA Pragmatic Reference Architecture for The Internet of Things
A Pragmatic Reference Architecture for The Internet of ThingsRick G. Garibay
 
Asset Monitoring with Beacons, Lora, NodeJS and IoT Cloud
Asset Monitoring with Beacons, Lora,  NodeJS and IoT CloudAsset Monitoring with Beacons, Lora,  NodeJS and IoT Cloud
Asset Monitoring with Beacons, Lora, NodeJS and IoT CloudRobert van Mölken
 
IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud Pradeep Natarajan
 
Catching the Internet of Things (IoT) Wave
Catching the Internet of Things (IoT) WaveCatching the Internet of Things (IoT) Wave
Catching the Internet of Things (IoT) WaveChuck Petras
 
What's the Right Messaging Standard for the IoT?
What's the Right Messaging  Standard for the IoT?What's the Right Messaging  Standard for the IoT?
What's the Right Messaging Standard for the IoT?Angelo Corsaro
 
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...Alex Kritikos
 
Building the Internet of Things
Building the Internet of ThingsBuilding the Internet of Things
Building the Internet of ThingsAngelo Corsaro
 
IoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkIoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkSomeRandomBloke
 
The iot academy_lpwan_lora
The iot academy_lpwan_loraThe iot academy_lpwan_lora
The iot academy_lpwan_loraThe IOT Academy
 
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...Benjamin Cabé
 
Connecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and SparkplugConnecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and SparkplugIan Skerrett
 
Webnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWANWebnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWANMartin Haas
 

Was ist angesagt? (20)

Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-pi
 
Unizen Smart Automation Brochure-2015
Unizen Smart Automation Brochure-2015Unizen Smart Automation Brochure-2015
Unizen Smart Automation Brochure-2015
 
Industrial transformation-simplified-with-mqtt-and-sparkplug
Industrial transformation-simplified-with-mqtt-and-sparkplugIndustrial transformation-simplified-with-mqtt-and-sparkplug
Industrial transformation-simplified-with-mqtt-and-sparkplug
 
IoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTTIoT Meetup HiveMQ and MQTT
IoT Meetup HiveMQ and MQTT
 
Ibm_IoT_Architecture_and_Capabilities
Ibm_IoT_Architecture_and_CapabilitiesIbm_IoT_Architecture_and_Capabilities
Ibm_IoT_Architecture_and_Capabilities
 
Internet of Things: Comparison of Protocols & Standards
Internet of Things: Comparison of Protocols & StandardsInternet of Things: Comparison of Protocols & Standards
Internet of Things: Comparison of Protocols & Standards
 
A Pragmatic Reference Architecture for The Internet of Things
A Pragmatic Reference Architecture for The Internet of ThingsA Pragmatic Reference Architecture for The Internet of Things
A Pragmatic Reference Architecture for The Internet of Things
 
Asset Monitoring with Beacons, Lora, NodeJS and IoT Cloud
Asset Monitoring with Beacons, Lora,  NodeJS and IoT CloudAsset Monitoring with Beacons, Lora,  NodeJS and IoT Cloud
Asset Monitoring with Beacons, Lora, NodeJS and IoT Cloud
 
IoT and Its Application
IoT and Its ApplicationIoT and Its Application
IoT and Its Application
 
IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud
 
Catching the Internet of Things (IoT) Wave
Catching the Internet of Things (IoT) WaveCatching the Internet of Things (IoT) Wave
Catching the Internet of Things (IoT) Wave
 
What's the Right Messaging Standard for the IoT?
What's the Right Messaging  Standard for the IoT?What's the Right Messaging  Standard for the IoT?
What's the Right Messaging Standard for the IoT?
 
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
An IOT gateway Architecture using an MQTT bundle transport & LTP Convergence ...
 
Building the Internet of Things
Building the Internet of ThingsBuilding the Internet of Things
Building the Internet of Things
 
IoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkIoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talk
 
The iot academy_lpwan_lora
The iot academy_lpwan_loraThe iot academy_lpwan_lora
The iot academy_lpwan_lora
 
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...
Using Eclipse and Lua for the Internet of Things with Eclipse Koneki, Mihini ...
 
Connecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and SparkplugConnecting the smart factory to the cloud with MQTT and Sparkplug
Connecting the smart factory to the cloud with MQTT and Sparkplug
 
Webnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWANWebnesday - Introduction to LoRaWAN
Webnesday - Introduction to LoRaWAN
 
IoT and LoRaWAN
IoT and LoRaWANIoT and LoRaWAN
IoT and LoRaWAN
 

Ähnlich wie HiveMQ + Kafka: The ideal solution for IoT MQTT data integration

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
 
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
 
Introducing HiveMQ Cloud
Introducing HiveMQ CloudIntroducing HiveMQ Cloud
Introducing HiveMQ CloudMargarethaErber
 
HiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ
 
Debugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
Debugging MQTT Client Communications With MQTT.fx and HiveMQ CloudDebugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
Debugging MQTT Client Communications With MQTT.fx and HiveMQ CloudHiveMQ
 
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
 
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 MQTTHiveMQ
 
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
 
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
 
Mqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloudMqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloudMargarethaErber
 
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
 
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
 
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
 
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 MQTTHiveMQ
 
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
 
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
 
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
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...confluent
 

Ähnlich wie HiveMQ + Kafka: The ideal solution for IoT MQTT data integration (20)

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
 
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
 
Introducing HiveMQ Cloud
Introducing HiveMQ CloudIntroducing HiveMQ Cloud
Introducing HiveMQ Cloud
 
HiveMQ Cloud Webinar
HiveMQ Cloud WebinarHiveMQ Cloud Webinar
HiveMQ Cloud Webinar
 
Debugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
Debugging MQTT Client Communications With MQTT.fx and HiveMQ CloudDebugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
Debugging MQTT Client Communications With MQTT.fx and HiveMQ Cloud
 
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
 
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
 
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
 
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
 
Mqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloudMqtt.fx on hive mq cloud
Mqtt.fx on hive mq cloud
 
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
 
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...
 
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
 
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
 
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
 
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
 
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
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 

Kürzlich hochgeladen

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 Scriptwesley chun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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 RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
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)wesley chun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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.pptxEarley Information Science
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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...Martijn de Jong
 
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 SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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 MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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 WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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...
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

HiveMQ + Kafka: The ideal solution for IoT MQTT data integration

  • 1. Copyright © by HiveMQ. All Rights Reserved.Copyright © HiveMQ. All Rights Reserved. WELCOME TO We will start the session shortly
  • 2. Copyright © by HiveMQ. All Rights Reserved. WELCOME Dominik Obermaier Magi Erber • HiveMQ CTO • Strong background in distributed and large scale systems architecture • OASIS MQTT TC Member • Author of „The Technical Foundations of IoT“ • Conference Speaker and Author • Program committee member for German and international IoT conferences • Product Manager @HiveMQ • Conference Speaker • Author • Expert for cloud native technologies and Apache Kafka @dobermai linkedin.com/in/dobermai/ @ErberMagi linkedin.com/in/margaretha-erber/
  • 3. Copyright © by HiveMQ. All Rights Reserved. The Internet of Things is HUGE PEOPLE ON THE INTERNET Copyright © by HiveMQ. All Rights Reserved.
  • 4. Copyright © by HiveMQ. All Rights Reserved. The Internet of Things is HUGE DEVICES ON THE INTERNET Copyright © by HiveMQ. All Rights Reserved.
  • 5. Copyright © by HiveMQ. All Rights Reserved.
  • 6. Copyright © by HiveMQ. All Rights Reserved. Technical IoT Challenges Customers, ARR, ... Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
  • 7. Copyright © by HiveMQ. All Rights Reserved. Challenge 1 - Scalability • Enterprise IT infrastructure is not suitable for IoT Copyright © by HiveMQ. All Rights Reserved. • Massive scalability required for millions of devices
  • 8. Copyright © by HiveMQ. All Rights Reserved. Challenge 2 - Instant Data Delivery required • End customers are used to instant user experiences like instant messaging with WhatsApp Copyright © by HiveMQ. All Rights Reserved. • Critical systems need reliable and instant data transfer like manufacturing systems • Bidirectional communication required
  • 9. Copyright © by HiveMQ. All Rights Reserved. Challenge 3 - Unreliable Networks • Customer experience for IoT apps and devices must be excellent even when internet connectivity is flaky Especially for moving “devices” like cars Copyright © by HiveMQ. All Rights Reserved. • Devices and apps must be easy to program and maintain, complexity should be in the cloud not on the device Cloud is easier to update than physical devices
  • 10. Copyright © by HiveMQ. All Rights Reserved. Web Technology used today is built for the Internet of Humans, NOT for the Internet of Things Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
  • 11. Copyright © by HiveMQ. All Rights Reserved. We need open standards designed for the Internet of Things Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
  • 12. Copyright © by HiveMQ. All Rights Reserved.
  • 13. Copyright © by HiveMQ. All Rights Reserved. What Is MQTT? • Easy on the device side, pushes all implementation complexity to the server • Publish/Subscribe based architecture • Created for extreme scale and instant data exchange • (I)IoT Messaging Protocol • Built for machines and constrained devices(binary, data agnostic) • Designed for reliable communication over unreliable channels
  • 14. Copyright © by HiveMQ. All Rights Reserved. Connected Car IIoT / Industry 4.0 Logistics Telecommunication IoT Messaging Middleware MQTT Use Cases
  • 15. Copyright © by HiveMQ. All Rights Reserved. MQTT Use Cases Push Communication Reliable Communication over unreliable networks Constrained Devices Low Bandwidth and High Latency Industrial Message Bus
  • 16. Copyright © by HiveMQ. All Rights Reserved.
  • 17. Copyright © by HiveMQ. All Rights Reserved.
  • 18. Copyright © by HiveMQ. All Rights Reserved.
  • 19. Copyright © by HiveMQ. All Rights Reserved. Apache Kafka • Distributed streaming platform • Used by over one third of Fortune 500 companies • Most popular Apache project on GitHub • Central messaging and distributed stream processing application
  • 20. Copyright © by HiveMQ. All Rights Reserved. Apache Kafka Strengths • Optimized to stream data between systems and applications in a scalable manner • Scale-out with multiple partitions for a topic and multiple nodes • Perfect for inter-system communication • inside trusted network • with stable IP addresses and connections and • limited number of producers and consumers
  • 21. Copyright © by HiveMQ. All Rights Reserved. Apache Kafka
  • 22. Copyright © by HiveMQ. All Rights Reserved. Apache Kafka Producers Consumers Partition 1 Partition 2 Partition 3 My Topic Producer A Producer B Consumer A Consumer B Consumer C 0 0 0 1 1 1 2
  • 23. Copyright © by HiveMQ. All Rights Reserved. Apache Kafka for IoT - How does it fit in?
  • 24. Copyright © by HiveMQ. All Rights Reserved. IoT Reality Challenges
  • 25. Copyright © by HiveMQ. All Rights Reserved. Challenge 1 - Millions of Connections ● Clients are connected over the Internet ● Load Balancers are used as first line of defense ● IP addresses of infrastructure (e.g. Kafka nodes) not exposed to the public Internet ● Load Balancers effectively act as proxy ● Kafka Clients need to address Kafka brokers directly, which is not possible with L4 load balancers IoT REALITY
  • 26. Copyright © by HiveMQ. All Rights Reserved. ● IoT devices typically are segmented to use individual topics ● Individual topics very often contain data like unique device identifier ● Multiple millions of topics can be used in a single IoT scenario ● Ideal for security as it’s possible to restrict devices to only produce and consume for specific topics ● Topics are usually dynamic ● Kafka is hard to scale to multiple thousands or even millions of topics IoT REALITY Challenge 2 - Scalability and Topics
  • 27. Copyright © by HiveMQ. All Rights Reserved. car-0000001 my-iot-devices/ger/group-1/car-0000001/speed my-iot-devices/ger/group-1/car-0000001/location my-iot-devices/ger/group-1/car-0000001/motor-heat car-1045107 my-iot-devices/eu/group-3/car-1045107/speed my-iot-devices/eu/group-3/car-1045107/location my-iot-devices/eu/group-3/car-1045107/motor-heat my-iot-devices/usa/group-1/car-5239284/speed my-iot-devices/usa/group-1/car-5239284/location my-iot-devices/usa/group-1/car-5239284/motor-heat ... ... car-5239284 Challenge 2 - Scalability and Topics
  • 28. Copyright © by HiveMQ. All Rights Reserved. ● IoT devices are typically very constrained (computing power and memory) ● Device programmer need very simple APIs AND full flexibility when it comes to library behavior ● Single IoT devices typically don’t require lot of throughput ● Important to limit and understand the number of TCP connections, especially over the Internet. Very often only one TCP connection to the backend desired ● Kafka Clients are reasonable complex by design (e.g. use multiple TCP connections) ● Libraries optimized for throughput ● APIs for Kafka libraries are simple to use but the behavior sometimes isn’t configurable easily (e.g. async send() method can block) IoT REALITY Challenge 3 - Constraint Devices
  • 29. Copyright © by HiveMQ. All Rights Reserved. ● Features like on/off notifications are often required ● Unreliable networks require lightweight keep-alive mechanisms for producers and consumers (half-open connections) ● Device communication over the Internet requires minimal communication overhead ● No on/off notification mechanism ● No Keep-Alive mechanism individual TCP connections for producers ● Kafka Protocol for producers rather heavyweight over the Internet (lots of communication) IoT REALITY Challenge 4 - Unreliable Network
  • 30. Copyright © by HiveMQ. All Rights Reserved. Kafka is well suited for data ingestion of cloud native server applications, but not well suited for IoT device data connectivity Confidential and Proprietary. Copyright © by HiveMQ. All Rights Reserved.
  • 31. Copyright © by HiveMQ. All Rights Reserved. Challenges for Apache Kafka in IoT Kafka brokers need to be addressed directly by the clients Kafka does not support large amounts of topics Kafka clients are reasonably complex and resource intensive compared to client libraries for IoT protocols Kafka clients require a stable TCP connection for best results It’s unusual (and very often not even possible at all) to have tens of thousands or even millions of clients connected to a single Kafka cluster Kafka is missing some key IoT features
  • 32. Copyright © by HiveMQ. All Rights Reserved. How to use the best of both worlds?
  • 33. Copyright © by HiveMQ. All Rights Reserved. A Love Story Made in Heaven ❤
  • 34. Copyright © by HiveMQ. All Rights Reserved. HiveMQ - Enterprise MQTT Broker ● Connectivity and Messaging Platform ● Based on standard IoT protocol (MQTT) ● Scales to more than 10 million always-on devices ● Allow multi-cloud and Enterprise software integration
  • 35. Copyright © by HiveMQ. All Rights Reserved. HiveMQ - Enterprise MQTT Broker
  • 36. Copyright © by HiveMQ. All Rights Reserved. HiveMQ and Kafka Fast, reliable communication Ideal for communication over unreliable networks Connects millions of IoT Devices Optimized to stream data between systems and applications Communication inside trusted networks Connects limited number of communication partners
  • 37. Copyright © by HiveMQ. All Rights Reserved.
  • 38. Copyright © by HiveMQ. All Rights Reserved. HiveMQ Enterprise Extension for Kafka • Native implementation of Kafka protocol • End to-end persistent messaging guarantees • Bi-directional communication • High Scalability and resilience • Support of Local Schema Registry (Avro, JSON) • Support of Confluent Schema Registry (Avro) • Stream to multiple Kafka instances
  • 39. Copyright © by HiveMQ. All Rights Reserved. Support of Different Kafka Distributions • Multiple Kafka deployments simultaneously • AWS MSK • Apache Kafka (Open Source) • Confluent Platform • Confluent Cloud
  • 40. Copyright © by HiveMQ. All Rights Reserved. High Scalability and Resilience Scales elastically with the MQTT broker No message loss: Queues messages, if Kafka cluster is temporarily not available Extreme throughput. Can write hundreds of thousands of MQTT messages per second to Kafka
  • 41. Copyright © by HiveMQ. All Rights Reserved. Bidirectional Communication
  • 42. Copyright © by HiveMQ. All Rights Reserved. Bidirectional Communication • MQTT to Kafka Topic Mapping • One to One Topic Mapping • Aggregating MQTT Topics to Firehose Kafka Topic (using topic filters) • Kafka to MQTT Topic Mapping • One to One Topic Mapping • One (Many) to Many Topic Mapping • Message transformation (using parts of Kafka message)
  • 43. Copyright © by HiveMQ. All Rights Reserved. Bidirectional Communication Record Kafka Key Kafka Value PUBLISH MQTT Topic MQTT Payload Topic
  • 44. Copyright © by HiveMQ. All Rights Reserved. Bidirectional Communication Record Kafka Key Kafka Value PUBLISH MQTT Topic MQTT Payload Topic
  • 45. Copyright © by HiveMQ. All Rights Reserved. Message Transformation Record Kafka Key { “client-id”: “client-1”, “message”: “whatever needs to be sent” } PUBLISH my-iot-devices/group-1/${client-id} /{message} Topic my-iot-devices/group-1/client-1 “whatever needs to be sent”
  • 46. Copyright © by HiveMQ. All Rights Reserved. Message Multicasting Record Kafka Key { “client-id”: [“client-1”, “client-2”, “client-3”], “message”: “whatever needs to be sent” } PUBLISH my-iot-devices/group-1 /${client-id} “whatever needs to be sent” Topic PUBLISH my-iot-devices/group-1 /${client-id} “whatever needs to be sent” PUBLISH my-iot-devices/group-1 /${client-id} “whatever needs to be sent” my-iot-devices/group-1 /client-1 my-iot-devices/group-1 /client-2 my-iot-devices/group-1 /client-3
  • 47. Copyright © by HiveMQ. All Rights Reserved. Support of Schema Registries Apache Kafka • Kafka does not care about message formats • No verification of message correctness • Systems are evolving and message formats will change ● Support of Local Schema Registry ○ JSON and Avro messages ○ Message validation Schema Registries • Guarantee the correct functionality of messaging • Message validation • Schema evolution
  • 48. Copyright © by HiveMQ. All Rights Reserved. Local Schema Registry
  • 49. Copyright © by HiveMQ. All Rights Reserved. Support of Schema Registries Apache Kafka • Kafka does not care about message formats • No verification of message correctness • Systems are evolving and message formats will change ● Support of Local Schema Registry ○ JSON and Avro messages ○ Message validation ● Support of Confluent Schema Registry ○ Avro messages ○ Message validation ○ Schema evolution Schema Registries • Guarantee the correct functionality of messaging • Message validation • Schema evolution
  • 50. Copyright © by HiveMQ. All Rights Reserved. Confluent Schema Registry
  • 51. Copyright © by HiveMQ. All Rights Reserved. Observability of Communication
  • 52. Copyright © by HiveMQ. All Rights Reserved. • Connect millions of IoT devices, over unreliable networks, to seamlessly send data to one or multiple Kafka clusters • Route IoT device data to multiple Kafka clusters allowing for a single IoT platform to support different types of devices and forward device data to different back-end applications • Poll information from one or multiple Kafka clusters and distribute this information to millions of IoT devices • Support of all MQTT 3.1.1 and MQTT 5 features • Map millions of MQTT topics to a limited number of Kafka topics using MQTT wildcards • Enable end to-end persistent messaging guarantees from device to Kafka so no messages are lost • Monitor MQTT messages written to Kafka using the HiveMQ Control Center
  • 53. Copyright © by HiveMQ. All Rights Reserved. Demo
  • 54. Copyright © by HiveMQ. All Rights Reserved. HiveMQ Enterprise Extension for Kafka - Demo Contact us at kafka@hivemq.com for getting a live demonstration of the HiveMQ Enterprise Extension for Kafka Mobile Application sensor-data Stream processing using KSQL Other Backend Systems MQTT to Kafka Kafka to MQTT 100simulatedcars Confluent Schema Registry Get Schema alert
  • 55. THANK YOU Copyright © by HiveMQ. All Rights Reserved. For attending the webinar We will upload the webinar on our YouTube Channel Subscribe to our YouTube Channel: page.video/hivemq Stay updated on upcoming webinars Subscribe to our Newsletter: newsletter.social/hivemq All unanswered questions will be answered on the HiveMQ Community Forum To the HiveMQ Community Forum: community.hivemq.com