SlideShare a Scribd company logo
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Lens in AWS WA Tool
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Serverless Lens in AWS WA Tool
Most common risks
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Findings come in late
Plan/design Build Ship Operate
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Findings come in late
Plan/design Build Ship Operate
Readiness assessment
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Findings come in late
Plan/design Build Ship Operate
Readiness assessment
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Findings come in late
Plan/design Build Ship Operate
Today, let’s fix here
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Powertools
Logger
Metrics
Tracer
+ Many more
A toolkit to implement
Serverless best practices and
increase developer velocity
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Powertools
OPS1 solution
OPS 1: How do you evaluate your Serverless application’s health?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Powertools
walkthrough
Heitor Lessa (he/him)
Principal Solutions Architect, Developer Acceleration (DevAx)
AWS
@heitor_lessa || lessa@amazon.com
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Today Up next
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: Serverless Lens mapping (51%)
Question Practice
SEC 1 Scope access based on identity’s metadata
SEC 2 Design smaller, single-purpose functions
SEC 2 Use temporary credentials between resources and components
SEC 3 Store secrets that are used in your code securely
REL 1 Use mechanisms to protect nonscalable resources
REL 2 Manage transaction, partial, and intermittent failures
REL 2 Manage duplicate and unwanted events
REL 2 Orchestrate long-running transactions
OPS 1 Use distributed tracing, and code is instrumented with additional context
OPS 1 Use structured and centralized logging
OPS 1 Use application, business, and operations metrics
OPS 2 Use infrastructure as code (IaC) and stages isolated in separate environments
OPS 2 Use configuration management
PERF 1 Measure and optimize function startup time
PERF 1 Take advantage of concurrency via async and stream-based function invocations
PERF 1 Optimize access patterns and apply caching where applicable
COST 1 Minimize external calls and function code initialization
COST 1 Optimize logging output and its retention
COST 1 Use cost-aware usage patterns in code
Total 19
Powertools assistance
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: Scale in numbers
5 billion 161%
weekly invocations growth YoY
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: How did we get here?
Our customers grew
Observability
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: How did we get here?
Batch partial failure
REST/GraphQL API
Input/Output validation
Config management
Handling secrets
Idempotency
Observability
BYO middleware
Self-documented schemas Feature flags
Data extraction
Caching
Our customers grew
The community
grew too
~40% came from the community
Streaming
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: How did we get here?
Our customers grew
The community
grew too
Data engineers
Developers
Platform eng.
Security eng.
APIs, event-driven architecture
ETL, data validation
Automation, abstractions
AppSec, guardrails
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: Languages
Feature parity
Java
Python TypeScript .NET
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Today: Feature Parity Python Java TypeScript .NET
Tracer x x x x
Logger x x x x
Metrics x x x x
Event handler (REST) x
Event handler (GraphQL) x
Idempotency x x
Parameters x x
Batch processing x
Validation x x
Event source data classes x x x
Parser x
Feature flags x
Streaming x
JMESPath (data extraction) x x
Amazon SQS large
message handling
x
Feature parity
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Up next: What the near
future holds
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch
X-Ray
Amazon CloudWatch and AWS X-Ray
Up next
Observability providers
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Up next
Sensitive data masking
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Up next: Long-term
Lambda Powertools Powertools for AWS
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo
REST API
Data pipeline
Making critical operations idempotent
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Heitor Lessa (he/him)
@heitor_lessa
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Appendix
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Recap
Raw Semi-structured Canonical Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Without Powertools
Raw
[INFO] 2022-12-02T22:.. 1c8df7d3… Hello world
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Without Powertools
[INFO] 2022-12-02T22:.. … {“message”: “Hello world”}
Semi
structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Without Powertools
Canonical
at=INFO msg=Aha! request_latency=0.1
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Without Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Without Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Structured logging: Powertools
Structured
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
API Gateway Lambda Fargate
DynamoDB
API Gateway
S3 bucket
Distributed tracing: Recap
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Trace
API Gateway Lambda Fargate
DynamoDB
API Gateway
S3 bucket
Distributed tracing: Recap
Legend
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Trace
API Gateway Lambda Fargate
DynamoDB
API Gateway
S3 bucket
Distributed tracing: Recap
Legend
Segment
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Trace
API Gateway Lambda Fargate
DynamoDB
API Gateway
S3 bucket
Distributed tracing: Recap
Legend
Segment
Sub-segment
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Trace
API Gateway Lambda Fargate
DynamoDB
API Gateway
S3 bucket
Distributed tracing: Recap
Legend
Segment
Sub-segment
Type Key Value Namespace
Annotation UserId a1c8k...
Metadata Cart {….} Checkout
Trace metadata
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Without Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Distributed tracing: Powertools
Tracing
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics: Recap
Namespace
Metric
Unit
Dimensions
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics: Without Powertools
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics: Powertools
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics: Powertools
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Metrics: Powertools
Metrics
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda Powertools: Humble beginnings
Recap
Ad

More Related Content

Similar to AWS Lambda Powertools walkthrough.pdf (11)

Build Developer Experience Teams for Open Source
Build Developer Experience Teams for Open SourceBuild Developer Experience Teams for Open Source
Build Developer Experience Teams for Open Source
All Things Open
 
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdfre:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
Heitor Lessa
 
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
HostedbyConfluent
 
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
HostedbyConfluent
 
Göteborg Reinvent 2023_Aritra_updated.pptx
Göteborg Reinvent 2023_Aritra_updated.pptxGöteborg Reinvent 2023_Aritra_updated.pptx
Göteborg Reinvent 2023_Aritra_updated.pptx
Aritra Nag
 
AWS reInvent 2022 reCap AI/ML and Data
AWS reInvent 2022 reCap AI/ML and DataAWS reInvent 2022 reCap AI/ML and Data
AWS reInvent 2022 reCap AI/ML and Data
Chris Fregly
 
AWS re-Invent re-Cap general deck 2022-2023 .pdf
AWS re-Invent re-Cap general deck 2022-2023 .pdfAWS re-Invent re-Cap general deck 2022-2023 .pdf
AWS re-Invent re-Cap general deck 2022-2023 .pdf
Rohini Gaonkar
 
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG ChileRe:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Alvaro Garcia
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
GeorgiiSteshenko
 
Control Planes on Kubernetes and Policy Validation
Control Planes on Kubernetes and Policy ValidationControl Planes on Kubernetes and Policy Validation
Control Planes on Kubernetes and Policy Validation
Carlos Santana
 
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
All Things Open
 
Build Developer Experience Teams for Open Source
Build Developer Experience Teams for Open SourceBuild Developer Experience Teams for Open Source
Build Developer Experience Teams for Open Source
All Things Open
 
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdfre:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
re:Invent OPN306 AWS Lambda Powertools Lessons 10M downloads.pdf
Heitor Lessa
 
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
HostedbyConfluent
 
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
Build an Event-driven Microservices with Apache Kafka & Apache Flink with Ali...
HostedbyConfluent
 
Göteborg Reinvent 2023_Aritra_updated.pptx
Göteborg Reinvent 2023_Aritra_updated.pptxGöteborg Reinvent 2023_Aritra_updated.pptx
Göteborg Reinvent 2023_Aritra_updated.pptx
Aritra Nag
 
AWS reInvent 2022 reCap AI/ML and Data
AWS reInvent 2022 reCap AI/ML and DataAWS reInvent 2022 reCap AI/ML and Data
AWS reInvent 2022 reCap AI/ML and Data
Chris Fregly
 
AWS re-Invent re-Cap general deck 2022-2023 .pdf
AWS re-Invent re-Cap general deck 2022-2023 .pdfAWS re-Invent re-Cap general deck 2022-2023 .pdf
AWS re-Invent re-Cap general deck 2022-2023 .pdf
Rohini Gaonkar
 
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG ChileRe:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Re:cap día 2 del Aws Re:Invent 2023 - AWS UG Chile
Alvaro Garcia
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
GeorgiiSteshenko
 
Control Planes on Kubernetes and Policy Validation
Control Planes on Kubernetes and Policy ValidationControl Planes on Kubernetes and Policy Validation
Control Planes on Kubernetes and Policy Validation
Carlos Santana
 
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
All Things Open
 

More from Heitor Lessa (8)

re:Invent ARC307 - Serverless architectural patterns and best practices.pdf
re:Invent ARC307 - Serverless architectural patterns and best practices.pdfre:Invent ARC307 - Serverless architectural patterns and best practices.pdf
re:Invent ARC307 - Serverless architectural patterns and best practices.pdf
Heitor Lessa
 
AWS Community Day Ireland - Building roads and bridges in the last decade of ...
AWS Community Day Ireland - Building roads and bridges in the last decade of ...AWS Community Day Ireland - Building roads and bridges in the last decade of ...
AWS Community Day Ireland - Building roads and bridges in the last decade of ...
Heitor Lessa
 
AWS Community Day Ireland - Refactoring a serverless app
AWS Community Day Ireland - Refactoring a serverless appAWS Community Day Ireland - Refactoring a serverless app
AWS Community Day Ireland - Refactoring a serverless app
Heitor Lessa
 
AWS Lambda Powertools
AWS Lambda PowertoolsAWS Lambda Powertools
AWS Lambda Powertools
Heitor Lessa
 
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
Heitor Lessa
 
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
Heitor Lessa
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m version
Heitor Lessa
 
Organising time effectively
Organising time effectivelyOrganising time effectively
Organising time effectively
Heitor Lessa
 
re:Invent ARC307 - Serverless architectural patterns and best practices.pdf
re:Invent ARC307 - Serverless architectural patterns and best practices.pdfre:Invent ARC307 - Serverless architectural patterns and best practices.pdf
re:Invent ARC307 - Serverless architectural patterns and best practices.pdf
Heitor Lessa
 
AWS Community Day Ireland - Building roads and bridges in the last decade of ...
AWS Community Day Ireland - Building roads and bridges in the last decade of ...AWS Community Day Ireland - Building roads and bridges in the last decade of ...
AWS Community Day Ireland - Building roads and bridges in the last decade of ...
Heitor Lessa
 
AWS Community Day Ireland - Refactoring a serverless app
AWS Community Day Ireland - Refactoring a serverless appAWS Community Day Ireland - Refactoring a serverless app
AWS Community Day Ireland - Refactoring a serverless app
Heitor Lessa
 
AWS Lambda Powertools
AWS Lambda PowertoolsAWS Lambda Powertools
AWS Lambda Powertools
Heitor Lessa
 
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
Heitor Lessa
 
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
Heitor Lessa
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m version
Heitor Lessa
 
Organising time effectively
Organising time effectivelyOrganising time effectively
Organising time effectively
Heitor Lessa
 
Ad

Recently uploaded (20)

How to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabberHow to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabber
eGrabber
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptxSmart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Seasia Infotech
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Top-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptxTop-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptx
BR Softech
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptxTop 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
mkubeusa
 
Dark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanizationDark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanization
Jakub Šimek
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
How to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabberHow to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabber
eGrabber
 
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Challenges in Migrating Imperative Deep Learning Programs to Graph Execution:...
Raffi Khatchadourian
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
GDG Cloud Southlake #42: Suresh Mathew: Autonomous Resource Optimization: How...
James Anderson
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)Design pattern talk by Kaya Weers - 2025 (v2)
Design pattern talk by Kaya Weers - 2025 (v2)
Kaya Weers
 
Cybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and MitigationCybersecurity Threat Vectors and Mitigation
Cybersecurity Threat Vectors and Mitigation
VICTOR MAESTRE RAMIREZ
 
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptxSmart Investments Leveraging Agentic AI for Real Estate Success.pptx
Smart Investments Leveraging Agentic AI for Real Estate Success.pptx
Seasia Infotech
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Top-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptxTop-AI-Based-Tools-for-Game-Developers (1).pptx
Top-AI-Based-Tools-for-Game-Developers (1).pptx
BR Softech
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptxTop 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
Top 5 Benefits of Using Molybdenum Rods in Industrial Applications.pptx
mkubeusa
 
Dark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanizationDark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanization
Jakub Šimek
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Ad

AWS Lambda Powertools walkthrough.pdf

  • 1. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Lens in AWS WA Tool
  • 2. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless Lens in AWS WA Tool Most common risks
  • 3. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Findings come in late Plan/design Build Ship Operate
  • 4. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Findings come in late Plan/design Build Ship Operate Readiness assessment
  • 5. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Findings come in late Plan/design Build Ship Operate Readiness assessment
  • 6. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Findings come in late Plan/design Build Ship Operate Today, let’s fix here
  • 7. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Powertools Logger Metrics Tracer + Many more A toolkit to implement Serverless best practices and increase developer velocity
  • 8. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Powertools OPS1 solution OPS 1: How do you evaluate your Serverless application’s health?
  • 9. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Powertools walkthrough Heitor Lessa (he/him) Principal Solutions Architect, Developer Acceleration (DevAx) AWS @heitor_lessa || lessa@amazon.com
  • 10. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Today Up next
  • 11. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today
  • 12. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: Serverless Lens mapping (51%) Question Practice SEC 1 Scope access based on identity’s metadata SEC 2 Design smaller, single-purpose functions SEC 2 Use temporary credentials between resources and components SEC 3 Store secrets that are used in your code securely REL 1 Use mechanisms to protect nonscalable resources REL 2 Manage transaction, partial, and intermittent failures REL 2 Manage duplicate and unwanted events REL 2 Orchestrate long-running transactions OPS 1 Use distributed tracing, and code is instrumented with additional context OPS 1 Use structured and centralized logging OPS 1 Use application, business, and operations metrics OPS 2 Use infrastructure as code (IaC) and stages isolated in separate environments OPS 2 Use configuration management PERF 1 Measure and optimize function startup time PERF 1 Take advantage of concurrency via async and stream-based function invocations PERF 1 Optimize access patterns and apply caching where applicable COST 1 Minimize external calls and function code initialization COST 1 Optimize logging output and its retention COST 1 Use cost-aware usage patterns in code Total 19 Powertools assistance
  • 13. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: Scale in numbers 5 billion 161% weekly invocations growth YoY
  • 14. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: How did we get here? Our customers grew Observability
  • 15. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: How did we get here? Batch partial failure REST/GraphQL API Input/Output validation Config management Handling secrets Idempotency Observability BYO middleware Self-documented schemas Feature flags Data extraction Caching Our customers grew The community grew too ~40% came from the community Streaming
  • 16. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: How did we get here? Our customers grew The community grew too Data engineers Developers Platform eng. Security eng. APIs, event-driven architecture ETL, data validation Automation, abstractions AppSec, guardrails
  • 17. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: Languages Feature parity Java Python TypeScript .NET
  • 18. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Today: Feature Parity Python Java TypeScript .NET Tracer x x x x Logger x x x x Metrics x x x x Event handler (REST) x Event handler (GraphQL) x Idempotency x x Parameters x x Batch processing x Validation x x Event source data classes x x x Parser x Feature flags x Streaming x JMESPath (data extraction) x x Amazon SQS large message handling x Feature parity
  • 19. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Up next: What the near future holds
  • 20. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CloudWatch X-Ray Amazon CloudWatch and AWS X-Ray Up next Observability providers
  • 21. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Up next Sensitive data masking
  • 22. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Up next: Long-term Lambda Powertools Powertools for AWS
  • 23. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo REST API Data pipeline Making critical operations idempotent
  • 24. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank you! Heitor Lessa (he/him) @heitor_lessa
  • 25. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Appendix
  • 26. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging
  • 27. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Recap Raw Semi-structured Canonical Structured
  • 28. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Without Powertools Raw [INFO] 2022-12-02T22:.. 1c8df7d3… Hello world
  • 29. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Without Powertools [INFO] 2022-12-02T22:.. … {“message”: “Hello world”} Semi structured
  • 30. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Without Powertools Canonical at=INFO msg=Aha! request_latency=0.1
  • 31. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Without Powertools Structured
  • 32. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Without Powertools Structured
  • 33. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Powertools Structured
  • 34. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Powertools Structured
  • 35. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Powertools Structured
  • 36. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Structured logging: Powertools Structured
  • 37. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing
  • 38. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. API Gateway Lambda Fargate DynamoDB API Gateway S3 bucket Distributed tracing: Recap
  • 39. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Trace API Gateway Lambda Fargate DynamoDB API Gateway S3 bucket Distributed tracing: Recap Legend
  • 40. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Trace API Gateway Lambda Fargate DynamoDB API Gateway S3 bucket Distributed tracing: Recap Legend Segment
  • 41. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Trace API Gateway Lambda Fargate DynamoDB API Gateway S3 bucket Distributed tracing: Recap Legend Segment Sub-segment
  • 42. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Trace API Gateway Lambda Fargate DynamoDB API Gateway S3 bucket Distributed tracing: Recap Legend Segment Sub-segment Type Key Value Namespace Annotation UserId a1c8k... Metadata Cart {….} Checkout Trace metadata
  • 43. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 44. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 45. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 46. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 47. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 48. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Without Powertools Tracing
  • 49. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Distributed tracing: Powertools Tracing
  • 50. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2022, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics
  • 51. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics: Recap Namespace Metric Unit Dimensions Metrics
  • 52. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics: Without Powertools Metrics
  • 53. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics: Powertools Metrics
  • 54. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics: Powertools Metrics
  • 55. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Metrics: Powertools Metrics
  • 56. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda Powertools: Humble beginnings Recap
  翻译: