際際滷

際際滷Share a Scribd company logo
AWS User Group Italy Meeting
Rome
AWSUGIT Meeting @ Roma
AWS User Group Italy Meeting
Rome
AWS LAMBDA
Danilo Poccia  AWS Technical Evangelist
@danilop
AWS Lambda
NEW CLOUD
APPLICATIONS MODELS
SIMPLE PROBLEMS
Thumbnail images as they arrive in a bucket
Check email addresses stored in DynamoDB
1. Provision a fleet of proxy machines to capture data
uploads.
2. For each upload, enqueue a job to process it.
3. Provision a second fleet of machines to read and
process jobs.
4. Pick a deployment solution.
5. Plan capacity, accounting for fault tolerance, good
long-term utilization, burst capability, etc.
6. Monitor 24x7x365 for capacity, health, security, etc.
7. Migrate to new instance types over time, keeping
OS and language runtimes patched and up to date.
AWS Lambda
WHAT ARE THE PRIMITIVES
OF AN APPLICATION?
Interactions
Communicated
via events
Functions Data
The Magic Happens at the Intersection of
Functions, Events and Data
(Pretty much everything else is glue or UI)
Driving Data with Events and Functions
Composable
Build small
functions, quickly
Easy to update
Add new
functionality safely
and easily
Dynamic
Data is always kept
up to date
Why dont we architect like this today?
Complex
Need to manage
a full stack for
every function
Expensive
Some functions run
very infrequently
AWS LAMBDA
STATELESS, EVENT-DRIVEN COMPUTE
CODE CALLED LAMBDA FUNCTIONS
TRIGGERED BY EVENTS
IN OTHER SERVICES
≒ Put an object in an Amazon S3 bucket
≒ Write to a DynamoDB table
≒ Message in an Amazon Kinesis stream
EVENT-DRIVEN
COMPUTING
AWS LAMBDA IS THE CONNECTIVE TISSUE
BETWEEN SERVICES
Data Triggers: DynamoDB
AWS Lambda
了DynamoDB
Table and Stream
Send Amazon SNS
notifications
Update another table
Audit and Notify
AWS API calls
AWS CloudTrail Logs
AWS Lambda
了Bucket events Amazon SNS
notifications
Custom Events
AWS Lambda
了
Data Triggers: Amazon S3
Amazon S3 Bucket Events AWS Lambda
了
Original image Thumbnailed image
1
2
3
NO INFRASTRUCTURE
TO MANAGE
Focus on business logic, not infrastructure
Upload your code, Amazon Lambda handles:
≒ Capacity
≒ Scaling
≒ Fault tolerance
≒ Monitoring
≒ Logging
AUTOMATIC SCALING
Each object uploaded to Amazon S3 is an event
Each event is a Lambda request
Lambda scales to match the event rate
Dont worry about over or under provisioning
Pay only for what you use
FINE GRAINED PRICING
Price compute time by 100ms
(so even short jobs make sense)
Low request charge
No hourly, daily, or monthly minimums
PREVIEW OPEN TO EVERYBODY:
AWS.AMAZON.COM / LAMBDA
SUPPORT FOR AMAZON S3 AND AMAZON KINESIS
AMAZON DYNAMODB STREAMS PREVIEW
AWS Lambda

More Related Content

Similar to AWS Lambda (7)

Getting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless CloudGetting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
DevTalks Romania - Getting Started with AWS Lambda & the Serverless CloudDevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
Ian Massingham
Introduction to AWS Lambda with Python
Introduction to AWS Lambda with PythonIntroduction to AWS Lambda with Python
Introduction to AWS Lambda with Python
adaplo
Em tempo real: Ingest達o, processamento e analise de dados
Em tempo real: Ingest達o, processamento e analise de dadosEm tempo real: Ingest達o, processamento e analise de dados
Em tempo real: Ingest達o, processamento e analise de dados
Amazon Web Services LATAM
2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS
SmartWave
Voxxed Athens 2018 - Serverless by Design
Voxxed Athens 2018 - Serverless by DesignVoxxed Athens 2018 - Serverless by Design
Voxxed Athens 2018 - Serverless by Design
Voxxed Athens
Getting started with AWS Lambda and the Serverless Cloud
Getting started with AWS Lambda and the Serverless CloudGetting started with AWS Lambda and the Serverless Cloud
Getting started with AWS Lambda and the Serverless Cloud
Ian Massingham
Getting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless CloudGetting Started with AWS Lambda & Serverless Cloud
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
DevTalks Romania - Getting Started with AWS Lambda & the Serverless CloudDevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
DevTalks Romania - Getting Started with AWS Lambda & the Serverless Cloud
Ian Massingham
Introduction to AWS Lambda with Python
Introduction to AWS Lambda with PythonIntroduction to AWS Lambda with Python
Introduction to AWS Lambda with Python
adaplo
Em tempo real: Ingest達o, processamento e analise de dados
Em tempo real: Ingest達o, processamento e analise de dadosEm tempo real: Ingest達o, processamento e analise de dados
Em tempo real: Ingest達o, processamento e analise de dados
Amazon Web Services LATAM
2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS2016-06 - Design your api management strategy - AWS - Microservices on AWS
2016-06 - Design your api management strategy - AWS - Microservices on AWS
SmartWave
Voxxed Athens 2018 - Serverless by Design
Voxxed Athens 2018 - Serverless by DesignVoxxed Athens 2018 - Serverless by Design
Voxxed Athens 2018 - Serverless by Design
Voxxed Athens
Getting started with AWS Lambda and the Serverless Cloud
Getting started with AWS Lambda and the Serverless CloudGetting started with AWS Lambda and the Serverless Cloud
Getting started with AWS Lambda and the Serverless Cloud
Ian Massingham

More from Danilo Poccia (20)

Get Value from Your Data
Get Value from Your DataGet Value from Your Data
Get Value from Your Data
Danilo Poccia
Building Event-Driven Serverless Applications
Building Event-Driven Serverless ApplicationsBuilding Event-Driven Serverless Applications
Building Event-Driven Serverless Applications
Danilo Poccia
Connecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made SimpleConnecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made Simple
Danilo Poccia
Building Event-driven Serverless Apps
Building Event-driven Serverless AppsBuilding Event-driven Serverless Apps
Building Event-driven Serverless Apps
Danilo Poccia
An Introduction to AWS IoT
An Introduction to AWS IoTAn Introduction to AWS IoT
An Introduction to AWS IoT
Danilo Poccia
Event-driven (serverless) Applications
Event-driven (serverless) ApplicationsEvent-driven (serverless) Applications
Event-driven (serverless) Applications
Danilo Poccia
Machine Learning for Developers
Machine Learning for DevelopersMachine Learning for Developers
Machine Learning for Developers
Danilo Poccia
Masterclass Advanced Usage of the AWS CLI
Masterclass Advanced Usage of the AWS CLIMasterclass Advanced Usage of the AWS CLI
Masterclass Advanced Usage of the AWS CLI
Danilo Poccia
Cloud-powered Mobile Apps
Cloud-powered Mobile AppsCloud-powered Mobile Apps
Cloud-powered Mobile Apps
Danilo Poccia
Get Value From Your Data
Get Value From Your DataGet Value From Your Data
Get Value From Your Data
Danilo Poccia
Amazon Elastic File System (Amazon EFS)
Amazon Elastic File System (Amazon EFS)Amazon Elastic File System (Amazon EFS)
Amazon Elastic File System (Amazon EFS)
Danilo Poccia
AWS Mobile Hub Overview
AWS Mobile Hub OverviewAWS Mobile Hub Overview
AWS Mobile Hub Overview
Danilo Poccia
Data Analytics on AWS
Data Analytics on AWSData Analytics on AWS
Data Analytics on AWS
Danilo Poccia
Managing Containers at Scale
Managing Containers at ScaleManaging Containers at Scale
Managing Containers at Scale
Danilo Poccia
Amazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherAmazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better Together
Danilo Poccia
Amazon Aurora Let's Talk About Performance
Amazon Aurora Let's Talk About PerformanceAmazon Aurora Let's Talk About Performance
Amazon Aurora Let's Talk About Performance
Danilo Poccia
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API GatewayBuild a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Danilo Poccia
Amazon Aurora: Amazons New Relational Database Engine
Amazon Aurora: Amazons New Relational Database EngineAmazon Aurora: Amazons New Relational Database Engine
Amazon Aurora: Amazons New Relational Database Engine
Danilo Poccia
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API GatewayBuild a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Danilo Poccia
Infrastructure as Code: Manage your Architecture with Git
Infrastructure as Code: Manage your Architecture with GitInfrastructure as Code: Manage your Architecture with Git
Infrastructure as Code: Manage your Architecture with Git
Danilo Poccia
Get Value from Your Data
Get Value from Your DataGet Value from Your Data
Get Value from Your Data
Danilo Poccia
Building Event-Driven Serverless Applications
Building Event-Driven Serverless ApplicationsBuilding Event-Driven Serverless Applications
Building Event-Driven Serverless Applications
Danilo Poccia
Connecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made SimpleConnecting the Unconnected: IoT Made Simple
Connecting the Unconnected: IoT Made Simple
Danilo Poccia
Building Event-driven Serverless Apps
Building Event-driven Serverless AppsBuilding Event-driven Serverless Apps
Building Event-driven Serverless Apps
Danilo Poccia
An Introduction to AWS IoT
An Introduction to AWS IoTAn Introduction to AWS IoT
An Introduction to AWS IoT
Danilo Poccia
Event-driven (serverless) Applications
Event-driven (serverless) ApplicationsEvent-driven (serverless) Applications
Event-driven (serverless) Applications
Danilo Poccia
Machine Learning for Developers
Machine Learning for DevelopersMachine Learning for Developers
Machine Learning for Developers
Danilo Poccia
Masterclass Advanced Usage of the AWS CLI
Masterclass Advanced Usage of the AWS CLIMasterclass Advanced Usage of the AWS CLI
Masterclass Advanced Usage of the AWS CLI
Danilo Poccia
Cloud-powered Mobile Apps
Cloud-powered Mobile AppsCloud-powered Mobile Apps
Cloud-powered Mobile Apps
Danilo Poccia
Get Value From Your Data
Get Value From Your DataGet Value From Your Data
Get Value From Your Data
Danilo Poccia
Amazon Elastic File System (Amazon EFS)
Amazon Elastic File System (Amazon EFS)Amazon Elastic File System (Amazon EFS)
Amazon Elastic File System (Amazon EFS)
Danilo Poccia
AWS Mobile Hub Overview
AWS Mobile Hub OverviewAWS Mobile Hub Overview
AWS Mobile Hub Overview
Danilo Poccia
Data Analytics on AWS
Data Analytics on AWSData Analytics on AWS
Data Analytics on AWS
Danilo Poccia
Managing Containers at Scale
Managing Containers at ScaleManaging Containers at Scale
Managing Containers at Scale
Danilo Poccia
Amazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better TogetherAmazon API Gateway and AWS Lambda: Better Together
Amazon API Gateway and AWS Lambda: Better Together
Danilo Poccia
Amazon Aurora Let's Talk About Performance
Amazon Aurora Let's Talk About PerformanceAmazon Aurora Let's Talk About Performance
Amazon Aurora Let's Talk About Performance
Danilo Poccia
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API GatewayBuild a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Danilo Poccia
Amazon Aurora: Amazons New Relational Database Engine
Amazon Aurora: Amazons New Relational Database EngineAmazon Aurora: Amazons New Relational Database Engine
Amazon Aurora: Amazons New Relational Database Engine
Danilo Poccia
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API GatewayBuild a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Build a Server-less Event-driven Backend with AWS Lambda and Amazon API Gateway
Danilo Poccia
Infrastructure as Code: Manage your Architecture with Git
Infrastructure as Code: Manage your Architecture with GitInfrastructure as Code: Manage your Architecture with Git
Infrastructure as Code: Manage your Architecture with Git
Danilo Poccia

AWS Lambda

  • 1. AWS User Group Italy Meeting Rome AWSUGIT Meeting @ Roma
  • 2. AWS User Group Italy Meeting Rome AWS LAMBDA Danilo Poccia AWS Technical Evangelist @danilop
  • 5. SIMPLE PROBLEMS Thumbnail images as they arrive in a bucket Check email addresses stored in DynamoDB
  • 6. 1. Provision a fleet of proxy machines to capture data uploads. 2. For each upload, enqueue a job to process it. 3. Provision a second fleet of machines to read and process jobs. 4. Pick a deployment solution. 5. Plan capacity, accounting for fault tolerance, good long-term utilization, burst capability, etc. 6. Monitor 24x7x365 for capacity, health, security, etc. 7. Migrate to new instance types over time, keeping OS and language runtimes patched and up to date.
  • 8. WHAT ARE THE PRIMITIVES OF AN APPLICATION? Interactions Communicated via events Functions Data The Magic Happens at the Intersection of Functions, Events and Data (Pretty much everything else is glue or UI)
  • 9. Driving Data with Events and Functions Composable Build small functions, quickly Easy to update Add new functionality safely and easily Dynamic Data is always kept up to date Why dont we architect like this today? Complex Need to manage a full stack for every function Expensive Some functions run very infrequently
  • 10. AWS LAMBDA STATELESS, EVENT-DRIVEN COMPUTE CODE CALLED LAMBDA FUNCTIONS
  • 11. TRIGGERED BY EVENTS IN OTHER SERVICES ≒ Put an object in an Amazon S3 bucket ≒ Write to a DynamoDB table ≒ Message in an Amazon Kinesis stream
  • 12. EVENT-DRIVEN COMPUTING AWS LAMBDA IS THE CONNECTIVE TISSUE BETWEEN SERVICES
  • 13. Data Triggers: DynamoDB AWS Lambda 了DynamoDB Table and Stream Send Amazon SNS notifications Update another table
  • 14. Audit and Notify AWS API calls AWS CloudTrail Logs AWS Lambda 了Bucket events Amazon SNS notifications
  • 16. Data Triggers: Amazon S3 Amazon S3 Bucket Events AWS Lambda 了 Original image Thumbnailed image 1 2 3
  • 17. NO INFRASTRUCTURE TO MANAGE Focus on business logic, not infrastructure Upload your code, Amazon Lambda handles: ≒ Capacity ≒ Scaling ≒ Fault tolerance ≒ Monitoring ≒ Logging
  • 18. AUTOMATIC SCALING Each object uploaded to Amazon S3 is an event Each event is a Lambda request Lambda scales to match the event rate Dont worry about over or under provisioning Pay only for what you use
  • 19. FINE GRAINED PRICING Price compute time by 100ms (so even short jobs make sense) Low request charge No hourly, daily, or monthly minimums
  • 20. PREVIEW OPEN TO EVERYBODY: AWS.AMAZON.COM / LAMBDA SUPPORT FOR AMAZON S3 AND AMAZON KINESIS AMAZON DYNAMODB STREAMS PREVIEW