SlideShare a Scribd company logo
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Webinar Summary
Connected devices are everywhere and they are collecting
powerful data that can help companies gain actionable
insights and react promptly. In this webinar, we discuss
how to use Amazon Kinesis along with AWS IoT to quickly
and reliably stream data from devices into AWS for
analytics, and then use AWS Lambda to instruct those
devices what to do next, or to trigger some other action
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Ryan Nienhuis
10/10/2017
Real-time Analytics using
Data from IoT Devices
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Learning Objectives
• Learn the different options available to stream data from
IoT sensors to AWS
• Understand how to architect an analytics solution using
AWS services to ingest and process IoT data
• Take away best practices for building IoT applications
with scalability, cost-effectiveness, and security
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT App Challenge
https://aws.amazon.com/events/iot-app-challenge/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What is the end goal?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why is solving this problem hard?
Designing for failure in global, real-time,
distributed systems is hard.
Infrastructure required to process billions of
devices sending trillions of messages is
expensive.
Management overhead and scale limitations
impede innovation.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What AWS services can help
you out?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT Services: IoT Made Easy
AWS
Greengrass
AWS IoT
Platform
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Kinesis: Streaming Data Made Easy
Amazon Kinesis
Streams
Amazon Kinesis
Analytics
Amazon Kinesis
Firehose
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I get data from my
devices to the cloud?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT Framework
AWS IoT
Messages
Device Gateway
Messages
Applications
Device Shadow
Message Broker
API
Registry
Messages
Messages
Rules Engine
AWS Services
Analytics
Kinesis
Artificial Intelligence
EMR
Messaging
SQS
SNS
Database
Redshift
DynamoDB
Manage
CloudWatch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Message Broker & Rules Engine
• Scalable, low-latency, reliable
message routing
• Publish/Subscribe for decoupled
devices and applications
• Two-way message streaming
between devices and
applications
• Data transformation, re-routing,
and enhancement with external
data sources
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Message Broker & Rules Engine
• Route device data to and from
AWS services
• React to messages with Amazon
Simple Queue Service (SQS)
• Make machine learning
predictions in Amazon Elastic
Map Reduce (EMR)
• Analyze streaming data with
Amazon Kinesis
• Examine long-term trends in
data using Amazon Redshift
• Index data in real-time in
Amazon DynamoDB
MessagesMessages
Rules Engine
AWS Services
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What does this look like in a real-world scenario?
Weather
Station AWS
IoT
IoT
rule
IoT
action
Rain sensor
Wind sensor
Temperature
sensor
Vibration
sensor
MQTT
Amazon
Kinesis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT – Rule Setup
Incoming MQTT Topic
structure
weather/<state>/<city>/<station_id>/<sensor_type>/<sensor_id>
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT – Rule Setup
SQLStatement
SELECT * FROM
topic(6) AS sensor_id, topic(4) AS station_id,
topic(5) AS sensor, sensor_timestamp,
cast(sensor_value as float) AS sensor_value,
cast(sensor_value_smoothed as float) AS sensor_value_smoothed,
cast(direction as int) AS direction
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT – Rule Setup
SELECT * FROM
topic(6) AS sensor_id, topic(4) AS station_id,
topic(5) AS sensor, sensor_timestamp,
cast(sensor_value as float) AS sensor_value,
cast(sensor_value_smoothed as float) AS sensor_value_smoothed,
cast(direction as int) AS direction
References the AWS IoTMQTT
topic segment
<topic 1>/<topic 2>/…/<topic n>
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT – Rule Result
{
"value": 0.610802791886758,
"direction": -1,
"smoothed": 0.9843152123890655,
"timestamp": 1472611226005
}
Incoming payload
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS IoT – Rule Result
Incoming payload{
"value": 0.610802791886758,
"direction": -1,
"smoothed": 0.9843152123890655,
"timestamp": 1472611226005
}
{
"sensor_id": "bQ7KcaMEas",
"station_id": "vzqHb8vghO",
"sensor": "vib",
"timestamp": 1472611226005,
"value": 0.610802791886758,
"value_smoothed": 0.9843152123890655,
"direction": -1
}
Transformed payload
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How do I analyze IoT data in
real-time?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Simple Pattern for Streaming IoT Data
Continuously creates
data
Continuously writes
data to a stream
Can be almost
anything
Data Producer
Handles intermittent
connections
Durably stores data
in temporary buffer
Supports very high-
throughput
Ingest Layer
Continuously
processes data
Cleans, prepares, &
aggregates
Transforms data to
information
Data Consumer
IoT Device Amazon Kinesis app
AWS IoT
Amazon
Kinesis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Kinesis Analytics
• Apply SQL on streams
• Build real-time, stream processing applications
• Easy scalability
Connect to Kinesis streams,
Firehose delivery streams
Run standard SQL queries
against data streams
Kinesis Analytics can send processed data
to analytics tools so you can create alerts
and respond in real-time
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL on streaming data, really?...
SQL is an API to your data;
• Ask for what you want, system decides how to get it;
• For all data, not just “flat” data in a database;
• Opportunity for novel data organization and algorithms;
• A standard (SQL 2011) and the most commonly used
data manipulation language used by data scientists to
business analysts and IT professionals.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Windowing Concepts
• Windows can be tumbling, sliding, session, etc.
• Windows can be fixed size (tumbling, sliding) or variable size
(session)
1 5 4 26 8 6 4
t1 t2 t5 t6t3 t4
Time
Window1 Window2 Window3
Aggregate
Function(Sum)
18 14OutputEvents
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elasticsearch Service
• Scalably deliver transformed data
• Build custom dashboards
• Ad-hoc search and analytics
Use a Firehose Delivery
to Deliver data to
ElasticSearch
Full text search
and log analytics
Use Kibana for real-time
dashboards
Elasticsearch
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kinesis Firehose Data Transformation
• Firehose buffers up to 3MB of ingested data
• When buffer is full, automatically invokes Lambda function,
passing array of records to be processed
• Lambda function processes and returns array of transformed
records, with status of each record
• Transformed records are saved to configured destination
[{"
"recordId": "1234",
"data": "encoded-data"
},
{
"recordId": "1235",
"data": "encoded-data"
}
]
[{
"recordId": "1234",
"result": "Ok"
"data": "encoded-data"
},
{
"recordId": "1235",
"result": "Dropped"
"data": "encoded-data"
}
]
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon ES aggregations
Buckets – a collection of documents meeting some criterion
Metrics – calculations on the content of buckets
Bucket: time
Metric:count
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
host:199.72.81.55 with <histogram of verb>
1,
4,
8,
12,
30,
42,
58,
100
...
Look up
199.72.81.55
Field data
GET
GET
POST
GET
PUT
GET
GET
POST
Buckets
GET
POST
PUT
5
2
1
Counts
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A more complicated aggregation
Bucket: ARN
Bucket: Region
Bucket: eventName
Metric: Count
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What are some best practices
for analytics solutions on IoT
data?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Let’s pick a use case… continuous metrics
Examples
• Compute metrics from sensor logs
• Build leaderboards for key stats and device types
Key Requirements
• Produce accurate results with late and out of order data
• Combine results with historical data
• Quickly provide data to tech and non-tech end users
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IoT sensors AWS IoT
RDS
MySQL DB
instance
Amazon
Kinesis
Streams
Amazon
Kinesis
Streams
Amazon
Kinesis
Analytics
AWS
Lambda function
Compute average
temperature every 10secIngest sensor data
Persist time series
analytic to database
Deep Dive: Time-Series Analytics
• Ingest and stream IoT data via MQTT
• Compute metrics like average temperature every 10
seconds
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Best Practices for IoT Time-Series Analytics
• Handle data that arrives late and out of order from
IoT sensors that are not always online
• Use event or arrival time in your aggregation as a
key; this is the timestamp on your clients, check it for
accuracy
• Use processing time to trigger results; otherwise you
may only produce results when data arrives
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Best Practices for IoT Time-Series Analytics
• Use linear interpolation or custom triggers; you are
going to have missing values and need to impute them
in some manner
• Perform upserts for your MySQL table, e.g. insert [..]
on duplicate key update [..]
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Where to go next?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Try these use cases yourself
Many variations of these use cases have sample code on the AWS Big
Data and IoT Blogs.
Some good examples:
• Derive Insights from IoT in Minutes using AWS IoT, Amazon Kinesis
Firehose, Amazon Athena, and Amazon Quicksight
• Build a Visualization and Monitoring Dashboard for IoT Data with
Amazon Kinesis Analytics and Amazon Quicksight
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

More Related Content

What's hot

NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
 	  NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing 	  NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
Amazon Web Services
 
Building a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWSBuilding a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWS
Amazon Web Services
 
What's New with Big Data Analytics
What's New with Big Data AnalyticsWhat's New with Big Data Analytics
What's New with Big Data Analytics
Amazon Web Services
 
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
Amazon Web Services
 
AWS APAC Webinar Week - 2015 An Amazing Year in AWS
AWS APAC Webinar Week - 2015 An Amazing Year in AWSAWS APAC Webinar Week - 2015 An Amazing Year in AWS
AWS APAC Webinar Week - 2015 An Amazing Year in AWS
Amazon Web Services
 
AWS Summit Singapore - Architecting a Serverless Data Lake on AWS
AWS Summit Singapore - Architecting a Serverless Data Lake on AWSAWS Summit Singapore - Architecting a Serverless Data Lake on AWS
AWS Summit Singapore - Architecting a Serverless Data Lake on AWS
Amazon Web Services
 
Modern Data Architectures for Real Time Analytics & Engagement
Modern Data Architectures for Real Time Analytics & EngagementModern Data Architectures for Real Time Analytics & Engagement
Modern Data Architectures for Real Time Analytics & Engagement
Amazon Web Services
 
Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017
Amazon Web Services
 
Analytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and StreamingAnalytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and Streaming
Amazon Web Services
 
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
Amazon Web Services
 
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
Amazon Web Services
 
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Amazon Web Services
 
Building your First Big Data Application on AWS
Building your First Big Data Application on AWSBuilding your First Big Data Application on AWS
Building your First Big Data Application on AWS
Amazon Web Services
 
Modern Data Architectures for Business Outcomes
Modern Data Architectures for Business OutcomesModern Data Architectures for Business Outcomes
Modern Data Architectures for Business Outcomes
Amazon Web Services
 
Adding Search to Relational Databases
Adding Search to Relational DatabasesAdding Search to Relational Databases
Adding Search to Relational Databases
Amazon Web Services
 
Database and Analytics on the AWS Cloud
Database and Analytics on the AWS CloudDatabase and Analytics on the AWS Cloud
Database and Analytics on the AWS Cloud
Amazon Web Services
 
February 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration ServiceFebruary 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration Service
Amazon Web Services
 
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
Amazon Web Services
 
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
Amazon Web Services
 
2016 AWS Big Data Solution Days
2016 AWS Big Data Solution Days2016 AWS Big Data Solution Days
2016 AWS Big Data Solution Days
Amazon Web Services
 

What's hot (20)

NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
 	  NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing 	  NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
NEW LAUNCH! Introducing AWS Batch: Easy and efficient batch computing
 
Building a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWSBuilding a Data Processing Pipeline on AWS
Building a Data Processing Pipeline on AWS
 
What's New with Big Data Analytics
What's New with Big Data AnalyticsWhat's New with Big Data Analytics
What's New with Big Data Analytics
 
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
AWS re:Invent 2016: How Fulfillment by Amazon (FBA) and Scopely Improved Resu...
 
AWS APAC Webinar Week - 2015 An Amazing Year in AWS
AWS APAC Webinar Week - 2015 An Amazing Year in AWSAWS APAC Webinar Week - 2015 An Amazing Year in AWS
AWS APAC Webinar Week - 2015 An Amazing Year in AWS
 
AWS Summit Singapore - Architecting a Serverless Data Lake on AWS
AWS Summit Singapore - Architecting a Serverless Data Lake on AWSAWS Summit Singapore - Architecting a Serverless Data Lake on AWS
AWS Summit Singapore - Architecting a Serverless Data Lake on AWS
 
Modern Data Architectures for Real Time Analytics & Engagement
Modern Data Architectures for Real Time Analytics & EngagementModern Data Architectures for Real Time Analytics & Engagement
Modern Data Architectures for Real Time Analytics & Engagement
 
Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017
 
Analytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and StreamingAnalytics on AWS:Structured, Unstructured and Streaming
Analytics on AWS:Structured, Unstructured and Streaming
 
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
AWS re:Invent 2016: Visualizing Big Data Insights with Amazon QuickSight (BDM...
 
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
Building Data Lakes and Analytics on AWS; Patterns and Best Practices - BDA30...
 
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
Best Practices Using Big Data on AWS | AWS Public Sector Summit 2017
 
Building your First Big Data Application on AWS
Building your First Big Data Application on AWSBuilding your First Big Data Application on AWS
Building your First Big Data Application on AWS
 
Modern Data Architectures for Business Outcomes
Modern Data Architectures for Business OutcomesModern Data Architectures for Business Outcomes
Modern Data Architectures for Business Outcomes
 
Adding Search to Relational Databases
Adding Search to Relational DatabasesAdding Search to Relational Databases
Adding Search to Relational Databases
 
Database and Analytics on the AWS Cloud
Database and Analytics on the AWS CloudDatabase and Analytics on the AWS Cloud
Database and Analytics on the AWS Cloud
 
February 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration ServiceFebruary 2016 Webinar Series - Introduction to AWS Database Migration Service
February 2016 Webinar Series - Introduction to AWS Database Migration Service
 
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
AWS re:Invent 2016: How to Build a Big Data Analytics Data Lake (LFS303)
 
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
Streaming ETL for Data Lakes using Amazon Kinesis Firehose - May 2017 AWS Onl...
 
2016 AWS Big Data Solution Days
2016 AWS Big Data Solution Days2016 AWS Big Data Solution Days
2016 AWS Big Data Solution Days
 

Similar to Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks

NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
Amazon Web Services
 
How TrueCar Gains Actionable Insights with Splunk Cloud PPT
How TrueCar Gains Actionable Insights with Splunk Cloud PPTHow TrueCar Gains Actionable Insights with Splunk Cloud PPT
How TrueCar Gains Actionable Insights with Splunk Cloud PPT
Amazon Web Services
 
Machine learning in the physical world by Kip Larson from AWS IoT
Machine learning in the physical world by  Kip Larson from AWS IoTMachine learning in the physical world by  Kip Larson from AWS IoT
Machine learning in the physical world by Kip Larson from AWS IoT
Bill Liu
 
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
Amazon Web Services
 
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
Amazon Web Services
 
STG401_This Is My Architecture
STG401_This Is My ArchitectureSTG401_This Is My Architecture
STG401_This Is My Architecture
Amazon Web Services
 
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game BalancingGAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
Amazon Web Services
 
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Amazon Web Services
 
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
Amazon Web Services
 
From Batch to Streaming - How Amazon Flex Uses Real-time Analytics
From Batch to Streaming - How Amazon Flex Uses Real-time AnalyticsFrom Batch to Streaming - How Amazon Flex Uses Real-time Analytics
From Batch to Streaming - How Amazon Flex Uses Real-time Analytics
Amazon Web Services
 
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
Amazon Web Services
 
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Amazon Web Services
 
Analyzing Streaming Data in Real-time with Amazon Kinesis
Analyzing Streaming Data in Real-time with Amazon KinesisAnalyzing Streaming Data in Real-time with Amazon Kinesis
Analyzing Streaming Data in Real-time with Amazon Kinesis
Amazon Web Services
 
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSightABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
Amazon Web Services
 
ABD311_Deploying Amazon QuickSight For Enterprise
ABD311_Deploying Amazon QuickSight For EnterpriseABD311_Deploying Amazon QuickSight For Enterprise
ABD311_Deploying Amazon QuickSight For Enterprise
Amazon Web Services
 
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWSIOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
Amazon Web Services
 
Building a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWSBuilding a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWS
Injae Kwak
 
21st Century Analytics with Zopa
21st Century Analytics with Zopa21st Century Analytics with Zopa
21st Century Analytics with Zopa
Amazon Web Services
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
Amazon Web Services
 
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
Amazon Web Services
 

Similar to Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks (20)

NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
NEW LAUNCH! AWS IoT Analytics from Consumer IoT to Industrial IoT - IOT211 - ...
 
How TrueCar Gains Actionable Insights with Splunk Cloud PPT
How TrueCar Gains Actionable Insights with Splunk Cloud PPTHow TrueCar Gains Actionable Insights with Splunk Cloud PPT
How TrueCar Gains Actionable Insights with Splunk Cloud PPT
 
Machine learning in the physical world by Kip Larson from AWS IoT
Machine learning in the physical world by  Kip Larson from AWS IoTMachine learning in the physical world by  Kip Larson from AWS IoT
Machine learning in the physical world by Kip Larson from AWS IoT
 
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
MSC203_How Citrix Uses AWS Marketplace Solutions To Accelerate Analytic Workl...
 
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
How Citrix Uses AWS Marketplace Solutions to Accelerate Analytic Workloads on...
 
STG401_This Is My Architecture
STG401_This Is My ArchitectureSTG401_This Is My Architecture
STG401_This Is My Architecture
 
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game BalancingGAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
GAM310_Build a Telemetry and Analytics Pipeline for Game Balancing
 
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
Keys to Successfully Monitoring and Optimizing Innovative and Sophisticated C...
 
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
RET303_Drive Warehouse Efficiencies with the Same AWS IoT Technology that Pow...
 
From Batch to Streaming - How Amazon Flex Uses Real-time Analytics
From Batch to Streaming - How Amazon Flex Uses Real-time AnalyticsFrom Batch to Streaming - How Amazon Flex Uses Real-time Analytics
From Batch to Streaming - How Amazon Flex Uses Real-time Analytics
 
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
Analyzing Data Streams in Real Time with Amazon Kinesis: PNNL's Serverless Da...
 
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
Easy and Scalable Log Analytics with Amazon Elasticsearch Service - ABD326 - ...
 
Analyzing Streaming Data in Real-time with Amazon Kinesis
Analyzing Streaming Data in Real-time with Amazon KinesisAnalyzing Streaming Data in Real-time with Amazon Kinesis
Analyzing Streaming Data in Real-time with Amazon Kinesis
 
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSightABD206-Building Visualizations and Dashboards with Amazon QuickSight
ABD206-Building Visualizations and Dashboards with Amazon QuickSight
 
ABD311_Deploying Amazon QuickSight For Enterprise
ABD311_Deploying Amazon QuickSight For EnterpriseABD311_Deploying Amazon QuickSight For Enterprise
ABD311_Deploying Amazon QuickSight For Enterprise
 
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWSIOT311_Customer Stories of Things, Cloud, and Analytics on AWS
IOT311_Customer Stories of Things, Cloud, and Analytics on AWS
 
Building a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWSBuilding a Real-Time Data Platform on AWS
Building a Real-Time Data Platform on AWS
 
21st Century Analytics with Zopa
21st Century Analytics with Zopa21st Century Analytics with Zopa
21st Century Analytics with Zopa
 
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
NEW LAUNCH! Introducing AWS IoT Analytics - IOT214 - re:Invent 2017
 
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
Best Practices for Distributed Machine Learning and Predictive Analytics Usin...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
Amazon Web Services
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
Amazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Amazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
Amazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Webinar Summary Connected devices are everywhere and they are collecting powerful data that can help companies gain actionable insights and react promptly. In this webinar, we discuss how to use Amazon Kinesis along with AWS IoT to quickly and reliably stream data from devices into AWS for analytics, and then use AWS Lambda to instruct those devices what to do next, or to trigger some other action
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Ryan Nienhuis 10/10/2017 Real-time Analytics using Data from IoT Devices
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Learning Objectives • Learn the different options available to stream data from IoT sensors to AWS • Understand how to architect an analytics solution using AWS services to ingest and process IoT data • Take away best practices for building IoT applications with scalability, cost-effectiveness, and security
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT App Challenge https://aws.amazon.com/events/iot-app-challenge/
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What is the end goal?
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why is solving this problem hard? Designing for failure in global, real-time, distributed systems is hard. Infrastructure required to process billions of devices sending trillions of messages is expensive. Management overhead and scale limitations impede innovation.
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What AWS services can help you out?
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT Services: IoT Made Easy AWS Greengrass AWS IoT Platform
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Kinesis: Streaming Data Made Easy Amazon Kinesis Streams Amazon Kinesis Analytics Amazon Kinesis Firehose
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I get data from my devices to the cloud?
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT Framework AWS IoT Messages Device Gateway Messages Applications Device Shadow Message Broker API Registry Messages Messages Rules Engine AWS Services Analytics Kinesis Artificial Intelligence EMR Messaging SQS SNS Database Redshift DynamoDB Manage CloudWatch
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Message Broker & Rules Engine • Scalable, low-latency, reliable message routing • Publish/Subscribe for decoupled devices and applications • Two-way message streaming between devices and applications • Data transformation, re-routing, and enhancement with external data sources
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Message Broker & Rules Engine • Route device data to and from AWS services • React to messages with Amazon Simple Queue Service (SQS) • Make machine learning predictions in Amazon Elastic Map Reduce (EMR) • Analyze streaming data with Amazon Kinesis • Examine long-term trends in data using Amazon Redshift • Index data in real-time in Amazon DynamoDB MessagesMessages Rules Engine AWS Services
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What does this look like in a real-world scenario? Weather Station AWS IoT IoT rule IoT action Rain sensor Wind sensor Temperature sensor Vibration sensor MQTT Amazon Kinesis
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT – Rule Setup Incoming MQTT Topic structure weather/<state>/<city>/<station_id>/<sensor_type>/<sensor_id>
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT – Rule Setup SQLStatement SELECT * FROM topic(6) AS sensor_id, topic(4) AS station_id, topic(5) AS sensor, sensor_timestamp, cast(sensor_value as float) AS sensor_value, cast(sensor_value_smoothed as float) AS sensor_value_smoothed, cast(direction as int) AS direction
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT – Rule Setup SELECT * FROM topic(6) AS sensor_id, topic(4) AS station_id, topic(5) AS sensor, sensor_timestamp, cast(sensor_value as float) AS sensor_value, cast(sensor_value_smoothed as float) AS sensor_value_smoothed, cast(direction as int) AS direction References the AWS IoTMQTT topic segment <topic 1>/<topic 2>/…/<topic n>
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT – Rule Result { "value": 0.610802791886758, "direction": -1, "smoothed": 0.9843152123890655, "timestamp": 1472611226005 } Incoming payload
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS IoT – Rule Result Incoming payload{ "value": 0.610802791886758, "direction": -1, "smoothed": 0.9843152123890655, "timestamp": 1472611226005 } { "sensor_id": "bQ7KcaMEas", "station_id": "vzqHb8vghO", "sensor": "vib", "timestamp": 1472611226005, "value": 0.610802791886758, "value_smoothed": 0.9843152123890655, "direction": -1 } Transformed payload
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How do I analyze IoT data in real-time?
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Simple Pattern for Streaming IoT Data Continuously creates data Continuously writes data to a stream Can be almost anything Data Producer Handles intermittent connections Durably stores data in temporary buffer Supports very high- throughput Ingest Layer Continuously processes data Cleans, prepares, & aggregates Transforms data to information Data Consumer IoT Device Amazon Kinesis app AWS IoT Amazon Kinesis
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Kinesis Analytics • Apply SQL on streams • Build real-time, stream processing applications • Easy scalability Connect to Kinesis streams, Firehose delivery streams Run standard SQL queries against data streams Kinesis Analytics can send processed data to analytics tools so you can create alerts and respond in real-time
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL on streaming data, really?... SQL is an API to your data; • Ask for what you want, system decides how to get it; • For all data, not just “flat” data in a database; • Opportunity for novel data organization and algorithms; • A standard (SQL 2011) and the most commonly used data manipulation language used by data scientists to business analysts and IT professionals.
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Windowing Concepts • Windows can be tumbling, sliding, session, etc. • Windows can be fixed size (tumbling, sliding) or variable size (session) 1 5 4 26 8 6 4 t1 t2 t5 t6t3 t4 Time Window1 Window2 Window3 Aggregate Function(Sum) 18 14OutputEvents
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Elasticsearch Service • Scalably deliver transformed data • Build custom dashboards • Ad-hoc search and analytics Use a Firehose Delivery to Deliver data to ElasticSearch Full text search and log analytics Use Kibana for real-time dashboards Elasticsearch
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kinesis Firehose Data Transformation • Firehose buffers up to 3MB of ingested data • When buffer is full, automatically invokes Lambda function, passing array of records to be processed • Lambda function processes and returns array of transformed records, with status of each record • Transformed records are saved to configured destination [{" "recordId": "1234", "data": "encoded-data" }, { "recordId": "1235", "data": "encoded-data" } ] [{ "recordId": "1234", "result": "Ok" "data": "encoded-data" }, { "recordId": "1235", "result": "Dropped" "data": "encoded-data" } ]
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon ES aggregations Buckets – a collection of documents meeting some criterion Metrics – calculations on the content of buckets Bucket: time Metric:count
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. host:199.72.81.55 with <histogram of verb> 1, 4, 8, 12, 30, 42, 58, 100 ... Look up 199.72.81.55 Field data GET GET POST GET PUT GET GET POST Buckets GET POST PUT 5 2 1 Counts
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A more complicated aggregation Bucket: ARN Bucket: Region Bucket: eventName Metric: Count
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What are some best practices for analytics solutions on IoT data?
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Let’s pick a use case… continuous metrics Examples • Compute metrics from sensor logs • Build leaderboards for key stats and device types Key Requirements • Produce accurate results with late and out of order data • Combine results with historical data • Quickly provide data to tech and non-tech end users
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IoT sensors AWS IoT RDS MySQL DB instance Amazon Kinesis Streams Amazon Kinesis Streams Amazon Kinesis Analytics AWS Lambda function Compute average temperature every 10secIngest sensor data Persist time series analytic to database Deep Dive: Time-Series Analytics • Ingest and stream IoT data via MQTT • Compute metrics like average temperature every 10 seconds
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Best Practices for IoT Time-Series Analytics • Handle data that arrives late and out of order from IoT sensors that are not always online • Use event or arrival time in your aggregation as a key; this is the timestamp on your clients, check it for accuracy • Use processing time to trigger results; otherwise you may only produce results when data arrives
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Best Practices for IoT Time-Series Analytics • Use linear interpolation or custom triggers; you are going to have missing values and need to impute them in some manner • Perform upserts for your MySQL table, e.g. insert [..] on duplicate key update [..]
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Where to go next?
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Try these use cases yourself Many variations of these use cases have sample code on the AWS Big Data and IoT Blogs. Some good examples: • Derive Insights from IoT in Minutes using AWS IoT, Amazon Kinesis Firehose, Amazon Athena, and Amazon Quicksight • Build a Visualization and Monitoring Dashboard for IoT Data with Amazon Kinesis Analytics and Amazon Quicksight
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!