SlideShare une entreprise Scribd logo
1  sur  33
Télécharger pour lire hors ligne
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
W e b i n a r
Serverless Observability
Heitor Lessa
Specialist Solutions Architect
AWS
Ran Ribenzaft
CTO
Epsagon
@heitor_lessa @ranrib
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS operational responsibility models
On-Premises Cloud
Less More
Compute Virtual Machine
Amazon EC2 AWS Elastic Beanstalk AWS LambdaFargate
Databases MySQL
MySQL on EC2 Amazon RDS MySQL Amazon Aurora Amazon Aurora Serverless Amazon DynamoDB
Storage Storage
Amazon S3
Messaging ESBs
Amazon MQ Amazon Kinesis Amazon SNS / SQS
Analytics
Hadoop Hadoop on EC2 Amazon EMR Amazon Elasticsearch Service Amazon Athena
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Three Pillars of Observability
Event Logs Metrics Tracing
Distributed Systems Observability by Cindy Sridharan
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
Event Logs Metrics Tracing
Log aggregation
& analytics
VisualizationsAlerting
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
CloudWatch
Logs
Metrics Tracing
CloudWatch Logs
Insights
VisualizationsAlerting
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – CloudWatch Logs, Insights
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
CloudWatch
Logs
CloudWatch
Metrics
Tracing
CloudWatch Logs
Insights
Visualizations
CloudWatch
Alarms
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – CloudWatch Custom Metrics
const metricData = await cloudWatch.putMetricData({
MetricData: [
{
MetricName: 'My Business Metric',
Dimensions: [
{
Name: 'Location',
Value: 'Paris'
}
],
Timestamp: new Date(),
Value: 123.4
}
],
Namespace: METRIC_NAMESPACE
}).promise();
• Metric name
• Dimensions
• Timestamp
• Value
• Namespace
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – CloudWatch Metrics/Dashboard
[DEV 302] Monitor All Your Things: Amazon CloudWatch in Action with BBC
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
CloudWatch
Logs
CloudWatch
Metrics
Tracing
CloudWatch Logs
Insights
Visualizations
CloudWatch
Alarms
CloudWatch
Metric Filter
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – CloudWatch Logs Metric Filter
[DEV 302] Monitor All Your Things: Amazon CloudWatch in Action with BBC
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – CloudWatch Logs Subscription
Amazon
CloudWatch
Amazon Elasticsearch Service
API
AWS Lambda
Anywhere
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability
CloudWatch
Logs
CloudWatch
Metrics
AWS X-Ray
Traces
CloudWatch Logs
Insights
AWS X-Ray Service
Graphs
CloudWatch
Alarms
CloudWatch
Metric Filter
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – AWS X-Ray Service Graph
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using Observability – AWS X-Ray Traces
The story of the request
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Serverless Shop
Simple e-commerce example
Browse and purchase products
Built 100% on Serverless resources
https://store.epsagon.io
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Serverless Shop: Architecture
Client
Amazon S3
Amazon
API Gateway
API
/get_items
/buy_item
Website
Amazon
CloudFront
AWS Lambda
Catalog Images
API
Google
Images
Amazon DynamoDB
Catalog DB
SYNCSYNC
Payment
AWS Lambda Amazon SNS
Amazon SESAWS LambdaAmazon SNS
Order Fulfillment
API
SYNC
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Serverless Shop: Catalog feature
AWS Lambda
Catalog Images
API
Google
Images
Amazon DynamoDB
Catalog DB
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The Serverless Shop: Payment feature
ASYNC
Amazon SESAWS LambdaAmazon SNS
Order FulfillmentPayment
AWS Lambda
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Business flows and KPIs
Catalog
Time to Catalog
How long it takes for customers to
see our products
Payment
Time to purchase
How long it takes from checkout
to confirmation mail
W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability in action: Scenarios
Growth
Catalog grows by N
Image searching becomes a
bottleneck
No stock
Runs out of products
And yet purchase is successful
W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges of Serverless applications
• No access to the underlying infrastructure that runs the code
• Troubleshooting event driven applications is hard
• Cost calculation requires understanding of business transactions
• Ephemeral and limited compute duration
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges of Serverless distributed applications
Managing lots of resources and APIs
End to end performance
Correlation between logs
Distributed errors
Amazon
API Gateway
AWS Lambda Amazon Simple
Notification Service
Amazon DynamoDB
AWS Lambda AWS Lambda
AWS Lambda
ASYNCSYNC
ASYNC
ASYNC
API
Amazon Simple Queue
Service
W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Q&A
W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Appendix
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Some ideas you can use to improve the shop
• Lazy loading images (front-end)
• Check stock before allowing purchase
• Structured logging
• Custom metrics (CloudWatch API) for KPIs
• Order service
• Metrics from front-end
• DLQs
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario #1: store grows
• More and more items are being added to the store
• Searching for images becomes a bottleneck as it’s done on the back-end
• Result -> timeout -> user can’t see any item in the store
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scenario #2: stock run out
• 2 customers try buying the last piece of an item
• Both get the confirmation screen, only one get’s a success mail
• Result -> Un-happy customer
• Mis-handled request leads to business impact
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Example Epsagon tracing - Payment

Contenu connexe

Tendances

Developing Modern Applications in the Cloud
Developing Modern Applications in the CloudDeveloping Modern Applications in the Cloud
Developing Modern Applications in the CloudAmazon Web Services
 
Education : Digital transformation & AWS Foundations
Education : Digital transformation & AWS FoundationsEducation : Digital transformation & AWS Foundations
Education : Digital transformation & AWS FoundationsAmazon Web Services
 
AWS PROTECTED: Why This Matters for Australia - AWS Summit Sydney
AWS PROTECTED: Why This Matters for Australia - AWS Summit SydneyAWS PROTECTED: Why This Matters for Australia - AWS Summit Sydney
AWS PROTECTED: Why This Matters for Australia - AWS Summit SydneyAmazon Web Services
 
AWS Manufacturing Day Philadelphia-Boston-April 2019
AWS Manufacturing Day Philadelphia-Boston-April 2019AWS Manufacturing Day Philadelphia-Boston-April 2019
AWS Manufacturing Day Philadelphia-Boston-April 2019Amazon Web Services
 
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...Amazon Web Services
 
BCP Webinar - Enabling Today's Workforce Anywhere
BCP Webinar - Enabling Today's Workforce AnywhereBCP Webinar - Enabling Today's Workforce Anywhere
BCP Webinar - Enabling Today's Workforce AnywhereAmazon Web Services
 
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...Amazon Web Services
 
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019AWS Summits
 
What’s New with Device Qualification Program and IoT Services
What’s New with Device Qualification Program and IoT ServicesWhat’s New with Device Qualification Program and IoT Services
What’s New with Device Qualification Program and IoT ServicesAmazon Web Services
 
AWS G-Cloud 12 - Partner Seminar
AWS G-Cloud 12 - Partner SeminarAWS G-Cloud 12 - Partner Seminar
AWS G-Cloud 12 - Partner SeminarAmazon Web Services
 
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...Amazon Web Services
 
Database Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS SummitDatabase Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS SummitAmazon Web Services
 

Tendances (20)

Developing Modern Applications in the Cloud
Developing Modern Applications in the CloudDeveloping Modern Applications in the Cloud
Developing Modern Applications in the Cloud
 
Education : Digital transformation & AWS Foundations
Education : Digital transformation & AWS FoundationsEducation : Digital transformation & AWS Foundations
Education : Digital transformation & AWS Foundations
 
AWS PROTECTED: Why This Matters for Australia - AWS Summit Sydney
AWS PROTECTED: Why This Matters for Australia - AWS Summit SydneyAWS PROTECTED: Why This Matters for Australia - AWS Summit Sydney
AWS PROTECTED: Why This Matters for Australia - AWS Summit Sydney
 
AWS Manufacturing Day Philadelphia-Boston-April 2019
AWS Manufacturing Day Philadelphia-Boston-April 2019AWS Manufacturing Day Philadelphia-Boston-April 2019
AWS Manufacturing Day Philadelphia-Boston-April 2019
 
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...
Infrastructure, security, and operations as code - DEM05-S - Mexico City AWS ...
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
BCP Webinar - Enabling Today's Workforce Anywhere
BCP Webinar - Enabling Today's Workforce AnywhereBCP Webinar - Enabling Today's Workforce Anywhere
BCP Webinar - Enabling Today's Workforce Anywhere
 
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...
Distributed Solar Systems: Revolutionizing Time-Series Predictive Analytics, ...
 
IoT Made Easy | AWS IoT
IoT Made Easy | AWS IoTIoT Made Easy | AWS IoT
IoT Made Easy | AWS IoT
 
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
AWS Analytics Services - When to use what? | AWS Summit Tel Aviv 2019
 
AWS-Education-Day-for-HKMA-FCAS
AWS-Education-Day-for-HKMA-FCASAWS-Education-Day-for-HKMA-FCAS
AWS-Education-Day-for-HKMA-FCAS
 
Accelerate your cloud migration
Accelerate your cloud migrationAccelerate your cloud migration
Accelerate your cloud migration
 
Open Data on AWS
Open Data on AWSOpen Data on AWS
Open Data on AWS
 
Cloud ibrido nella PA
Cloud ibrido nella PACloud ibrido nella PA
Cloud ibrido nella PA
 
AWS 資料數據與 IoT
AWS 資料數據與 IoTAWS 資料數據與 IoT
AWS 資料數據與 IoT
 
What’s New with Device Qualification Program and IoT Services
What’s New with Device Qualification Program and IoT ServicesWhat’s New with Device Qualification Program and IoT Services
What’s New with Device Qualification Program and IoT Services
 
AWS-IoT-工業智造
 AWS-IoT-工業智造 AWS-IoT-工業智造
AWS-IoT-工業智造
 
AWS G-Cloud 12 - Partner Seminar
AWS G-Cloud 12 - Partner SeminarAWS G-Cloud 12 - Partner Seminar
AWS G-Cloud 12 - Partner Seminar
 
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...
Well-architected Amazon WorkSpaces: Enterprise deployment at scale - SVC304 -...
 
Database Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS SummitDatabase Freedom - ADB304 - Santa Clara AWS Summit
Database Freedom - ADB304 - Santa Clara AWS Summit
 

Similaire à Serverless Observability Tech Talk

Serverless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web appServerless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web appHeitor Lessa
 
Serverless applications with AWS
Serverless applications with AWSServerless applications with AWS
Serverless applications with AWSjavier ramirez
 
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...Amazon Web Services Japan
 
8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloadsAdrian Hornsby
 
How AWS builds Serverless services using Serverless
How AWS builds Serverless services using ServerlessHow AWS builds Serverless services using Serverless
How AWS builds Serverless services using ServerlessChris Munns
 
ArmadaJS - how to build a full-stack airline ticketing web app
ArmadaJS - how to build a full-stack airline ticketing web appArmadaJS - how to build a full-stack airline ticketing web app
ArmadaJS - how to build a full-stack airline ticketing web appHeitor Lessa
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAmazon Web Services
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...AWS Germany
 
Serverless Computing How to Innovate Faster
Serverless Computing How to Innovate FasterServerless Computing How to Innovate Faster
Serverless Computing How to Innovate FasterAmazon Web Services
 
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsAWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsPatrick Sard
 
How to build a FullStack Airline Ticketing Web App.pdf
How to build a FullStack Airline Ticketing Web App.pdfHow to build a FullStack Airline Ticketing Web App.pdf
How to build a FullStack Airline Ticketing Web App.pdfAmazon Web Services
 
Visualise and Voice-Enable Your Security
Visualise and Voice-Enable Your SecurityVisualise and Voice-Enable Your Security
Visualise and Voice-Enable Your SecurityAmazon Web Services
 
Websites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinWebsites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinBoaz Ziniman
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesAWS Summits
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Amazon Web Services
 
AWS re:Invent Comes to London 2019 - Management Tools
AWS re:Invent Comes to London 2019 - Management ToolsAWS re:Invent Comes to London 2019 - Management Tools
AWS re:Invent Comes to London 2019 - Management ToolsAmazon Web Services
 
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...Amazon Web Services
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Amazon Web Services
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019AWS Summits
 
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...Amazon Web Services
 

Similaire à Serverless Observability Tech Talk (20)

Serverless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web appServerless days Stockholm - How to build a full-stack airline ticketing web app
Serverless days Stockholm - How to build a full-stack airline ticketing web app
 
Serverless applications with AWS
Serverless applications with AWSServerless applications with AWS
Serverless applications with AWS
 
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
20190402 AWS Black Belt Online Seminar Let's Dive Deep into AWS Lambda Part1 ...
 
8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads8 ways to leverage AWS Lambda in your Big Data workloads
8 ways to leverage AWS Lambda in your Big Data workloads
 
How AWS builds Serverless services using Serverless
How AWS builds Serverless services using ServerlessHow AWS builds Serverless services using Serverless
How AWS builds Serverless services using Serverless
 
ArmadaJS - how to build a full-stack airline ticketing web app
ArmadaJS - how to build a full-stack airline ticketing web appArmadaJS - how to build a full-stack airline ticketing web app
ArmadaJS - how to build a full-stack airline ticketing web app
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...Modern Applications Web Day | Impress Your Friends with Your First Serverless...
Modern Applications Web Day | Impress Your Friends with Your First Serverless...
 
Serverless Computing How to Innovate Faster
Serverless Computing How to Innovate FasterServerless Computing How to Innovate Faster
Serverless Computing How to Innovate Faster
 
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless BackendsAWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
AWS Meetup Brussels 3rd Sep 2019 Simplify Frontend Apps with Serverless Backends
 
How to build a FullStack Airline Ticketing Web App.pdf
How to build a FullStack Airline Ticketing Web App.pdfHow to build a FullStack Airline Ticketing Web App.pdf
How to build a FullStack Airline Ticketing Web App.pdf
 
Visualise and Voice-Enable Your Security
Visualise and Voice-Enable Your SecurityVisualise and Voice-Enable Your Security
Visualise and Voice-Enable Your Security
 
Websites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit BerlinWebsites go Serverless - AWS Summit Berlin
Websites go Serverless - AWS Summit Berlin
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
 
AWS re:Invent Comes to London 2019 - Management Tools
AWS re:Invent Comes to London 2019 - Management ToolsAWS re:Invent Comes to London 2019 - Management Tools
AWS re:Invent Comes to London 2019 - Management Tools
 
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...
Built & Delivered in Six Months Using Serverless Technical Patterns and Micro...
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
 
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
Building a fully serverless application on AWS | AWS Summit Tel Aviv 2019
 
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...
Accelerating Cloud Adoption in Federal Government and Regulated Sectors with ...
 

Plus de 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
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 

Plus de 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
 
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
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 

Serverless Observability Tech Talk

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. W e b i n a r Serverless Observability Heitor Lessa Specialist Solutions Architect AWS Ran Ribenzaft CTO Epsagon @heitor_lessa @ranrib
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS operational responsibility models On-Premises Cloud Less More Compute Virtual Machine Amazon EC2 AWS Elastic Beanstalk AWS LambdaFargate Databases MySQL MySQL on EC2 Amazon RDS MySQL Amazon Aurora Amazon Aurora Serverless Amazon DynamoDB Storage Storage Amazon S3 Messaging ESBs Amazon MQ Amazon Kinesis Amazon SNS / SQS Analytics Hadoop Hadoop on EC2 Amazon EMR Amazon Elasticsearch Service Amazon Athena
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Three Pillars of Observability Event Logs Metrics Tracing Distributed Systems Observability by Cindy Sridharan
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability Event Logs Metrics Tracing Log aggregation & analytics VisualizationsAlerting
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability CloudWatch Logs Metrics Tracing CloudWatch Logs Insights VisualizationsAlerting
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – CloudWatch Logs, Insights
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability CloudWatch Logs CloudWatch Metrics Tracing CloudWatch Logs Insights Visualizations CloudWatch Alarms
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – CloudWatch Custom Metrics const metricData = await cloudWatch.putMetricData({ MetricData: [ { MetricName: 'My Business Metric', Dimensions: [ { Name: 'Location', Value: 'Paris' } ], Timestamp: new Date(), Value: 123.4 } ], Namespace: METRIC_NAMESPACE }).promise(); • Metric name • Dimensions • Timestamp • Value • Namespace
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – CloudWatch Metrics/Dashboard [DEV 302] Monitor All Your Things: Amazon CloudWatch in Action with BBC
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability CloudWatch Logs CloudWatch Metrics Tracing CloudWatch Logs Insights Visualizations CloudWatch Alarms CloudWatch Metric Filter
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – CloudWatch Logs Metric Filter [DEV 302] Monitor All Your Things: Amazon CloudWatch in Action with BBC
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – CloudWatch Logs Subscription Amazon CloudWatch Amazon Elasticsearch Service API AWS Lambda Anywhere
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability CloudWatch Logs CloudWatch Metrics AWS X-Ray Traces CloudWatch Logs Insights AWS X-Ray Service Graphs CloudWatch Alarms CloudWatch Metric Filter
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – AWS X-Ray Service Graph
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Using Observability – AWS X-Ray Traces The story of the request
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Serverless Shop Simple e-commerce example Browse and purchase products Built 100% on Serverless resources https://store.epsagon.io
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Serverless Shop: Architecture Client Amazon S3 Amazon API Gateway API /get_items /buy_item Website Amazon CloudFront AWS Lambda Catalog Images API Google Images Amazon DynamoDB Catalog DB SYNCSYNC Payment AWS Lambda Amazon SNS Amazon SESAWS LambdaAmazon SNS Order Fulfillment API SYNC
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Serverless Shop: Catalog feature AWS Lambda Catalog Images API Google Images Amazon DynamoDB Catalog DB
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. The Serverless Shop: Payment feature ASYNC Amazon SESAWS LambdaAmazon SNS Order FulfillmentPayment AWS Lambda
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Business flows and KPIs Catalog Time to Catalog How long it takes for customers to see our products Payment Time to purchase How long it takes from checkout to confirmation mail
  • 23. W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability in action: Scenarios Growth Catalog grows by N Image searching becomes a bottleneck No stock Runs out of products And yet purchase is successful
  • 25. W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Challenges of Serverless applications • No access to the underlying infrastructure that runs the code • Troubleshooting event driven applications is hard • Cost calculation requires understanding of business transactions • Ephemeral and limited compute duration
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Challenges of Serverless distributed applications Managing lots of resources and APIs End to end performance Correlation between logs Distributed errors Amazon API Gateway AWS Lambda Amazon Simple Notification Service Amazon DynamoDB AWS Lambda AWS Lambda AWS Lambda ASYNCSYNC ASYNC ASYNC API Amazon Simple Queue Service
  • 28. W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Q&A
  • 29. W e b i n a r © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Appendix
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Some ideas you can use to improve the shop • Lazy loading images (front-end) • Check stock before allowing purchase • Structured logging • Custom metrics (CloudWatch API) for KPIs • Order service • Metrics from front-end • DLQs
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario #1: store grows • More and more items are being added to the store • Searching for images becomes a bottleneck as it’s done on the back-end • Result -> timeout -> user can’t see any item in the store
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scenario #2: stock run out • 2 customers try buying the last piece of an item • Both get the confirmation screen, only one get’s a success mail • Result -> Un-happy customer • Mis-handled request leads to business impact
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Example Epsagon tracing - Payment