The Internet of Things (IoT) is getting more and more traction as valuable use cases come to light. Whether you are in Healthcare, Telecommunications, Manufacturing, Banking or Retail to name a few industries, there is one key challenge and that's the integration of backend IoT data logs and applications, business services and cloud services to process the data in real time and at scale.
In this talk, we will be sharing how Kafka has become the leading technology used throughout the business to provide Real Time Event Streaming. Explore real life use cases of Kafka Connect, Kafka Streams and KSQL independent of the data deployment be it on a private or public Cloud, On Premise or at the Edge.
Audi - Connected car infrastructure
Robert Bosch Power Tools - Track and Trace of devices and people at construction areas
Deutsche Bahn - Customer 360 for train timetable updates
E.ON - IoT Streaming Platform to integrate and build smart home, smart building and smart grid infrastructures
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digital Twin, PLCs, Edge and Hybrid Deployments
1. IoT Architectures for
Apache Kafka and Event Streaming
Industry 4.0, Digital Twin, PLCs, Edge and Hybrid Deployments
Kai Waehner
Technology Evangelist
contact@kai-waehner.de
LinkedIn
@KaiWaehner
www.confluent.io
www.kai-waehner.de
2. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Poll 1
What are you using Apache Kafka for today?
● Big data ingestion into data lake / analytics cluster for batch processing (Hadoop,
Spark, etc.)
● Streaming pipeline (integration layer, change data capture, streaming ETL)
● Critical business applications (microservice architectures, payment / fraud apps, etc.)
● IoT scenarios (sensor processing / analytics, device management, etc.)
● I don’t use Kafka today
www.kai-waehner.de | @KaiWaehner
3. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Agenda
• Use Cases
• Event Streaming and Apache Kafka
• IoT Architectures
• Live Demo – Connected Car Infrastructure
• Why Confluent
• Contact Us
5. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
5
Event-Driven App
(Location Tracking)
Only Real-Time Events
Messaging Queues can
do this
Contextual
Event-Driven App
(ETA)
Real-Time combined with
stored data
Only Event Streaming
Platforms can do this
Where is my driver? When will my driver
get here?
Where is my driver? When will my driver
get here?
Why add the word
Contextual?
6. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Front, rear and top
view cameras
Parking assistant
Environment pointer
Ultrasonic Sensors
Parking assistant with front
and rear camera plus
environment indicator
Crash Sensors
Front protection adaptivity
Side protection
Tail impact protection
Infrared Camera
Rearview assistance with
Pedestrian recognition
Front and Rear
Radar Sensors
ACC with stop and go function
Side assist
Front Camera
Audi Active lane assistant
Speed limit indicator
Adaptive light
The Future of the Automotive Industry
is a Real Time Data Cluster
7. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
The Future of the Automotive Industry
is a Real Time Data Cluster
Front, rear and top
view cameras
Ultrasonic SensorsCrash Sensors
Front Camera Infrared Camera
Front and Rear
Radar Sensors
Traffic Alerts
Hazard Alerts Personalization
Anomaly
Detection
MQTT MQTT
MQTT
MQTT MQTTMQTT
8. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
9. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
10. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
11. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
12. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Real Time Streaming ML at the Edge @ Severstal
www.kai-waehner.de | @KaiWaehner
https://www.confluent.io/customers/severstal/
14. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
14
STREAM
PROCESSING
Create and store
materialized views
Filter
Analyze in-flight
Time
C CC
15. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
TRADITIONAL
DATABASE
EVENT STREAM
PROCESSING
SELECT * FROM
DB_TABLE
CREATE TABLE T
AS SELECT * FROM
EVENT_STREAM
Active Query: Passive Data:
DB Table
Active Data: Passive Query:
Event Stream
16. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
TABLES STREAMS
USER
JAY
SUE
FRED
CREDIT_SCORE
695
430
710V1
V3
V2
PAYMENTS42
18
65
...
USER
JAY
SUE
FRED
...
17. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
PUSH PULL
APP
Jay’s credit score is 670
Jay’s credit score is 710
Jay’s credit score is 695
What is Jay’s credit score now?
695
APP
18. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
The Log ConnectorsConnectors
Producer Consumer
Streaming Engine
Apache Kafka - The Rise of an Event Streaming Platform
18
=
Messaging
+
Storage
+
Integration
+
Processing
19. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Apache Kafka at Scale at Tech Giants
> 7 trillion messages / day > 6 Petabytes / day
“You name it”
* Kafka is not just used for big data
** Kafka Is not just used by tech giants
19
20. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
10 Reasons for Event Streaming with Apache Kafka
Real Time
Scalable
Cost Reduction
24/7 – Zero downtime, zero data loss
Decoupling – Storage, Domain-driven Design
Data (re-)processing and stateful client applications
Integration – Connectivity to IoT, legacy, big data, everything
Hybrid Architecture – On Premises, multi cloud, edge computing
Fully managed cloud
No vendor locking
20
21. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Device management
Unreliable networks
Connectivity beyond standards
Edge hardware
…
is not an IoT Platform!
22. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Poll 2
How do you use or plan to use Kafka and its ecosystem?
● Build a core IoT even streaming platform (using Kafka Connect + connectors for MQTT
/ Syslog / PLC4X / etc.)
● Combine Kafka with other open source components (like Eclipse IoT, HiveMQ, …)
● Combine Kafka with commercial platforms (like Siemens MindSphere or GE Predix)
● Use Kafka just as messaging pipeline and not for IoT-related tasks
● I don’t use or plan to use Kafka at all for my IoT projects
www.kai-waehner.de | @KaiWaehner
24. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Digital Service at the Edge
Single
Kafka Broker
(or Cluster)
Digital
Service
Self-managed or
certified OEM Hardware
Kafka
Cluster
in DC /
Cloud
Replicator
Siemens S7, Modbus, Allen Bradley, Beckhoff ADS
25. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Centralized Digital Service
Digital
Service
Single
Kafka Broker
(or Cluster)
Self-managed or
certified OEM Hardware
Siemens S7, Modbus, Allen Bradley, Beckhoff ADS
Single
Kafka Broker
(or Cluster)
Self-managed or
certified OEM Hardware
Siemens S7, Modbus, Allen Bradley, Beckhoff ADS
26. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Global IoT Architecture
Multiple Clusters and Aggregation
Factories à Analytics Cluster
Multi-Region Cluster
High Availability (Disaster Recovery)
Global Data Streaming
Outsourced
Development
28. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
IoT Infrastructure with
Kafka, TensorFlow and MongoDB
28
MQTT
Proxy
Kafka
Cluster
Kafka
Connect
Car Sensors
Kafka Ecosystem
TensorFlow
Other Components
Kafka
Streams
(Java)
All
Data
Critical
Data
Ingest
Data
Potential
Detect
KSQL
TensorFlow
Train
Analytic
Model
Consume
Data
Preprocess
Data
Analytic
Model
Deploy
Analytic
Model
Python
https://github.com/kaiwaehner/hivemq-mqtt-tensorflow-kafka-realtime-iot-machine-learning-training-inference
Connectivity
Homogenization
Reprogrammable and smart
Digital traces
Modularity
MongoDB
Storage
MongoDB
Dashboards
Search
Analytics
Mobile App
BI Tool
32. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
32Confluent Platform
Fully Managed Cloud ServiceSelf Managed Software FREEDOM OF CHOICE
COMMITTER-DRIVEN EXPERTISE PartnersTrainingProfessional
Services
Enterprise
Support
Apache Kafka
EFFICIENT
OPERATIONS AT SCALE
PRODUCTION-
STAGE PREREQUISITES
UNRESTRICTED
DEVELOPER PRODUCTIVITY
SQL-based Stream Processing
KSQL (ksqlDB)
Rich Pre-built Ecosystem
Connectors | Hub | Schema Registry
Multi-language Development
non-Java clients | REST Proxy
GUI-driven Mgmt & Monitoring
Control Center
Flexible DevOps Automation
Operator | Ansible
Dynamic Performance & Elasticity
Auto Data Balancer | Tiered Storage
Enterprise-grade Security
RBAC | Secrets | Audit logs
Data Compatibility
Schema Registry | Schema Validation
Global Resilience
Multi-Region Clusters | Replicator
Developer Operator Architect
Open Source | Community licensed
PARTNERSHIP
FOR BUSINESS SUCCESS
Complete Engagement Model
Revenue / Cost / Risk Impact
TCO / ROI
Executive Buyer
33. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
33
I N V E S T M E N T & T I M E
VALUE
3
4
5
1
2
Event Streaming Maturity Model
33
Initial Awareness /
Pilot (1 Kafka Cluster)
Start to Build Pipeline /
Deliver 1 New Outcome
(1 Kafka Cluster)
Mission-Critical
Deployment
(Stretched, Hybrid, Multi-
Region)
Build Contextual Event-
Driven Apps
(Stretched, Hybrid,
Multi-Region)
Central Nervous System
(Global Kafka)
Product, Support, Training, Partners, Technical Account Management...
34. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
34C O N F I D E N T I A L
Future-proof event streaming
Kafka re-engineered as a fully-managed, cloud-native service by its original creators and
the team that wrote 80% of all Kafka commits
Global
Automated disaster
recovery
Global applications with
geo-awareness
Infinite
Efficient and infinite data
with tiered storage
Unlimited horizontal
scalability for clusters
Elastic
Easy multi-cloud
orchestration
Persistent bridge to
cloud from on-prem
35. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
Poll 3
What architectures do make most sense for your Kafka deployment?
● Deployment at the edge (factory, plant, data center) for local integration and data processing
● Replication between edge and cloud / other data center
● Global architecture (e.g. aggregation and analytics of data from different factories)
● Single Kafka Broker, e.g. at small sites (no data center, no high availability)
● Digital Twin for real time analytics of sensor data
www.kai-waehner.de | @KaiWaehner
36. IoT and Event Streaming – @KaiWaehner - www.kai-waehner.de
36
• Schedule a free one to one virtual session with a Confluent
Systems Engineer.
• Contact Robin North at rnorth@confluent.io to get started!
• Visit the Confluent IoT Website
https://www.confluent.io/solutions/internet-of-things-iot/
Next Steps