SlideShare a Scribd company logo
www.immobilienscout24.de
Get the basics right
for your IoT business
IoT Innovation Lab @ Relayr – 2016-05-04 – Speaker: @KayLerch
Agenda
1. Know the tech stack
2. AWS can manage things for you
3. AWS is not the only truth
4. That’s Apache NiFi
5. AWS IoT basic concepts (Recap)
6. AWS IoT & Apache NiFi
7. Focus on business value
8. Focus on innovation
Seite 2
Get the basics right for your IoT business | Kay Lerch
Know the tech stack
before you do business
Seite 3
Get the basics right for your IoT business | Kay Lerch
A reference architecture for IoT
Seite 4
Source: WSO2 (IoT Whitepaper)
Value Value
Value
Value
Effort
Effort
Effort
Challenges:
• Set the basics right (EFFORT)
• Integrate (VALUE) in your current
business / IT landscape
• Be innovative!
Solution:
Minimize (EFFORT)
• Rely on managed services and tools
Maximize (VALUE)
• Have the basics right
• rely on established tools
• Think over your integration strategy
Drive innovation
• Think beyond borders
• disrupt business with combining
established things in a totally new fashion
Get the basics right for your IoT business | Kay Lerch
AWS can manage those basics
with a managed IoT solution
Seite 5
Get the basics right for your IoT business | Kay Lerch
What AWS (IoT) provides …
Seite 6
Device Registry
TLS Certificates with
associated IAM-like policies
Communication over HTTP and
MQTT
Message broker with topics
State persistence with shadows
Event processing and
forwarding with IoT Rules and
Rule actions
Device SDKs in Node.JS, C
and for Arduino Yún
Get the basics right for your IoT business | Kay Lerch
What AWS (IoT) provides …
Seite 7
Event processing and analytics
with Kinesis Eventstreams,
ML, EMR and Lambda
Data / event stores like S3 or
Dynamo DB
API Gateway for public
endpoint management
Have your IoT related key
metrics in CloudWatch
EC2 as a ground for your
(web) applications
communicating with devices
Get the basics right for your IoT business | Kay Lerch
AWS IoT core tents
Seite 8
Read this: “Core tenets of IoT” by AWS (as of April 2016)
Get the basics right for your IoT business | Kay Lerch
AWS is not the only truth
You surely have your lovely tools outside AWS
Seite 9
Get the basics right for your IoT business | Kay Lerch
A brief overview of data processing and analysis
That‘s quite a lot of tooling and technology …
Seite 10
Hidden complexities
Data
Producers
Data
Consumers
Event
Broker
(Big) data stores
Data analysis challenges
(Realtime) Data Processing & Analytics
Integration
challenges
Ingestionchallenges
Data security
challenges
Get the basics right for your IoT business | Kay Lerch
A brief overview of data processing and analysis
That‘s quite a lot of tooling and technology …
Seite 11
Hidden complexities
Data
Producers
Data
Consumers
Event
Broker
(Big) data stores
Data analysis challenges
(Realtime) Data Processing & Analytics
Integration
challenges
Ingestionchallenges
Data security
challenges
Get the basics right for your IoT business | Kay Lerch
If you want …
 a (realtime) big picture of your dataflows
 an option to overlook lineage of each data element
 have the flexibility to change things on the fly
 prioritize data
 overcome challenges of integrating the variety of
technologies with one overarching solution
 enforce security and compliance along dataflows
 rely on extensibility driven by OS community
 satisfy all those needs and keep your tools
 get rid of only those tools focused on moving data without
making concessions to overall performance
… then you might love:
Just to let you know …
Seite 12
Source: WSO2 (IoT Whitepaper)
Value Value
Value
Value
Effort
Effort
Effort
We are here
And a bit of here
Get the basics right for your IoT business | Kay Lerch
That’s Apache NiFi
Seite 13
Get the basics right for your IoT business | Kay Lerch
Seite 14
That‘s Apache NiFi
in one page
Apache nifi supports powerful and scalable directed graphs of data
routing, transformation, and system mediation logic.
Web-based user interface
Seamless experience between design, control, feedback, and monitoring
Highly configurable
Loss tolerant vs guaranteed delivery, Low latency vs high throughput, Dynamic prioritization, Flow can be modified at runtime, Back pressure
Data Provenance
Track dataflow from beginning to end
Designed for extension
Build your own processors and more, Enables rapid development and effective testing
Secure
SSL, SSH, HTTPS, encrypted content, etc..., Pluggable role-based authentication/authorization
Source: https://nifi.apache.org/ Get the basics right for your IoT business | Kay Lerch
Seite 15
That‘s Apache NiFi
in real and feel
Go to NiFi’s interface and understand:
Processors
Templates
Concept of back pressure
Concept of data prioritization
Provenence Graph
Get the basics right for your IoT business | Kay Lerch
NiFi Cluster
NiFi Cluster
Manager (NCM)
JVM
Node (Primary)
NiFi Clustered Architecture
JVM
Webserver
Provenance
Repository
Content
Repository
Flowfile
Repository
REST-APIAdminUI
Webserver REST-APIAdmin UI
Flow Controller
Cluster Manager
Processor 1
Processor 2
Isolated
Processor
Controller Service 1
Controller Service 2
Controller Service n
Heartbeat
Leader
election
Report
change
Embedded Apache Zookeeper
Node (Slave)
JVM
Webserver
Provenance
Repository
Content
Repository
Flowfile
Repository
REST-APIAdminUI
Flow Controller
Processor 1
Processor 2
Isolated
Processor
Controller Service 1
Controller Service 2
Controller Service n
Heartbeat
Report
change
Sync
State
Sync
State
AWS IoT
Basics (Recap)
Seite 17
Get the basics right for your IoT business | Kay Lerch
Seite 18
AWS IoT
The Shadow
AWS IoT
Thing
Thing
Shadow
Rule
Reports State Mirrors State
in Shadow
Gets reported
state or sets
desired state
Propagates
desired state
Receives
desired state
Fulfills
desiredstate
Subscribes to
particular messages
AWS Services
Some
AWS
Resource
Routes
message
TLS
1.2
TLS
1.2 Policy
Get the basics right for your IoT business | Kay Lerch
AWS IoT
MQTT topics
AWS IoT
Thing
Shadow
get
get/
accepted
get/
rejected
Request state
Get shadow state
Get error
update
update/
accepted
update/
rejected
update/
delta
Update state
Confirmation
Get error
Changed
state
1
2
1
2
3
Thing topics name pattern: $aws/things/thing_name/...
Get the basics right for your IoT business | Kay Lerch
Apache NiFi & AWS IoT
New processors
Seite 20
Get the basics right for your IoT business | Kay Lerch
Seite 21
Apache NiFi & AWS IoT
GetIOTMqtt – a MQTT client
AWS IoT
Thing
Shadow
update
Update state
Establish
Connection
Subscribe
Receive state
1
2
3
Flow
file
Get the basics right for your IoT business | Kay Lerch
Seite 22
Apache NiFi & AWS IoT
GetIOTMqtt – Configuration
Get the basics right for your IoT business | Kay Lerch
Seite 23
Apache NiFi & AWS IoT
GetIOTMqtt – Live demo
Get the basics right for your IoT business | Kay Lerch
Seite 24
Apache NiFi & AWS IoT
GetIOTMqtt – Live demo
Get the basics right for your IoT business | Kay Lerch
Seite 25
Apache NiFi & AWS IoT
PutIOTMqtt – instruct a „thing“ (but bypass the shadow)
AWS IoT
Thing
Shadow
update /
delta
Update state
Establish
Connection
Publish state
1
2
Flow
file
Flow
file
Get the basics right for your IoT business | Kay Lerch
Seite 26
Apache NiFi & AWS IoT
PutIOTMqtt – Configuration
Get the basics right for your IoT business | Kay Lerch
Seite 27
Apache NiFi & AWS IoT
PutIOTMqtt – Live demo
Get the basics right for your IoT business | Kay Lerch
Seite 28
Apache NiFi & AWS IoT
GetIOTShadow – constantly check last reported state
AWS IoT
Thing
Shadow
update
Report state
Request
Shadow
Flow
file
Flow
file
Get the basics right for your IoT business | Kay Lerch
Seite 29
Apache NiFi & AWS IoT
GetIOTShadow – Configuration
Get the basics right for your IoT business | Kay Lerch
Seite 30
Apache NiFi & AWS IoT
PutIOTShadow – instruct a „thing“ over its shadow
AWS IoT
Thing
Shadow
update /
delta
Desire state
Update
Shadow
Flow
file
Flow
file
Get the basics right for your IoT business | Kay Lerch
Seite 31
Apache NiFi & AWS IoT
PutIOTShadow – Configuration
Get the basics right for your IoT business | Kay Lerch
We got the basics
Let’s focus on business value
Seite 32
Get the basics right for your IoT business | Kay Lerch
Homework almost done
Seite 33
Source: WSO2 (IoT Whitepaper)
Value Value
Value
Value
Effort
Effort
Effort
Challenges:
• Set the basics right (EFFORT)
• Integrate (VALUE) in your current
business
• Be innovative!
Solution:
Minimize (EFFORT)
 Rely on managed services and tools
Maximize (VALUE)
 Have the basics right
 rely on established tools
• Think over your integration strategy
Drive innovation
• Think beyond borders
• disrupt business with combining
established things in a totally new fashion
Get the basics right for your IoT business | Kay Lerch
Agile integration strategy with AWS Simple Workflows at ImmobilienScout
Legacy / 3rd Party
AWS Simple Workflows (SWF)
AWSSNS
AWS
Lambda
AWSS3
AWSEC2
AWSECS
OnPremise
Broker
Start
Workflow
Put File
Bucket Topic
Publish
Message
Start
Workflow
Activity
Task
Func
tion
Func
tion
Trusted Applications / Mobile Apps
AWS Flow
Framework
Start
Workflow
Event
Trigger
Send Data
Invoke Service
Decider
Apps
AWS
Cloudwatch
AWS
CloudTrail
Logs
Metrics
Alarms
Log Measure
Activity
Task
Activity
Task
Decision
Task
Decision
Task
Workflow
History
AWS Flow
Framework
AWS***
Any
Activity
Task
Decision
Task
Start
Workflow
Trigger Trigger
Notify
API
Call
Discover
Decision
Task
Service
Apps
AWS Flow
Framework
Activity
Task
AWSIAM
Policies
Manage
Permissions
Func
tion
Lambda
Task
API
Call
IoT Device
AWSIoT
Topic
Publish
Message
Func
tion
Start
Workflow
Rule
Dynamo
Start
Workflow
Put File
Table
Func
tion
Trigger
Partner
AWSAPI
Gateway
Start
Workflow
Invoke
Func
tion
Route
Service
Lambda
Task
Decision
Task
Hybrid integration platform
aiming for Self-Service integration
We got the basics
Let’s focus on innovation
Seite 36
Get the basics right for your IoT business | Kay Lerch
Homework done!
Seite 37
Source: WSO2 (IoT Whitepaper)
Value Value
Value
Value
Effort
Effort
Effort
Challenges:
• Set the basics right (EFFORT)
• Integrate (VALUE) in your current
business
• Be innovative!
Solution:
Minimize (EFFORT)
 Rely on managed services and tools
Maximize (VALUE)
 Have the basics right
 rely on established tools
 Think over your integration strategy
Drive innovation
• Think beyond borders
• disrupt business with combining
established things in a totally new fashion
Get the basics right for your IoT business | Kay Lerch
Gain real business value
Seite 38
Source: WSO2 (IoT Whitepaper)
Value Value
Value
Value
Effort
Effort
Effort
1) Combine values of different worlds to
find a breathtaking use case
2) Rely on your basics
3) Build a product around your solution
4) Change the world
Value Value+
Effort Effort Effort+ +
+
=
+
Adopt new things…
Get the basics right for your IoT business | Kay Lerch
Gain value
Demo (Smart home)
Seite 39
+ +
Get the basics right for your IoT business | Kay Lerch
Pick some fancy frontend (VALUE) Pick some fancy “backend” (VALUE)
Rely on your
basics (EFFORT)
= Have
Smart Home
Gain value
Demo (VoiceOps)
Seite 40
+ +
Get the basics right for your IoT business | Kay Lerch
Pick some fancy frontend (VALUE) Pick some fancy “backend” (VALUE)
Rely on your
basics (EFFORT)
= Have
VoiceOps
Once you got the basics right, it’s up to you to …
Seite 41
Get the basics right for your IoT business | Kay Lerch
www.immobilienscout24.de
Thanks for you attention. Any questions?
Contact:
Immobilien Scout GmbH
Andreasstraße 10
10243 Berlin
Kay Lerch
Fon +49 30 24 301-1149
kay.lerch@immobilienscout24.de
Backup
Seite 43
Get the basics right for your IoT business | Kay Lerch
T-Cobbler
I need some “thing” …
Input & Output units on your
breadboard
I need some “thing” …
Control GPIO-Pins with sending
or receiving electric impulses
Control an output Control an input
Communicating with AWS IoT over MQTT topics
Alexa SkillAWS Lambda
AWS API Gateway
Lambda
Post
Message to
Slack
Lambda
Update
Shadow
Rpi 2
AWS IoT
Thing
Shadow
Python ScriptGPIO
Rule
Invoke
MQTT
Publish
MQTT
Receive
Update Shadow
on state change
Impulse
Sequence
SVC
Outgoing
Webhook
Post
Message
over Slack
Web API
433 Mhz
Signal
C++ D/A
Converter
Post
Message if
no state
changes
AWS Lambda
AWS EC2
Lambda
Start / Stop
EC2-
Instance
Rpi 2
AWS IoT
Thing
Shadow
Python Script
GPIO
Rule
Invoke
MQTT
Publish
Impulse
Sequence
Post Message over Slack Web API
433 Mhz
Signal
C++ A/D
Converter
Start / Stop over AWS SDK
AWS CW
Lambda
React on
EC2 state
change
Rule
Update Shadow
MQTT
Receive
Impulse
On state
change
Rpi 2
AWS IoT
Thing
Shadow
Python Script
GPIO
Rule
MQTT
Publish
Impulse
Sequence
Post Message over Slack Web API
AWS CW
Alarm
On Humidity > 30%
Metric Metric
Alexa Skill
Read out temperature
and humidity

More Related Content

PPTX
Say hello to AWS IoT
PPTX
Positioning the CCC Professional Cloud Portfolio for Rapid Adoption
PDF
AWS IoT Services Overview- IoT Core, Monitoring, Analytics by Jake Scherrer
PPTX
Comparison of various streaming technologies
PDF
Big Data Day LA 2015 - Always-on Ingestion for Data at Scale by Arvind Prabha...
PPTX
Dataflow with Apache NiFi - Apache NiFi Meetup - 2016 Hadoop Summit - San Jose
PPTX
Real-Time Event & Stream Processing on MS Azure
PDF
Lightbend Fast Data Platform
Say hello to AWS IoT
Positioning the CCC Professional Cloud Portfolio for Rapid Adoption
AWS IoT Services Overview- IoT Core, Monitoring, Analytics by Jake Scherrer
Comparison of various streaming technologies
Big Data Day LA 2015 - Always-on Ingestion for Data at Scale by Arvind Prabha...
Dataflow with Apache NiFi - Apache NiFi Meetup - 2016 Hadoop Summit - San Jose
Real-Time Event & Stream Processing on MS Azure
Lightbend Fast Data Platform

Viewers also liked (20)

PPTX
How to Build Continuous Ingestion for the Internet of Things
PDF
Study: The Future of VR, AR and Self-Driving Cars
PPTX
Blr hadoop meetup
PPTX
Getting started with Azure Event Hubs and Stream Analytics services
PDF
London Apache Kafka Meetup (Jan 2017)
PDF
Storm over gearpump
PPTX
Kafka connect
PDF
Not Only Streams for Akademia JLabs
PDF
UX, ethnography and possibilities: for Libraries, Museums and Archives
PPTX
Processing IoT Data with Apache Kafka
PDF
Designing Teams for Emerging Challenges
PPTX
IoT Connected Brewery
PPTX
Five Cool Use Cases for the Spring Component of the SOA Suite 11g
PPTX
Fusion Middleware Live Application Development Demo Oracle Open World 2012
PPTX
Effective fault handling in SOA Suite 11g
PDF
Confluent kafka meetupseattle jan2017
PDF
Strata+Hadoop 2017 San Jose - The Rise of Real Time: Apache Kafka and the Str...
PDF
Extracting Insights from Data at Twitter
PDF
Apache kafka-a distributed streaming platform
PPTX
Building Reactive Fast Data & the Data Lake with Akka, Kafka, Spark
How to Build Continuous Ingestion for the Internet of Things
Study: The Future of VR, AR and Self-Driving Cars
Blr hadoop meetup
Getting started with Azure Event Hubs and Stream Analytics services
London Apache Kafka Meetup (Jan 2017)
Storm over gearpump
Kafka connect
Not Only Streams for Akademia JLabs
UX, ethnography and possibilities: for Libraries, Museums and Archives
Processing IoT Data with Apache Kafka
Designing Teams for Emerging Challenges
IoT Connected Brewery
Five Cool Use Cases for the Spring Component of the SOA Suite 11g
Fusion Middleware Live Application Development Demo Oracle Open World 2012
Effective fault handling in SOA Suite 11g
Confluent kafka meetupseattle jan2017
Strata+Hadoop 2017 San Jose - The Rise of Real Time: Apache Kafka and the Str...
Extracting Insights from Data at Twitter
Apache kafka-a distributed streaming platform
Building Reactive Fast Data & the Data Lake with Akka, Kafka, Spark
Ad

Similar to IoT Innovation Lab Berlin @relayr - Kay Lerch on Getting basics right for your IoT business (2016-05-04) (20)

PPTX
AWS User Group Meetup Berlin - Kay Lerch on Apache NiFi (2016-04-19)
PPTX
AWS IoT: From Testing to Scaling
PPTX
Enterprise Cloud Data Platforms - with Microsoft Azure
PDF
The Scout24 Data Platform (A Technical Deep Dive)
PDF
AWS Enterprise Summit - 엔터프라이즈에서의 AWS 클라우드 활용 - Markku Lepisto
PDF
Technology Series: Modernize and transform user experience with UiPath and AW...
PDF
The Beginner's Guide to Data Lakes in AWS
PPTX
The Cloud - What's different
PPTX
Hoe het Azure ecosysteem een cruciale rol speelt in uw IoT-oplossing (Glenn C...
PDF
AWSome Day Manchester 2105 - Intro/Close
PDF
Machine learning in the physical world by Kip Larson from AWS IoT
PPTX
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
PDF
Intro Presentation at AWS AWSome Day London September 2015
PDF
Oracle Digital Business Transformation and Internet of Things by Ermin Prašović
PPT
ArcReady - Architecting For The Cloud
PDF
Microsoft & IoT
PDF
Clarity in the virtual world - VMware vRealize Automation With vRealize Business
PDF
The Truth Behind Serverless
PPTX
Automating your AWS Security Operations
PDF
Connecting EA and ITSM Webinar (8-11-2024).pdf
AWS User Group Meetup Berlin - Kay Lerch on Apache NiFi (2016-04-19)
AWS IoT: From Testing to Scaling
Enterprise Cloud Data Platforms - with Microsoft Azure
The Scout24 Data Platform (A Technical Deep Dive)
AWS Enterprise Summit - 엔터프라이즈에서의 AWS 클라우드 활용 - Markku Lepisto
Technology Series: Modernize and transform user experience with UiPath and AW...
The Beginner's Guide to Data Lakes in AWS
The Cloud - What's different
Hoe het Azure ecosysteem een cruciale rol speelt in uw IoT-oplossing (Glenn C...
AWSome Day Manchester 2105 - Intro/Close
Machine learning in the physical world by Kip Larson from AWS IoT
SeattleUniv-IntroductionToCloudComputing-WinsowsAzure101
Intro Presentation at AWS AWSome Day London September 2015
Oracle Digital Business Transformation and Internet of Things by Ermin Prašović
ArcReady - Architecting For The Cloud
Microsoft & IoT
Clarity in the virtual world - VMware vRealize Automation With vRealize Business
The Truth Behind Serverless
Automating your AWS Security Operations
Connecting EA and ITSM Webinar (8-11-2024).pdf
Ad

Recently uploaded (20)

PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
project resource management chapter-09.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
MIND Revenue Release Quarter 2 2025 Press Release
A comparative analysis of optical character recognition models for extracting...
Web App vs Mobile App What Should You Build First.pdf
project resource management chapter-09.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Heart disease approach using modified random forest and particle swarm optimi...
DP Operators-handbook-extract for the Mautical Institute
Univ-Connecticut-ChatGPT-Presentaion.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Hybrid model detection and classification of lung cancer
Getting Started with Data Integration: FME Form 101
Chapter 5: Probability Theory and Statistics
Hindi spoken digit analysis for native and non-native speakers
Enhancing emotion recognition model for a student engagement use case through...
TLE Review Electricity (Electricity).pptx
WOOl fibre morphology and structure.pdf for textiles
OMC Textile Division Presentation 2021.pptx
A novel scalable deep ensemble learning framework for big data classification...
Group 1 Presentation -Planning and Decision Making .pptx

IoT Innovation Lab Berlin @relayr - Kay Lerch on Getting basics right for your IoT business (2016-05-04)

  • 1. www.immobilienscout24.de Get the basics right for your IoT business IoT Innovation Lab @ Relayr – 2016-05-04 – Speaker: @KayLerch
  • 2. Agenda 1. Know the tech stack 2. AWS can manage things for you 3. AWS is not the only truth 4. That’s Apache NiFi 5. AWS IoT basic concepts (Recap) 6. AWS IoT & Apache NiFi 7. Focus on business value 8. Focus on innovation Seite 2 Get the basics right for your IoT business | Kay Lerch
  • 3. Know the tech stack before you do business Seite 3 Get the basics right for your IoT business | Kay Lerch
  • 4. A reference architecture for IoT Seite 4 Source: WSO2 (IoT Whitepaper) Value Value Value Value Effort Effort Effort Challenges: • Set the basics right (EFFORT) • Integrate (VALUE) in your current business / IT landscape • Be innovative! Solution: Minimize (EFFORT) • Rely on managed services and tools Maximize (VALUE) • Have the basics right • rely on established tools • Think over your integration strategy Drive innovation • Think beyond borders • disrupt business with combining established things in a totally new fashion Get the basics right for your IoT business | Kay Lerch
  • 5. AWS can manage those basics with a managed IoT solution Seite 5 Get the basics right for your IoT business | Kay Lerch
  • 6. What AWS (IoT) provides … Seite 6 Device Registry TLS Certificates with associated IAM-like policies Communication over HTTP and MQTT Message broker with topics State persistence with shadows Event processing and forwarding with IoT Rules and Rule actions Device SDKs in Node.JS, C and for Arduino Yún Get the basics right for your IoT business | Kay Lerch
  • 7. What AWS (IoT) provides … Seite 7 Event processing and analytics with Kinesis Eventstreams, ML, EMR and Lambda Data / event stores like S3 or Dynamo DB API Gateway for public endpoint management Have your IoT related key metrics in CloudWatch EC2 as a ground for your (web) applications communicating with devices Get the basics right for your IoT business | Kay Lerch
  • 8. AWS IoT core tents Seite 8 Read this: “Core tenets of IoT” by AWS (as of April 2016) Get the basics right for your IoT business | Kay Lerch
  • 9. AWS is not the only truth You surely have your lovely tools outside AWS Seite 9 Get the basics right for your IoT business | Kay Lerch
  • 10. A brief overview of data processing and analysis That‘s quite a lot of tooling and technology … Seite 10 Hidden complexities Data Producers Data Consumers Event Broker (Big) data stores Data analysis challenges (Realtime) Data Processing & Analytics Integration challenges Ingestionchallenges Data security challenges Get the basics right for your IoT business | Kay Lerch
  • 11. A brief overview of data processing and analysis That‘s quite a lot of tooling and technology … Seite 11 Hidden complexities Data Producers Data Consumers Event Broker (Big) data stores Data analysis challenges (Realtime) Data Processing & Analytics Integration challenges Ingestionchallenges Data security challenges Get the basics right for your IoT business | Kay Lerch If you want …  a (realtime) big picture of your dataflows  an option to overlook lineage of each data element  have the flexibility to change things on the fly  prioritize data  overcome challenges of integrating the variety of technologies with one overarching solution  enforce security and compliance along dataflows  rely on extensibility driven by OS community  satisfy all those needs and keep your tools  get rid of only those tools focused on moving data without making concessions to overall performance … then you might love:
  • 12. Just to let you know … Seite 12 Source: WSO2 (IoT Whitepaper) Value Value Value Value Effort Effort Effort We are here And a bit of here Get the basics right for your IoT business | Kay Lerch
  • 13. That’s Apache NiFi Seite 13 Get the basics right for your IoT business | Kay Lerch
  • 14. Seite 14 That‘s Apache NiFi in one page Apache nifi supports powerful and scalable directed graphs of data routing, transformation, and system mediation logic. Web-based user interface Seamless experience between design, control, feedback, and monitoring Highly configurable Loss tolerant vs guaranteed delivery, Low latency vs high throughput, Dynamic prioritization, Flow can be modified at runtime, Back pressure Data Provenance Track dataflow from beginning to end Designed for extension Build your own processors and more, Enables rapid development and effective testing Secure SSL, SSH, HTTPS, encrypted content, etc..., Pluggable role-based authentication/authorization Source: https://nifi.apache.org/ Get the basics right for your IoT business | Kay Lerch
  • 15. Seite 15 That‘s Apache NiFi in real and feel Go to NiFi’s interface and understand: Processors Templates Concept of back pressure Concept of data prioritization Provenence Graph Get the basics right for your IoT business | Kay Lerch
  • 16. NiFi Cluster NiFi Cluster Manager (NCM) JVM Node (Primary) NiFi Clustered Architecture JVM Webserver Provenance Repository Content Repository Flowfile Repository REST-APIAdminUI Webserver REST-APIAdmin UI Flow Controller Cluster Manager Processor 1 Processor 2 Isolated Processor Controller Service 1 Controller Service 2 Controller Service n Heartbeat Leader election Report change Embedded Apache Zookeeper Node (Slave) JVM Webserver Provenance Repository Content Repository Flowfile Repository REST-APIAdminUI Flow Controller Processor 1 Processor 2 Isolated Processor Controller Service 1 Controller Service 2 Controller Service n Heartbeat Report change Sync State Sync State
  • 17. AWS IoT Basics (Recap) Seite 17 Get the basics right for your IoT business | Kay Lerch
  • 18. Seite 18 AWS IoT The Shadow AWS IoT Thing Thing Shadow Rule Reports State Mirrors State in Shadow Gets reported state or sets desired state Propagates desired state Receives desired state Fulfills desiredstate Subscribes to particular messages AWS Services Some AWS Resource Routes message TLS 1.2 TLS 1.2 Policy Get the basics right for your IoT business | Kay Lerch
  • 19. AWS IoT MQTT topics AWS IoT Thing Shadow get get/ accepted get/ rejected Request state Get shadow state Get error update update/ accepted update/ rejected update/ delta Update state Confirmation Get error Changed state 1 2 1 2 3 Thing topics name pattern: $aws/things/thing_name/... Get the basics right for your IoT business | Kay Lerch
  • 20. Apache NiFi & AWS IoT New processors Seite 20 Get the basics right for your IoT business | Kay Lerch
  • 21. Seite 21 Apache NiFi & AWS IoT GetIOTMqtt – a MQTT client AWS IoT Thing Shadow update Update state Establish Connection Subscribe Receive state 1 2 3 Flow file Get the basics right for your IoT business | Kay Lerch
  • 22. Seite 22 Apache NiFi & AWS IoT GetIOTMqtt – Configuration Get the basics right for your IoT business | Kay Lerch
  • 23. Seite 23 Apache NiFi & AWS IoT GetIOTMqtt – Live demo Get the basics right for your IoT business | Kay Lerch
  • 24. Seite 24 Apache NiFi & AWS IoT GetIOTMqtt – Live demo Get the basics right for your IoT business | Kay Lerch
  • 25. Seite 25 Apache NiFi & AWS IoT PutIOTMqtt – instruct a „thing“ (but bypass the shadow) AWS IoT Thing Shadow update / delta Update state Establish Connection Publish state 1 2 Flow file Flow file Get the basics right for your IoT business | Kay Lerch
  • 26. Seite 26 Apache NiFi & AWS IoT PutIOTMqtt – Configuration Get the basics right for your IoT business | Kay Lerch
  • 27. Seite 27 Apache NiFi & AWS IoT PutIOTMqtt – Live demo Get the basics right for your IoT business | Kay Lerch
  • 28. Seite 28 Apache NiFi & AWS IoT GetIOTShadow – constantly check last reported state AWS IoT Thing Shadow update Report state Request Shadow Flow file Flow file Get the basics right for your IoT business | Kay Lerch
  • 29. Seite 29 Apache NiFi & AWS IoT GetIOTShadow – Configuration Get the basics right for your IoT business | Kay Lerch
  • 30. Seite 30 Apache NiFi & AWS IoT PutIOTShadow – instruct a „thing“ over its shadow AWS IoT Thing Shadow update / delta Desire state Update Shadow Flow file Flow file Get the basics right for your IoT business | Kay Lerch
  • 31. Seite 31 Apache NiFi & AWS IoT PutIOTShadow – Configuration Get the basics right for your IoT business | Kay Lerch
  • 32. We got the basics Let’s focus on business value Seite 32 Get the basics right for your IoT business | Kay Lerch
  • 33. Homework almost done Seite 33 Source: WSO2 (IoT Whitepaper) Value Value Value Value Effort Effort Effort Challenges: • Set the basics right (EFFORT) • Integrate (VALUE) in your current business • Be innovative! Solution: Minimize (EFFORT)  Rely on managed services and tools Maximize (VALUE)  Have the basics right  rely on established tools • Think over your integration strategy Drive innovation • Think beyond borders • disrupt business with combining established things in a totally new fashion Get the basics right for your IoT business | Kay Lerch
  • 34. Agile integration strategy with AWS Simple Workflows at ImmobilienScout Legacy / 3rd Party AWS Simple Workflows (SWF) AWSSNS AWS Lambda AWSS3 AWSEC2 AWSECS OnPremise Broker Start Workflow Put File Bucket Topic Publish Message Start Workflow Activity Task Func tion Func tion Trusted Applications / Mobile Apps AWS Flow Framework Start Workflow Event Trigger Send Data Invoke Service Decider Apps AWS Cloudwatch AWS CloudTrail Logs Metrics Alarms Log Measure Activity Task Activity Task Decision Task Decision Task Workflow History AWS Flow Framework AWS*** Any Activity Task Decision Task Start Workflow Trigger Trigger Notify API Call Discover Decision Task Service Apps AWS Flow Framework Activity Task AWSIAM Policies Manage Permissions Func tion Lambda Task API Call IoT Device AWSIoT Topic Publish Message Func tion Start Workflow Rule Dynamo Start Workflow Put File Table Func tion Trigger Partner AWSAPI Gateway Start Workflow Invoke Func tion Route Service Lambda Task Decision Task
  • 35. Hybrid integration platform aiming for Self-Service integration
  • 36. We got the basics Let’s focus on innovation Seite 36 Get the basics right for your IoT business | Kay Lerch
  • 37. Homework done! Seite 37 Source: WSO2 (IoT Whitepaper) Value Value Value Value Effort Effort Effort Challenges: • Set the basics right (EFFORT) • Integrate (VALUE) in your current business • Be innovative! Solution: Minimize (EFFORT)  Rely on managed services and tools Maximize (VALUE)  Have the basics right  rely on established tools  Think over your integration strategy Drive innovation • Think beyond borders • disrupt business with combining established things in a totally new fashion Get the basics right for your IoT business | Kay Lerch
  • 38. Gain real business value Seite 38 Source: WSO2 (IoT Whitepaper) Value Value Value Value Effort Effort Effort 1) Combine values of different worlds to find a breathtaking use case 2) Rely on your basics 3) Build a product around your solution 4) Change the world Value Value+ Effort Effort Effort+ + + = + Adopt new things… Get the basics right for your IoT business | Kay Lerch
  • 39. Gain value Demo (Smart home) Seite 39 + + Get the basics right for your IoT business | Kay Lerch Pick some fancy frontend (VALUE) Pick some fancy “backend” (VALUE) Rely on your basics (EFFORT) = Have Smart Home
  • 40. Gain value Demo (VoiceOps) Seite 40 + + Get the basics right for your IoT business | Kay Lerch Pick some fancy frontend (VALUE) Pick some fancy “backend” (VALUE) Rely on your basics (EFFORT) = Have VoiceOps
  • 41. Once you got the basics right, it’s up to you to … Seite 41 Get the basics right for your IoT business | Kay Lerch
  • 42. www.immobilienscout24.de Thanks for you attention. Any questions? Contact: Immobilien Scout GmbH Andreasstraße 10 10243 Berlin Kay Lerch Fon +49 30 24 301-1149 kay.lerch@immobilienscout24.de
  • 43. Backup Seite 43 Get the basics right for your IoT business | Kay Lerch
  • 44. T-Cobbler I need some “thing” …
  • 45. Input & Output units on your breadboard I need some “thing” …
  • 46. Control GPIO-Pins with sending or receiving electric impulses Control an output Control an input
  • 47. Communicating with AWS IoT over MQTT topics
  • 48. Alexa SkillAWS Lambda AWS API Gateway Lambda Post Message to Slack Lambda Update Shadow Rpi 2 AWS IoT Thing Shadow Python ScriptGPIO Rule Invoke MQTT Publish MQTT Receive Update Shadow on state change Impulse Sequence SVC Outgoing Webhook Post Message over Slack Web API 433 Mhz Signal C++ D/A Converter Post Message if no state changes
  • 49. AWS Lambda AWS EC2 Lambda Start / Stop EC2- Instance Rpi 2 AWS IoT Thing Shadow Python Script GPIO Rule Invoke MQTT Publish Impulse Sequence Post Message over Slack Web API 433 Mhz Signal C++ A/D Converter Start / Stop over AWS SDK AWS CW Lambda React on EC2 state change Rule Update Shadow MQTT Receive Impulse On state change
  • 50. Rpi 2 AWS IoT Thing Shadow Python Script GPIO Rule MQTT Publish Impulse Sequence Post Message over Slack Web API AWS CW Alarm On Humidity > 30% Metric Metric Alexa Skill Read out temperature and humidity