SlideShare a Scribd company logo
1 of 22
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Building Serverless Real-time Data
Processing
W O R K S H O P
N o v e m b e r 3 0 , 2 0 1 7
I t z i k P a z , A W S S t a r t u p S o l u t i o n A r c h i t e c t
S R V 3 3 2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WHAT TO EXPECT
This workshop is an interactive exercise that builds infrastructure
to collect, process, and persist data without using servers.
Agenda
• Overview of workshop scenario, modules, and the services we’ll
utilize
• Review of workshop pre-requisites and tools
• Execution of four modules – each about thirty minutes in
length
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
HELLO!
I’m Itzik. That’s Ramesh, Ashwini and Gareth.
We’re here to work with you to explore serverless data
processing. Please flag us down any time to help or if
there’s anything we can do.
Work through this workshop with your fellow participants!
Let’s take five minutes to go around the table and
introduce ourselves.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WORKSHOP SCENARIO
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Wild Rydes is an innovative
transportation service that
helps people get to their
destination faster and hassle-
free via unicorns.
http://www.wildrydes.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CHALLENGE
Your operations team needs a way to monitor the status
and health of thousands of unicorns in real-time.
Where are they?
How many magic points do they have left?
How fast are they traveling?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MODULES
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MODULE 1: REAL-TIME STREAMING DATA
Shadowfax Kinesis stream Consumer
Build and demonstrate a stream
for real-time data from the
unicorn fleet
• Create a Kinesis stream
• Use the Kinesis command-line
producer to write simulated sensor
data to the stream every second
• Use the Kinesis command-line
consumer to read the sensor data
from the stream
• Use the Unicorn Dashboard to view
unicorns in real-time on a map
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MODULE 2: STREAMING AGGREGATION
Shadowfax Kinesis stream
Consumer
Create a serverless application to
summarize sensor data every
minute
• Create a Kinesis Analytics application
to output one row per minute per
unicorn to a new stream
• Use the Kinesis command-line
producer to write simulated sensor
data to the stream
• Use the Kinesis command-line
consumer to read the summarized
sensor data from the stream
Kinesis Analytics
application
Kinesis stream
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MODULE 3: STREAM PROCESSING
Shadowfax Kinesis stream
Build a Lambda function to
persist sensor data to a
DynamoDB table
• Create a new DynamoDB table
• Build a Lambda function and
configure it to trigger when data is in
the stream
• Use the Kinesis command-line
producer to write simulated sensor
data to the stream
• Use the DynamoDB console to verify
data is being persisted
Lambda
DynamoDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MODULE 4: DATA LAKE
Shadowfax Kinesis stream
Write raw sensor data to S3 via
Kinesis Firehose and run queries
using Athena
• Create an S3 bucket to store raw
sensor data from our unicorns in
JSON format
• Create a Kinesis Firehose delivery
stream to deliver batches from the
Kinesis stream to S3
• Use Amazon Athena to run queries
against the raw data stored in S3
Kinesis Firehose
S3 Bucket
Athena
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
TOOLS AND PRE-REQUISITES
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WEB BROWSER
This workshop has been tested
in the latest versions of Mozilla
Firefox and Google Chrome.
Both browsers feature a
Developer Console which you
may need to use to see log
information from the Unicorn
Dashboard.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LAB GUIDE
Includes setup
information, instructions
for each module, and
step-by-step instructions
if you get stuck.
Expand ▶ Step-by-step
Instructions for a
detailed walk through in
each section.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
UNICORN DASHBOARD
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS ACCOUNT
You’ll need an AWS account and access to
administer resources for:
• AWS Identity and Access Management (IAM)
• Amazon Simple Storage Service (S3)
• Amazon DynamoDB
• AWS Lambda
• Amazon Kinesis Streams
• Amazon Kinesis Firehose
• Amazon Kinesis Analytics
• Amazon Athena
The workshop instructions assume only
one participant is using a given AWS
account at a time
It’s best to use a personal account or
register a new account rather than using
your organization’s AWS account
You will receive $25 of AWS credit to
cover any expenses incurred in this
workshop
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS REGION
• Build within a single Region that supports all necessary services
• The Region Table shows what services are supported within each Region
• https://aws.amazon.com/about-aws/global-infrastructure/regional-
product-services/ (search “aws region table”)
• Regions for this workshop:
• US East (N. Virginia)
• US West (Oregon)
• EU (Ireland)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
KINESIS COMMAND-LINE CLIENTS
CLI client to simulate and display sensor data from the unicorn fleet
Producer
• Simulates unicorn sensor data
• Unicorn name
• Timestamp
• Current position (latitude, longitude)
• Distance traveled in the last second in meters
• Magic points
• Health points
• Data encoded as a JSON object
Consumer
• Reads from the end of the stream and outputs data
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
KINESIS COMMAND-LINE CLIENTS
Written in the Go Programming Language and provided as binaries for Windows, Linux, and macOS or build
from source yourself with the Go tools
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
http://reinvent2017.wildrydes.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
http://reinvent2017.wildrydes.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
THANK YOU!

More Related Content

What's hot

What's hot (20)

CON320_Monitoring, Logging and Debugging Containerized Services
CON320_Monitoring, Logging and Debugging Containerized ServicesCON320_Monitoring, Logging and Debugging Containerized Services
CON320_Monitoring, Logging and Debugging Containerized Services
 
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
 
NET308_VPC Design Scenarios for Real-Life Use Cases
NET308_VPC Design Scenarios for Real-Life Use CasesNET308_VPC Design Scenarios for Real-Life Use Cases
NET308_VPC Design Scenarios for Real-Life Use Cases
 
CON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWSCON209_Interstella 8888 Learn How to Use Docker on AWS
CON209_Interstella 8888 Learn How to Use Docker on AWS
 
ARC205_Born in the Cloud
ARC205_Born in the CloudARC205_Born in the Cloud
ARC205_Born in the Cloud
 
Storage State of the Union - STG201 - re:Invent 2017
Storage State of the Union - STG201 - re:Invent 2017Storage State of the Union - STG201 - re:Invent 2017
Storage State of the Union - STG201 - re:Invent 2017
 
MBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real WorldMBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real World
 
STG203_Get Rid of Tape and Modernize Backup with AWS
STG203_Get Rid of Tape and Modernize Backup with AWSSTG203_Get Rid of Tape and Modernize Backup with AWS
STG203_Get Rid of Tape and Modernize Backup with AWS
 
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
Reinforcement Learning – The Ultimate AI - ARC320 - re:Invent 2017
 
ARC304_From One to Many Evolving VPC Design
ARC304_From One to Many Evolving VPC DesignARC304_From One to Many Evolving VPC Design
ARC304_From One to Many Evolving VPC Design
 
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
 
DAT321_How Careem Used Amazon ElastiCache for Redis to Accelerate Their Ride ...
DAT321_How Careem Used Amazon ElastiCache for Redis to Accelerate Their Ride ...DAT321_How Careem Used Amazon ElastiCache for Redis to Accelerate Their Ride ...
DAT321_How Careem Used Amazon ElastiCache for Redis to Accelerate Their Ride ...
 
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
Serverless DevOps to the Rescue - SRV330 - re:Invent 2017
 
ARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million UsersARC201_Scaling Up to Your First 10 Million Users
ARC201_Scaling Up to Your First 10 Million Users
 
MCL204_How Washington County Sherriff’s Office is using Amazon AI to Identify...
MCL204_How Washington County Sherriff’s Office is using Amazon AI to Identify...MCL204_How Washington County Sherriff’s Office is using Amazon AI to Identify...
MCL204_How Washington County Sherriff’s Office is using Amazon AI to Identify...
 
ENT212-An Overview of Best Practices for Large-Scale Migrations
ENT212-An Overview of Best Practices for Large-Scale MigrationsENT212-An Overview of Best Practices for Large-Scale Migrations
ENT212-An Overview of Best Practices for Large-Scale Migrations
 
GPSTEC305-Machine Learning in Capital Markets
GPSTEC305-Machine Learning in Capital MarketsGPSTEC305-Machine Learning in Capital Markets
GPSTEC305-Machine Learning in Capital Markets
 
DAT322_The Nanoservices Architecture That Powers BBC Online
DAT322_The Nanoservices Architecture That Powers BBC OnlineDAT322_The Nanoservices Architecture That Powers BBC Online
DAT322_The Nanoservices Architecture That Powers BBC Online
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
DEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon WayDEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon Way
 

Similar to Building Serverless Real-time Data Processing (workshop)

Similar to Building Serverless Real-time Data Processing (workshop) (20)

Building Serverless Real-Time Data Processing (Now with Unicorns!) - SRV332 -...
Building Serverless Real-Time Data Processing (Now with Unicorns!) - SRV332 -...Building Serverless Real-Time Data Processing (Now with Unicorns!) - SRV332 -...
Building Serverless Real-Time Data Processing (Now with Unicorns!) - SRV332 -...
 
SRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdf
SRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdfSRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdf
SRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdf
 
Workshop: Building Serverless Real-time Data Processing (Now with Unicorns!)
Workshop: Building Serverless Real-time Data Processing (Now with Unicorns!)Workshop: Building Serverless Real-time Data Processing (Now with Unicorns!)
Workshop: Building Serverless Real-time Data Processing (Now with Unicorns!)
 
Workshop Building Serverless Real-time Data Processing (Now with Unicorns!) -...
Workshop Building Serverless Real-time Data Processing (Now with Unicorns!) -...Workshop Building Serverless Real-time Data Processing (Now with Unicorns!) -...
Workshop Building Serverless Real-time Data Processing (Now with Unicorns!) -...
 
Building Serverless Real-time Data Processing (Now with Unicorns!)
Building Serverless Real-time Data Processing (Now with Unicorns!)Building Serverless Real-time Data Processing (Now with Unicorns!)
Building Serverless Real-time Data Processing (Now with Unicorns!)
 
Design, Build, and Modernize Your Web Applications with AWS
 Design, Build, and Modernize Your Web Applications with AWS Design, Build, and Modernize Your Web Applications with AWS
Design, Build, and Modernize Your Web Applications with AWS
 
Manage Infrastructure Securely at Scale and Eliminate Operational Risks - DEV...
Manage Infrastructure Securely at Scale and Eliminate Operational Risks - DEV...Manage Infrastructure Securely at Scale and Eliminate Operational Risks - DEV...
Manage Infrastructure Securely at Scale and Eliminate Operational Risks - DEV...
 
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
 
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
Navigating Microservice Architecture with AWS - AWS Public Sector Summit Sing...
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
 
ABD203_Real-Time Streaming Applications on AWS
ABD203_Real-Time Streaming Applications on AWSABD203_Real-Time Streaming Applications on AWS
ABD203_Real-Time Streaming Applications on AWS
 
Build a Serverless Web Application in One Day
Build a Serverless Web Application in One DayBuild a Serverless Web Application in One Day
Build a Serverless Web Application in One Day
 
BAP205-Build an Amazon AppStream 2.0 Environment to Stream Desktop Applicatio...
BAP205-Build an Amazon AppStream 2.0 Environment to Stream Desktop Applicatio...BAP205-Build an Amazon AppStream 2.0 Environment to Stream Desktop Applicatio...
BAP205-Build an Amazon AppStream 2.0 Environment to Stream Desktop Applicatio...
 
AWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless ArchitectureAWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless Architecture
 
Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks
Real-time Analytics using Data from IoT Devices - AWS Online Tech TalksReal-time Analytics using Data from IoT Devices - AWS Online Tech Talks
Real-time Analytics using Data from IoT Devices - AWS Online Tech Talks
 
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot FleetCMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
CMP316_Hedge Your Own Funds Run Monte Carlo Simulations on EC2 Spot Fleet
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS Analytics
 
MCL306_Making IoT Smarter with AWS Rekognition
MCL306_Making IoT Smarter with AWS RekognitionMCL306_Making IoT Smarter with AWS Rekognition
MCL306_Making IoT Smarter with AWS Rekognition
 
ABD317_Building Your First Big Data Application on AWS - ABD317
ABD317_Building Your First Big Data Application on AWS - ABD317ABD317_Building Your First Big Data Application on AWS - ABD317
ABD317_Building Your First Big Data Application on AWS - ABD317
 
ATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing OperationsATC301-Big Data & Analytics for Manufacturing Operations
ATC301-Big Data & Analytics for Manufacturing Operations
 

More from 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 AWS
Amazon 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 Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon 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
 

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
 

Building Serverless Real-time Data Processing (workshop)

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Building Serverless Real-time Data Processing W O R K S H O P N o v e m b e r 3 0 , 2 0 1 7 I t z i k P a z , A W S S t a r t u p S o l u t i o n A r c h i t e c t S R V 3 3 2
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. WHAT TO EXPECT This workshop is an interactive exercise that builds infrastructure to collect, process, and persist data without using servers. Agenda • Overview of workshop scenario, modules, and the services we’ll utilize • Review of workshop pre-requisites and tools • Execution of four modules – each about thirty minutes in length
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. HELLO! I’m Itzik. That’s Ramesh, Ashwini and Gareth. We’re here to work with you to explore serverless data processing. Please flag us down any time to help or if there’s anything we can do. Work through this workshop with your fellow participants! Let’s take five minutes to go around the table and introduce ourselves.
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. WORKSHOP SCENARIO
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Wild Rydes is an innovative transportation service that helps people get to their destination faster and hassle- free via unicorns. http://www.wildrydes.com
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CHALLENGE Your operations team needs a way to monitor the status and health of thousands of unicorns in real-time. Where are they? How many magic points do they have left? How fast are they traveling?
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MODULES
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MODULE 1: REAL-TIME STREAMING DATA Shadowfax Kinesis stream Consumer Build and demonstrate a stream for real-time data from the unicorn fleet • Create a Kinesis stream • Use the Kinesis command-line producer to write simulated sensor data to the stream every second • Use the Kinesis command-line consumer to read the sensor data from the stream • Use the Unicorn Dashboard to view unicorns in real-time on a map
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MODULE 2: STREAMING AGGREGATION Shadowfax Kinesis stream Consumer Create a serverless application to summarize sensor data every minute • Create a Kinesis Analytics application to output one row per minute per unicorn to a new stream • Use the Kinesis command-line producer to write simulated sensor data to the stream • Use the Kinesis command-line consumer to read the summarized sensor data from the stream Kinesis Analytics application Kinesis stream
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MODULE 3: STREAM PROCESSING Shadowfax Kinesis stream Build a Lambda function to persist sensor data to a DynamoDB table • Create a new DynamoDB table • Build a Lambda function and configure it to trigger when data is in the stream • Use the Kinesis command-line producer to write simulated sensor data to the stream • Use the DynamoDB console to verify data is being persisted Lambda DynamoDB
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MODULE 4: DATA LAKE Shadowfax Kinesis stream Write raw sensor data to S3 via Kinesis Firehose and run queries using Athena • Create an S3 bucket to store raw sensor data from our unicorns in JSON format • Create a Kinesis Firehose delivery stream to deliver batches from the Kinesis stream to S3 • Use Amazon Athena to run queries against the raw data stored in S3 Kinesis Firehose S3 Bucket Athena
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. TOOLS AND PRE-REQUISITES
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. WEB BROWSER This workshop has been tested in the latest versions of Mozilla Firefox and Google Chrome. Both browsers feature a Developer Console which you may need to use to see log information from the Unicorn Dashboard.
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LAB GUIDE Includes setup information, instructions for each module, and step-by-step instructions if you get stuck. Expand ▶ Step-by-step Instructions for a detailed walk through in each section.
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. UNICORN DASHBOARD
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS ACCOUNT You’ll need an AWS account and access to administer resources for: • AWS Identity and Access Management (IAM) • Amazon Simple Storage Service (S3) • Amazon DynamoDB • AWS Lambda • Amazon Kinesis Streams • Amazon Kinesis Firehose • Amazon Kinesis Analytics • Amazon Athena The workshop instructions assume only one participant is using a given AWS account at a time It’s best to use a personal account or register a new account rather than using your organization’s AWS account You will receive $25 of AWS credit to cover any expenses incurred in this workshop
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS REGION • Build within a single Region that supports all necessary services • The Region Table shows what services are supported within each Region • https://aws.amazon.com/about-aws/global-infrastructure/regional- product-services/ (search “aws region table”) • Regions for this workshop: • US East (N. Virginia) • US West (Oregon) • EU (Ireland)
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. KINESIS COMMAND-LINE CLIENTS CLI client to simulate and display sensor data from the unicorn fleet Producer • Simulates unicorn sensor data • Unicorn name • Timestamp • Current position (latitude, longitude) • Distance traveled in the last second in meters • Magic points • Health points • Data encoded as a JSON object Consumer • Reads from the end of the stream and outputs data
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. KINESIS COMMAND-LINE CLIENTS Written in the Go Programming Language and provided as binaries for Windows, Linux, and macOS or build from source yourself with the Go tools
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. http://reinvent2017.wildrydes.com
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. http://reinvent2017.wildrydes.com
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. THANK YOU!