SlideShare une entreprise Scribd logo
1  sur  69
MONITORING
SERVERLESS
ARCHITECTURES
InfoQ.com: News & Community Site
Watch the video with slide
synchronization on InfoQ.com!
https://www.infoq.com/presentations/
aws-monitor-serverless
• Over 1,000,000 software developers, architects and CTOs read the site world-
wide every month
• 250,000 senior developers subscribe to our weekly newsletter
• Published in 4 languages (English, Chinese, Japanese and Brazilian
Portuguese)
• Post content from our QCon conferences
• 2 dedicated podcast channels: The InfoQ Podcast, with a focus on
Architecture and The Engineering Culture Podcast, with a focus on building
• 96 deep dives on innovative topics packed as downloadable emags and
minibooks
• Over 40 new content items per week
Purpose of QCon
- to empower software development by facilitating the spread of
knowledge and innovation
Strategy
- practitioner-driven conference designed for YOU: influencers of
change and innovation in your teams
- speakers and topics driving the evolution and innovation
- connecting and catalyzing the influencers and innovators
Highlights
- attended by more than 12,000 delegates since 2007
- held in 9 cities worldwide
Presented at QCon London
www.qconlondon.com
@RafalGancarz
Your Manager
CAN YOU HELP WITH SOME PRODUCTION PROBLEMS?
(CC) Rachel Gardner
Rafal Gancarz
Lead Consultant @ OpenCredo
@RafalGancarz
@RafalGancarz
WHAT IS
SERVERLESS?
(CC) theaucitron
@RafalGancarz
Cloud-native
@RafalGancarz
PaaS?
@RafalGancarz
Serverless ≠ FaaS
FaasServerless
@RafalGancarz
Managed runtime
@RafalGancarz
WHY
SERVERLESS?
(CC) snapp3r
@RafalGancarz
Availability
@RafalGancarz
Scalability
@RafalGancarz
Economy
@RafalGancarz
Time to market
@RafalGancarz
Security
@RafalGancarz
Operability
@RafalGancarz
SERVERLESS
BUILDING BLOCKS
@RafalGancarz
AWS Lambda
Java, C#, NodeJS, Python
sync & async invocation
1 million invocations and 400k GB-s
free per month
$0.20 per 1 million requests and
~$6.65 for 400k GB-s thereafter
@RafalGancarz
AWS API Gateway
security, caching, throttling
functions as API implementations
1 million requests free per month
$3.50 per 1 million requests and
$0.09/GB (for the first 10 TB, then
cheaper)
@RafalGancarz
AWS DynamoDB
document and key-value
function as triggered procedures
25 GB of storage and 25 units of read
capacity each month for free (~200k
requests per month)
$0.25 per GB/month and $0.0065 per
hour for 10 units of write capacity (36k
writes/hour) or 50 units of read capacity
(180k reads/hour)
@RafalGancarz
AWS S3
durable, available and scalable
functions as content processors
5 GB of storage and 15 GB of data
transfer out to Internet each month
for free
$0.03 per TB/month and $0.09 per
GB data transfer out to Internet
@RafalGancarz
AWS SNS
pub-sub, push notifications
functions as destinations
1m publishes, 1m mobile push
notifications, 1k emails, 100k HTTP
notifications and 1 GB of data transfer out
each month for free
$0.50 per 1m publishes, $0.60 per 1m
HTTP notifications and $0.09 per GB data
transfer out to the Internet
@RafalGancarz
AWS Kinesis Streams
pub-sub, persistent
functions as consumers
no free tier
$0.015 per shard/hour, $0.014 per
1m PUT payload units (25KB) +
extended retention charges
data transfer is free
@RafalGancarz
Other AWS services
SQS
Redshift
IoT
ElastiCache
CognitoSES
RDS
ElasticSearch
EMR
Batch
Route53CloudFront
Greengrass Button
Step Functions
(CC) Grégoire Lannoy
MONITORING
@RafalGancarz
AWS CloudWatch
scalable, managed
real-time monitoring
metrics, logs, alarms, events
(CC) Jérôme S
METRICS
@RafalGancarz
CloudWatch Metrics
retention: 1m (15 days), 5m (63 days),
1h (15 months)
basic monitoring (1m/5m) is free
10 metrics and 1 million API requests for
free each month
$0.30 per metric/month for the first 10k
metrics ($0.02 for metrics over 1M)
$0.01 for 1000 API requests
@RafalGancarz
AWS Lambda
Invocations
Errors
Dead Letter Errors
Duration
Throttles
@RafalGancarz
AWS API Gateway
4XX Error
5XX Error
Cache Hit Count
Cache Miss Count
Count
Integration Latency
Latency
@RafalGancarz
AWS DynamoDB
Provisioned Capacity Units Read/Write
Consumed Capacity Units Read/Write
Online Index Consumed Capacity/Progress/Throttling
Returned Bytes
Returned Item Count
Returned Records Count (Streams)
Successful Request Latency
Errors System/User
Conditional Check Failed Requests
Throttled Events Read/Write/Requests
@RafalGancarz
AWS S3
Bucket Size Bytes (daily)
Number Of Objects (daily)
All Requests
Get/Put/Delete/Head/Post/List Requests
Bytes Downloaded/Uploaded
Errors 4XX/5XX
First Byte Latency
Total Request Latency
@RafalGancarz
AWS SNS
Number Of Messages Published
Publish Size
Number Of Notifications Delivered
Number Of Notifications Failed
SMS Success Rate
@RafalGancarz
Custom Metrics
function
Lambda
CloudWatch
SDK
@RafalGancarz
Estimated Billing
Total Estimated Charges
Estimated Charges (per service)
(CC) Kevin Dooley
DASHBOARDS
@RafalGancarz
CloudWatch Dashboards
metrics, alarms, static text
3 dashboards (up to 50 metrics) per
month for free
$3 per dashboard per month
ALERTING
(CC) Martin Abegglen
@RafalGancarz
CloudWatch Alarms
watches metrics over time
can trigger a function via SNS
10 alarms per month for free
$0.10 per alarm per month
@RafalGancarz
Serverless Alerting
function
alarm topic
email
SMS
channel
metric
condition
LOGGING
(CC) Mari Smith
@RafalGancarz
CloudWatch Logs
ingests and stores application logs
configurable retention period
5 GB data ingestion and 5 GB
archived storage per month for free
$0.5985 per GB ingested per month
$0.0315 per GB archived per month
@RafalGancarz
Log Collection
log groupLambda
stdout
function
stderr
@RafalGancarz
Log Filtering
log group metric alarm
filter condition
@RafalGancarz
Log Streaming
log group
function Elastic
Search
stream function
@RafalGancarz
Log Browsing
log group
Elastic
Search
function
JSON
Kibana
+
Bunyan CLI
Bunyan
EVENTS
(CC) JD Hancock
@RafalGancarz
CloudWatch Events
stores & streams application events
$1 per 1 million custom events
@RafalGancarz
Custom Events
function
SDK
event rule function
@RafalGancarz
DynamoDB dynamic capacity
function
SDK
event
metrics
table
HEALTH CHECKS
(CC) Rosmarie Voegtli
@RafalGancarz
Route53 Health Checks
monitors HTTP(S) endpoints
50 AWS endpoint checks per month
for free
$0.50 per health check per month
$1 per feature (HTTPS, string
matching, fast interval, latency) per
month
@RafalGancarz
Health Checks
health
check
metric alarm
api function table
TRACING
(CC) Ozzy Delaney
@RafalGancarz
AWS X-Ray
collects transaction traces
support for Lambda coming soon
100k traces recorded and 1 million
traces retrieved/scanned free per
month
$5 per 1 million traces recorded and
$0.50 per 1 million traces retrieved/
scanned per month
AUDITING
(CC) The Steve
@RafalGancarz
AWS CloudTrail
audits all console, API, SDK activity
first copy of management event free
additional copies $2 per 100k
events
$0.10 per 100k data events
THE FUTURE
(CC) matt northam
@RafalGancarz
Total Visibility
@RafalGancarz
Monitoring as a Service
@RafalGancarz
Monitoring not only
for Operations
@RafalGancarz
Application <-> Monitoring
metrics
events
logs
feedback
Application
Services
Monitoring
Services
@RafalGancarz
Monitoring as the enabler
for the new functionality
(CC) Alan Turkus
QUESTIONS?
@RafalGancarz
Watch the video with slide
synchronization on InfoQ.com!
https://www.infoq.com/presentations/
aws-monitor-serverless

Contenu connexe

Plus de C4Media

Plus de C4Media (20)

Shifting Left with Cloud Native CI/CD
Shifting Left with Cloud Native CI/CDShifting Left with Cloud Native CI/CD
Shifting Left with Cloud Native CI/CD
 
CI/CD for Machine Learning
CI/CD for Machine LearningCI/CD for Machine Learning
CI/CD for Machine Learning
 
Fault Tolerance at Speed
Fault Tolerance at SpeedFault Tolerance at Speed
Fault Tolerance at Speed
 
Architectures That Scale Deep - Regaining Control in Deep Systems
Architectures That Scale Deep - Regaining Control in Deep SystemsArchitectures That Scale Deep - Regaining Control in Deep Systems
Architectures That Scale Deep - Regaining Control in Deep Systems
 
ML in the Browser: Interactive Experiences with Tensorflow.js
ML in the Browser: Interactive Experiences with Tensorflow.jsML in the Browser: Interactive Experiences with Tensorflow.js
ML in the Browser: Interactive Experiences with Tensorflow.js
 
Build Your Own WebAssembly Compiler
Build Your Own WebAssembly CompilerBuild Your Own WebAssembly Compiler
Build Your Own WebAssembly Compiler
 
User & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix ScaleUser & Device Identity for Microservices @ Netflix Scale
User & Device Identity for Microservices @ Netflix Scale
 
Scaling Patterns for Netflix's Edge
Scaling Patterns for Netflix's EdgeScaling Patterns for Netflix's Edge
Scaling Patterns for Netflix's Edge
 
Make Your Electron App Feel at Home Everywhere
Make Your Electron App Feel at Home EverywhereMake Your Electron App Feel at Home Everywhere
Make Your Electron App Feel at Home Everywhere
 
The Talk You've Been Await-ing For
The Talk You've Been Await-ing ForThe Talk You've Been Await-ing For
The Talk You've Been Await-ing For
 
Future of Data Engineering
Future of Data EngineeringFuture of Data Engineering
Future of Data Engineering
 
Automated Testing for Terraform, Docker, Packer, Kubernetes, and More
Automated Testing for Terraform, Docker, Packer, Kubernetes, and MoreAutomated Testing for Terraform, Docker, Packer, Kubernetes, and More
Automated Testing for Terraform, Docker, Packer, Kubernetes, and More
 
Navigating Complexity: High-performance Delivery and Discovery Teams
Navigating Complexity: High-performance Delivery and Discovery TeamsNavigating Complexity: High-performance Delivery and Discovery Teams
Navigating Complexity: High-performance Delivery and Discovery Teams
 
High Performance Cooperative Distributed Systems in Adtech
High Performance Cooperative Distributed Systems in AdtechHigh Performance Cooperative Distributed Systems in Adtech
High Performance Cooperative Distributed Systems in Adtech
 
Rust's Journey to Async/await
Rust's Journey to Async/awaitRust's Journey to Async/await
Rust's Journey to Async/await
 
Opportunities and Pitfalls of Event-Driven Utopia
Opportunities and Pitfalls of Event-Driven UtopiaOpportunities and Pitfalls of Event-Driven Utopia
Opportunities and Pitfalls of Event-Driven Utopia
 
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayDatadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
 
Are We Really Cloud-Native?
Are We Really Cloud-Native?Are We Really Cloud-Native?
Are We Really Cloud-Native?
 
CockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL DatabaseCockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL Database
 
A Dive into Streams @LinkedIn with Brooklin
A Dive into Streams @LinkedIn with BrooklinA Dive into Streams @LinkedIn with Brooklin
A Dive into Streams @LinkedIn with Brooklin
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 

Monitoring Serverless Architectures