SlideShare a Scribd company logo
1 of 23
Download to read offline
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Building Serverless Real-Time Data
Processing (Now with Unicorns!)
W o r k s h o p
J o h n P i g n a t a , R o b C a m b r a , R y a n N i t z
AWS re:INVENT
S R V 3 3 2
N o v e m b e r 2 8 , 2 0 1 7
© 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 prerequisites 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 John. That’s Ryan and Rob.
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
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 one: Real-time streaming data
Shadowfax Kinesisstream Consumer
Build and demonstrate a stream
for real-time data from the
unicorn fleet
• Create an Amazon 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 two: Streaming aggregation
Shadowfax Kinesisstream
Consumer
Create a serverless application to
summarize sensor data every
minute
• Create an Amazon 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
KinesisAnalytics
application
Kinesisstream
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module three: Stream processing
Shadowfax Kinesisstream
Build an AWS Lambda function
to persist sensor data to an
Amazon 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
that data is being persisted
Lambda
DynamoDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module four: Data lake
Shadowfax Kinesisstream
Write raw sensor data to Amazon
S3 via Amazon Kinesis Firehose
and run queries using Amazon
Athena
• Create an Amazon 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 Amazon S3
• Use Amazon Athena to run queries
against the raw data stored in
Amazon S3
KinesisFirehose
S3 Bucket
Athena
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Tools and prerequisites
© 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 walkthrough 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 (Amazon
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.
Questions?
© 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

CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...Amazon Web Services
 
Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Amazon Web Services
 
Create a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformCreate a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformAmazon Web Services
 
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 ServicesAmazon Web Services
 
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 AWSAmazon Web Services
 
GPSBUS212-Migration Tools – A Puzzle or Lego Blocks
GPSBUS212-Migration Tools – A Puzzle or Lego BlocksGPSBUS212-Migration Tools – A Puzzle or Lego Blocks
GPSBUS212-Migration Tools – A Puzzle or Lego BlocksAmazon Web Services
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...Amazon Web Services
 
CTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@EdgeCTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@EdgeAmazon Web Services
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingAmazon Web Services
 
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...Amazon Web Services
 
DEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSDEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSAmazon Web Services
 
GPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyGPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyAmazon Web Services
 
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Amazon Web Services
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...Amazon Web Services
 
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...Amazon Web Services
 
IOT204_AWS Greengrass Basic Workshop
IOT204_AWS Greengrass Basic WorkshopIOT204_AWS Greengrass Basic Workshop
IOT204_AWS Greengrass Basic WorkshopAmazon Web Services
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyAmazon Web Services
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersAmazon Web Services
 
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 FleetAmazon Web Services
 
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 CasesAmazon Web Services
 

What's hot (20)

CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
 
Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)
 
Create a Serverless Image Processing Platform
Create a Serverless Image Processing PlatformCreate a Serverless Image Processing Platform
Create a Serverless Image Processing Platform
 
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
 
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
 
GPSBUS212-Migration Tools – A Puzzle or Lego Blocks
GPSBUS212-Migration Tools – A Puzzle or Lego BlocksGPSBUS212-Migration Tools – A Puzzle or Lego Blocks
GPSBUS212-Migration Tools – A Puzzle or Lego Blocks
 
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
MSC202_Learn How Salesforce Used ADCs for App Load Balancing for an Internati...
 
CTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@EdgeCTD403_Supercharge Your Websites with the Power of Lambda@Edge
CTD403_Supercharge Your Websites with the Power of Lambda@Edge
 
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of ManufacturingGPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
GPSTEC326-GPS Industry 4.0 AI and the Future of Manufacturing
 
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...
 
DEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSDEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWS
 
GPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made EasyGPSWKS301_Comprehensive Big Data Architecture Made Easy
GPSWKS301_Comprehensive Big Data Architecture Made Easy
 
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
Run Your HPC Workload at Scale for a Fraction of the Cost - AWS Online Tech T...
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
 
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
MBL309_User Engagement, Messaging, and Analytics Using Amazon Pinpoint from A...
 
IOT204_AWS Greengrass Basic Workshop
IOT204_AWS Greengrass Basic WorkshopIOT204_AWS Greengrass Basic Workshop
IOT204_AWS Greengrass Basic Workshop
 
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost EfficiencyARC303_Running Lean Architectures How to Optimize for Cost Efficiency
ARC303_Running Lean Architectures How to Optimize for Cost Efficiency
 
Scaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million UsersScaling Up to Your First 10 Million Users
Scaling Up to Your First 10 Million Users
 
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
 
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
 

Similar to 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!)Amazon Web Services
 
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!) -...Amazon Web Services
 
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!)Amazon Web Services
 
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...Amazon Web Services
 
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...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 AWSInjae Kwak
 
AWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless ArchitectureAWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless ArchitectureJohn Yeung
 
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 - ABD317Amazon 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 AnalyticsAmazon Web Services
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsAmazon Web Services
 
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 RekognitionAmazon Web Services
 
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 AWSDonnie Prakoso
 
SRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesSRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesAmazon Web Services
 
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 DayAmazon Web Services
 
Deep dive and best practices on real time streaming applications nyc-loft_oct...
Deep dive and best practices on real time streaming applications nyc-loft_oct...Deep dive and best practices on real time streaming applications nyc-loft_oct...
Deep dive and best practices on real time streaming applications nyc-loft_oct...Amazon Web Services
 
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisAmazon Web Services
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsAmazon Web Services
 
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...Amazon Web Services
 
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 TalksAmazon Web Services
 
How Amazon.com Uses AWS Analytics
How Amazon.com Uses AWS AnalyticsHow Amazon.com Uses AWS Analytics
How Amazon.com Uses AWS AnalyticsAmazon Web Services
 

Similar to SRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdf (20)

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!)
 
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...
 
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...
GPSTEC313_GPS Real-Time Data Processing with AWS Lambda Quickly, at Scale, an...
 
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
 
AWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless ArchitectureAWS Application Service Workshop - Serverless Architecture
AWS Application Service Workshop - Serverless Architecture
 
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
 
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
 
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
 
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
 
SRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing PipelinesSRV304_Building High-Throughput Serverless Data Processing Pipelines
SRV304_Building High-Throughput Serverless Data Processing Pipelines
 
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
 
Deep dive and best practices on real time streaming applications nyc-loft_oct...
Deep dive and best practices on real time streaming applications nyc-loft_oct...Deep dive and best practices on real time streaming applications nyc-loft_oct...
Deep dive and best practices on real time streaming applications nyc-loft_oct...
 
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon KinesisABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
ABD301-Analyzing Streaming Data in Real Time with Amazon Kinesis
 
How Amazon.com uses AWS Analytics
How Amazon.com uses AWS AnalyticsHow Amazon.com uses AWS Analytics
How Amazon.com uses AWS Analytics
 
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...
 
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
 
How Amazon.com Uses AWS Analytics
How Amazon.com Uses AWS AnalyticsHow Amazon.com Uses AWS Analytics
How Amazon.com Uses AWS Analytics
 

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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon 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
 
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 WorkloadsAmazon 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 sfatareAmazon 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 NodeJSAmazon 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 webAmazon 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 sfatareAmazon 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 ServiceAmazon 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
 

SRV332_Building Serverless Real-Time Data Processing (Now with Unicorns!).pdf

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Building Serverless Real-Time Data Processing (Now with Unicorns!) W o r k s h o p J o h n P i g n a t a , R o b C a m b r a , R y a n N i t z AWS re:INVENT S R V 3 3 2 N o v e m b e r 2 8 , 2 0 1 7
  • 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 prerequisites 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 John. That’s Ryan and Rob. 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 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 one: Real-time streaming data Shadowfax Kinesisstream Consumer Build and demonstrate a stream for real-time data from the unicorn fleet • Create an Amazon 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 two: Streaming aggregation Shadowfax Kinesisstream Consumer Create a serverless application to summarize sensor data every minute • Create an Amazon 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 KinesisAnalytics application Kinesisstream
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Module three: Stream processing Shadowfax Kinesisstream Build an AWS Lambda function to persist sensor data to an Amazon 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 that data is being persisted Lambda DynamoDB
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Module four: Data lake Shadowfax Kinesisstream Write raw sensor data to Amazon S3 via Amazon Kinesis Firehose and run queries using Amazon Athena • Create an Amazon 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 Amazon S3 • Use Amazon Athena to run queries against the raw data stored in Amazon S3 KinesisFirehose S3 Bucket Athena
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Tools and prerequisites
  • 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 walkthrough 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 (Amazon 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. Questions?
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. http://reinvent2017.wildrydes.com
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!