SlideShare a Scribd company logo
Paolo Latella
@LatellaPaolo

Serverless Architectures on
AWS
Topics
• AWS Serverless Building Block
• 3-Tier (Serverless) Architectures
• Logic Tier - AWS Lambda and Amazon API
Gateway
• Authentication and Authorization
• Security
• Agility
• XPeppers Use Case
Serverless
https://pbs.twimg.com/media/Cpx8XmGVIAEw2EI.jpg
AWS - Global
Infrastructure
Regions and number of AZ
New Region (Paris)
Edge Location (Milano)
AWS - Serverless Building Block
AWS
Lambda
Amazon
S3
Amazon
DynamoDB
Amazon
CloudFront
AWS
CodeCommit
AWS
CodeDeploy
AWS
CodePipeline
AWS
CodeBuild
Amazon
CloudWatch
AWS
CloudFormation
AWS IAM
AWS WAF
Amazon
Cognito
Amazon API
Gateway*
AWS Step
Functions
Amazon
SES
Amazon
SQS
Amazon
SNSSDK
Amazon
Kinesis
Amazon
Athena
AWS IoT
Amazon Machine
Learning
AWS - 3-Tier (Serverless) architecture
AWS
Lambda
Amazon
DynamoDB
Amazon API
Gateway
mobile client
Presentation
Logic (serverless) Data
Amazon
Cognito
Amazon
S3
Amazon
CloudFront
The Logic Tier - Amazon API
Gateway
Fully managed HTTPS service that makes it easy for developers
to create, publish, maintain, monitor, and secure APIs at any
scale.
• Low-Cost
• Performance
• API Monitoring
• API Lifecycle management
• Flexible Security Controls
• Cloudfront, ELB and Lambda Integration
The Logic Tier - AWS Lambda
Serverless compute service that runs your code in response to
events and automatically manages the underlying resources
• Completely Automated Administration
• Built-in Fault Tolerance
• Run Code at Edge Locations and Step Function (Re:Invent
2016)
• Pay-per-use
• Supports Java, Node.js, C#, and Python
• VPC Integration
Authentication & Authorization
Authentication
Authentication - Amazon Cognito
Cognito is a fully managed service for sign-up/sign-in
functionality and can scale to hundreds of millions of
users
Amazon Cognito
Amazon Cognito lets you easily add user sign-up and sign-in to
your mobile and web apps.
• Simple, secure, and low-cost authentication options
• Authenticate users on Facebook, Twitter, or Amazon
• Cognito Authentication Flow
• Custom Authentication Flow (AWS Lambda triggers)
• Enhanced security features, such as email and phone number
verification, and multi-factor authentication
Amazon Cognito - Custom Authentication
Flow
http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html
is user approved ?
(PreSignUP Trigger)
Authentication & Authorization
Authorization
Authorization
• AWS Identity and Access Management (IAM) is a web
service that helps you securely control access to AWS
resources
• Roles
• Policies
• AWS Security Token Services (STS) is a web service that
enables you to request temporary, limited-privilege credentials
for IAM
• Use action AssumeRoleWithWebIdentity for federation
Authorization - Web Identity Federation
http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_cognito.html
AssumeRoleWithWebIdentity
Authorization - API Gateway Access
Control
API Gateway supports multiple mechanisms of access control,
including metering or tracking API uses by clients using API
keys.
• Control Access for Managing an API
• IAM Policy (“Action": “apigateway:*”)
• Control Access for Invoking an API
• IAM Policy (“Action”: “execute-api:Invoke”)
• Custom Authorizers (Lambda functions)
• Amazon Cognito User Pools
Security
• AWS IAM and Cognito
• Authentication and Authorization
• AWS Cloudtrail
• Monitor All APIs Management (Cognito, Lambda, API Gateway, etc)
• AWS Cloudwatch
• Monitor All APIs Execution and related resources (Dynamodb, ELB, etc)
• AWS WAF (Web Application Firewall) and AWS Shield
• Access Control and DDoS Mitigation
• AWS Lambda
• Automate your security!
Security - always serverless
AWS
Lambda
Amazon
DynamoDB
Amazon API
Gatewaymobile client
Amazon
Cognito
Amazon
CloudFront
Amazon
CloudWatch
AWS IAM
AWS WAF
AWS Shield
Amazon
Route 53
AWS
Lambda
AWS
CloudTrail
alarm
Security Logic
Business Logic
Security - always serverless - compliance
AWS
Lambda
Amazon
DynamoDB
Amazon API
Gatewaymobile client
Amazon
Cognito
Amazon
CloudFront
Amazon
CloudWatch
AWS IAM
AWS WAF
AWS Shield
Amazon
Route 53
AWS
Lambda
AWS
CloudTrail
alarm
https://aws.amazon.com/compliance/services-in-scope/
Security Logic
Business Logic
AWS
CloudFormation
Agility
• Serverless Application Model (SAM)
• Define the application and its resources
• AWS CodeCommit
• Your source repository
• AWS CodeBuild
• Package your source code and SAM templates
• AWS CloudFormation
• Deploy your Infrastructure as Code
• AWS CodePipeline
• Orchestrate your application deployment.
All
Serverless
Agility - Serverless Application Model (SAM)
AWS
Lambda
Amazon
DynamoDB
Amazon API
Gateway*
AWS
CloudFormation
https://github.com/awslabs/serverless-application-model
AWS
CloudFormation
Amazon
CloudWatch
Agility - CI&CD
Code Build Test Provision Deploy Monitor
AWS
CodePipeline
AWS
CodeCommit
AWS
CodeBuild
AWS
Lambda
AWS
Lambda
Amazon API
Gateway*
SAM
Amazon
S3
Agility - CI&CD
Deploy
AWS
CodePipeline
AWS
Lambda
Amazon API
Gateway*
AWS Lambda Versioning
AWS Lambda Aliasing
AWS Lambda Env Variables
API Stage
API Stage Variables
API Swagger import/export
uid:password
token
token, reference, ID reference, ID
ID
value, reference
value, reference
score, reference
client OAuth2 API-gw Lambda DynamoDB
Trisp
Use Case - Flusso
lasso di tempo tra l’arrivo della richiesta dal client e l’invio della
risposta allo stesso
Use Case - Monitoring
Use Case - Costo API-Gateway
Costo totale = Costo chiamate API + Costo trasferimento + Costo
cache
Costo Trasferimento
Tariffe per il trasferimento di dati in uscita
di Amazon API Gateway
• 0,09 USD/GB per i primi 10 TB
• 0,085 USD/GB per i successivi 40 TB
• 0,07 USD/GB per i successivi 100 TB
• 0,05 USD/GB per i successivi 350 TB
Costo chiamate API
3,50 USD per milione di chiamate API
ricevute
EU-West-1
Costo Cache
• 0,5 GB = 0,020 USD/Ora
• 1,6 GB = 0,038 USD
• 6,1 GB = 0,200 USD
…
Use Case - Costo API Gateway
Costo Chiamate API
• 48.618 * 31 = 1.507.158 * 3,75 USD -> 5,275 USD/Mese
Costo Cache (0,5 GB)
• 0,020 USD/ora * 24 ore * 31 giorni = 14,88 USD/Mese
Costo trasferimento
• 48.618 * 512 Byte * 31 giorni * 0.09 USD = 0,064 USD/Mese
Costo Totale = 20,219 USD/Mese
* = Non considerando il Free Tier
EU-West-1
Use Case - Costo Lambda
Costo totale = Costo elaborazione + Costo richieste
Richieste
Il costo viene calcolato in base al numero
totale di richieste per tutte le funzioni.
Lambda conteggia una richiesta ogni
volta che avvia un'elaborazione in
risposta alla notifica di un evento o a una
chiamata Invoke. Il costo è di 0,20 USD
ogni milione di richieste (0,0000002
USD a richiesta). Il primo milione di
richieste ogni mese è gratuito
Elaborazione
La durata viene calcolata a partire dal
momento in cui viene avviata
l'esecuzione del codice e fino al
momento in cui viene restituito o
comunque terminato il codice,
arrotondata al decimo di secondo più
vicino. Il prezzo dipende dalla quantità di
memoria allocata per la funzione. Il
costo è di 0,00001667 USD per ogni
GB/secondo impiegato.
EU-West-1
Use Case - Costo Lambda
Costo Elaborazione
• Free Tier: 400.000 GB/secondo al mese
• Il costo dell'elaborazione mensile è 0,00001667 USD per GB/s
• Elaborazione (sec) = (48.618 * 99.98%) * 0.876 sec = 42581 sec
• Elaborazione (GB/s) = 42581 secondi * (512 MB / 1024) = 21.290 GB/s
• Costi Elaborazione = 0,00001667 USD * 21.290 * 31 = 10,964 USD/Mese*
Costo Richieste
• Free Tier: 1.000.000 richieste/mese
• Dalla richiesta successiva, il costo è di 0,20 USD ogni milione di richieste
• Costi Richieste 48.618 * 0,0000002 USD = 0,30 USD/Mese*
Costo Totale = 11,264 USD/Mese
* = Non considerando il Free Tier
EU-West-1
Use Case - Costo DynamoDB
Costo totale = Costo storage + Costo capacità + Costo
Trasferimento
Capacità Read/Write
Consente di specificare il throughput per
le richieste in lettura e scrittura che deve
raggiungere la propria tabella:
• Throughput scrittura: $0,00735 all'ora
ogni 10 unità di capacità in scrittura
• Throughput lettura: $0,00735 all'ora
ogni 50 unità di capacità in lettura
Storage
First 25 GB stored per month is free
$0,283 per GB al mese
successivamente
EU-West-1
Trasferimento
Trasferimento IN = $0,000 per GB
Trasferimento OUT = $0,090 per
GB
Use Case - Costo DynamoDB
Costo Storage
• Storage = 2.5 GB -> Costo = 0 USD/Mese*
Costo Capacità
• Totale RU = 50 -> Costo = $0.00735 * 24 ore * 31 giorni = 5,47 USD/Mese
• Totale WU = 10 -> Costo = $0.00735 * 24 ore * 31 giorni = 5,47 USD/Mese
Costo Trasferimento OUT
• 48.618 * 512 Byte * 31 = 0.718 GB/Mese -> Costo = 0**
Costo Totale = 10,94 USD/Mese
* = First 25 GB stored per month is free
** = Primo GB/mese is free
EU-West-1
Use Case - Totale
Costo Totale API Gateway = 20,219 USD/Mese
Costo Totale Lambda = 11,264 USD/Mese
Costo Totale Dynamo = 10,94 USD/Mese
Costo Totale ElasticSearch = 15 USD/Mese
Costo Altri servizi = 10 USD/Mese
Costo Totale = 67,423 USD/Mese
Reference
https://www.manning.com/b
ooks/aws-lambda-in-action
https://www.manning.co
m/books/serverless-
architectures-on-aws
http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-
user-identity-pools-working-with-aws-lambda-triggers.html
http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_
oidc_cognito.html
https://aws.amazon.com/compliance/services-in-scope/
https://github.com/awslabs/serverless-application-model
www.xpeppers.com
/xpepperssrl@xpeppers

More Related Content

What's hot

Bootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWSBootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWS
Amazon Web Services
 
Amazon Lightsail
Amazon LightsailAmazon Lightsail
Amazon Lightsail
Amazon Web Services
 
Architecting for High Availability - Pop-up Loft Tel Aviv
Architecting for High Availability - Pop-up Loft Tel AvivArchitecting for High Availability - Pop-up Loft Tel Aviv
Architecting for High Availability - Pop-up Loft Tel Aviv
Amazon Web Services
 
AWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant systemAWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant system
Naoya Hashimoto
 
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
Amazon Web Services
 
Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015
Amazon Web Services
 
AWS CloudFormation (February 2016)
AWS CloudFormation (February 2016)AWS CloudFormation (February 2016)
AWS CloudFormation (February 2016)
Julien SIMON
 
2017 AWSome day Taichung sharing
2017 AWSome day Taichung sharing2017 AWSome day Taichung sharing
2017 AWSome day Taichung sharing
Yu-Lin Huang
 
OTT on AWS – Build vs. Buy
OTT on AWS – Build vs. Buy OTT on AWS – Build vs. Buy
OTT on AWS – Build vs. Buy
Amazon Web Services
 
Introduction to AWS Batch
Introduction to AWS BatchIntroduction to AWS Batch
Introduction to AWS Batch
Amazon Web Services
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
Amazon Web Services
 
The Cloud as a Platform - By Jinesh Varia
The Cloud as a Platform - By Jinesh VariaThe Cloud as a Platform - By Jinesh Varia
The Cloud as a Platform - By Jinesh Varia
Amazon Web Services
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
Amazon Web Services
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
Julien SIMON
 
Dev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWSDev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWS
Shiva Narayanaswamy
 
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
Amazon Web Services
 
Leveraging Elastic Web Scale Computing with AWS
 Leveraging Elastic Web Scale Computing with AWS Leveraging Elastic Web Scale Computing with AWS
Leveraging Elastic Web Scale Computing with AWS
Shiva Narayanaswamy
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambda
Adam Book
 
What's New
What's NewWhat's New
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWSAWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
Amazon Web Services
 

What's hot (20)

Bootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWSBootcamp: Getting Started on AWS
Bootcamp: Getting Started on AWS
 
Amazon Lightsail
Amazon LightsailAmazon Lightsail
Amazon Lightsail
 
Architecting for High Availability - Pop-up Loft Tel Aviv
Architecting for High Availability - Pop-up Loft Tel AvivArchitecting for High Availability - Pop-up Loft Tel Aviv
Architecting for High Availability - Pop-up Loft Tel Aviv
 
AWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant systemAWS CloudFormation template with single & redundant system
AWS CloudFormation template with single & redundant system
 
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
Introduction to AWS and Cloud Computing - Module 1 Part 1 - AWSome Day 2017
 
Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015
 
AWS CloudFormation (February 2016)
AWS CloudFormation (February 2016)AWS CloudFormation (February 2016)
AWS CloudFormation (February 2016)
 
2017 AWSome day Taichung sharing
2017 AWSome day Taichung sharing2017 AWSome day Taichung sharing
2017 AWSome day Taichung sharing
 
OTT on AWS – Build vs. Buy
OTT on AWS – Build vs. Buy OTT on AWS – Build vs. Buy
OTT on AWS – Build vs. Buy
 
Introduction to AWS Batch
Introduction to AWS BatchIntroduction to AWS Batch
Introduction to AWS Batch
 
Introduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot InstancesIntroduction to Amazon EC2 Spot Instances
Introduction to Amazon EC2 Spot Instances
 
The Cloud as a Platform - By Jinesh Varia
The Cloud as a Platform - By Jinesh VariaThe Cloud as a Platform - By Jinesh Varia
The Cloud as a Platform - By Jinesh Varia
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)Deep Dive: Amazon Relational Database Service (March 2017)
Deep Dive: Amazon Relational Database Service (March 2017)
 
Dev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWSDev/Test Environment Provisioning and Management on AWS
Dev/Test Environment Provisioning and Management on AWS
 
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
Securing The AWS Cloud, Steve Riley, AWS Events, April 2010
 
Leveraging Elastic Web Scale Computing with AWS
 Leveraging Elastic Web Scale Computing with AWS Leveraging Elastic Web Scale Computing with AWS
Leveraging Elastic Web Scale Computing with AWS
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambda
 
What's New
What's NewWhat's New
What's New
 
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWSAWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
AWS January 2016 Webinar Series - Introduction to Deploying Applications on AWS
 

Similar to Serverless architectures on aws

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
Amazon Web Services
 
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
Amazon Web Services
 
AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)
Doguhan Uluca
 
Introduce AWS Lambda for newbie and Non-IT
Introduce AWS Lambda for newbie and Non-ITIntroduce AWS Lambda for newbie and Non-IT
Introduce AWS Lambda for newbie and Non-IT
Chitpong Wuttanan
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Amazon Web Services
 
Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Amazon Web Services
 
Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017
Amazon Web Services
 
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
Amazon Web Services
 
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
Amazon Web Services
 
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
 
Introduction to Aws lambda and build first application | Namespace IT
Introduction to Aws lambda and build first application | Namespace ITIntroduction to Aws lambda and build first application | Namespace IT
Introduction to Aws lambda and build first application | Namespace IT
namespaceit
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
Amazon Web Services
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless Architecture
Mikhail Prudnikov
 
NEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the EdgeNEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the Edge
Amazon Web Services
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
Amazon Web Services
 
Deep Dive on AWS Lambda
Deep Dive on AWS LambdaDeep Dive on AWS Lambda
Deep Dive on AWS Lambda
Amazon Web Services
 
Serverless Architecture Patterns
Serverless Architecture PatternsServerless Architecture Patterns
Serverless Architecture Patterns
Amazon Web Services
 
serverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdfserverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdf
Amazon Web Services
 
使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理
Amazon Web Services
 
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
Amazon Web Services
 

Similar to Serverless architectures on aws (20)

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
 
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
 
AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)AWS Lambda Presentation (Tech Talk DC)
AWS Lambda Presentation (Tech Talk DC)
 
Introduce AWS Lambda for newbie and Non-IT
Introduce AWS Lambda for newbie and Non-ITIntroduce AWS Lambda for newbie and Non-IT
Introduce AWS Lambda for newbie and Non-IT
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
 
Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017Building Serverless Web Applications - DevDay Austin 2017
Building Serverless Web Applications - DevDay Austin 2017
 
Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017Building Serverless Web Applications - DevDay Los Angeles 2017
Building Serverless Web Applications - DevDay Los Angeles 2017
 
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
Get the EDGE to scale: Using Cloudfront along with edge compute to scale your...
 
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...
 
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
 
Introduction to Aws lambda and build first application | Namespace IT
Introduction to Aws lambda and build first application | Namespace ITIntroduction to Aws lambda and build first application | Namespace IT
Introduction to Aws lambda and build first application | Namespace IT
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless Architecture
 
NEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the EdgeNEW LAUNCH! Bringing AWS Lambda to the Edge
NEW LAUNCH! Bringing AWS Lambda to the Edge
 
What's New with AWS Lambda
What's New with AWS LambdaWhat's New with AWS Lambda
What's New with AWS Lambda
 
Deep Dive on AWS Lambda
Deep Dive on AWS LambdaDeep Dive on AWS Lambda
Deep Dive on AWS Lambda
 
Serverless Architecture Patterns
Serverless Architecture PatternsServerless Architecture Patterns
Serverless Architecture Patterns
 
serverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdfserverless_architecture_patterns_london_loft.pdf
serverless_architecture_patterns_london_loft.pdf
 
使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理使用 AWS 無伺服器運算服務打造您的第一個語音助理
使用 AWS 無伺服器運算服務打造您的第一個語音助理
 
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
AWS re:Invent 2016: Building Complex Serverless Applications (GPST404)
 

More from Paolo latella

XPeppers e AWS
XPeppers e AWSXPeppers e AWS
XPeppers e AWS
Paolo latella
 
Data Analysis on AWS
Data Analysis on AWSData Analysis on AWS
Data Analysis on AWS
Paolo latella
 
Amazon Web Services and Docker
Amazon Web Services and DockerAmazon Web Services and Docker
Amazon Web Services and Docker
Paolo latella
 
Hybrid Cloud With AWS and Eucalyptus
Hybrid Cloud With AWS and EucalyptusHybrid Cloud With AWS and Eucalyptus
Hybrid Cloud With AWS and Eucalyptus
Paolo latella
 
Mobile app and disaster recovery with aws
Mobile app and disaster recovery with awsMobile app and disaster recovery with aws
Mobile app and disaster recovery with awsPaolo latella
 
Cloud Transcoding with Amazon Web Services
Cloud Transcoding with Amazon Web ServicesCloud Transcoding with Amazon Web Services
Cloud Transcoding with Amazon Web ServicesPaolo latella
 
Amazon Web Services and Interact - Workshop Giugno 2013
Amazon Web Services and Interact - Workshop Giugno 2013Amazon Web Services and Interact - Workshop Giugno 2013
Amazon Web Services and Interact - Workshop Giugno 2013
Paolo latella
 

More from Paolo latella (8)

XPeppers e AWS
XPeppers e AWSXPeppers e AWS
XPeppers e AWS
 
AWSUGIT-Promo
AWSUGIT-PromoAWSUGIT-Promo
AWSUGIT-Promo
 
Data Analysis on AWS
Data Analysis on AWSData Analysis on AWS
Data Analysis on AWS
 
Amazon Web Services and Docker
Amazon Web Services and DockerAmazon Web Services and Docker
Amazon Web Services and Docker
 
Hybrid Cloud With AWS and Eucalyptus
Hybrid Cloud With AWS and EucalyptusHybrid Cloud With AWS and Eucalyptus
Hybrid Cloud With AWS and Eucalyptus
 
Mobile app and disaster recovery with aws
Mobile app and disaster recovery with awsMobile app and disaster recovery with aws
Mobile app and disaster recovery with aws
 
Cloud Transcoding with Amazon Web Services
Cloud Transcoding with Amazon Web ServicesCloud Transcoding with Amazon Web Services
Cloud Transcoding with Amazon Web Services
 
Amazon Web Services and Interact - Workshop Giugno 2013
Amazon Web Services and Interact - Workshop Giugno 2013Amazon Web Services and Interact - Workshop Giugno 2013
Amazon Web Services and Interact - Workshop Giugno 2013
 

Recently uploaded

一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
hackersuli
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
CIOWomenMagazine
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
nhiyenphan2005
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
uehowe
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
Danica Gill
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 

Recently uploaded (20)

一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024[HUN][hackersuli] Red Teaming alapok 2024
[HUN][hackersuli] Red Teaming alapok 2024
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
Internet of Things in Manufacturing: Revolutionizing Efficiency & Quality | C...
 
Bài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docxBài tập unit 1 English in the world.docx
Bài tập unit 1 English in the world.docx
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
办理毕业证(UPenn毕业证)宾夕法尼亚大学毕业证成绩单快速办理
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
7 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 20247 Best Cloud Hosting Services to Try Out in 2024
7 Best Cloud Hosting Services to Try Out in 2024
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 

Serverless architectures on aws

  • 2. Topics • AWS Serverless Building Block • 3-Tier (Serverless) Architectures • Logic Tier - AWS Lambda and Amazon API Gateway • Authentication and Authorization • Security • Agility • XPeppers Use Case
  • 4. AWS - Global Infrastructure Regions and number of AZ New Region (Paris) Edge Location (Milano)
  • 5. AWS - Serverless Building Block AWS Lambda Amazon S3 Amazon DynamoDB Amazon CloudFront AWS CodeCommit AWS CodeDeploy AWS CodePipeline AWS CodeBuild Amazon CloudWatch AWS CloudFormation AWS IAM AWS WAF Amazon Cognito Amazon API Gateway* AWS Step Functions Amazon SES Amazon SQS Amazon SNSSDK Amazon Kinesis Amazon Athena AWS IoT Amazon Machine Learning
  • 6. AWS - 3-Tier (Serverless) architecture AWS Lambda Amazon DynamoDB Amazon API Gateway mobile client Presentation Logic (serverless) Data Amazon Cognito Amazon S3 Amazon CloudFront
  • 7. The Logic Tier - Amazon API Gateway Fully managed HTTPS service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. • Low-Cost • Performance • API Monitoring • API Lifecycle management • Flexible Security Controls • Cloudfront, ELB and Lambda Integration
  • 8. The Logic Tier - AWS Lambda Serverless compute service that runs your code in response to events and automatically manages the underlying resources • Completely Automated Administration • Built-in Fault Tolerance • Run Code at Edge Locations and Step Function (Re:Invent 2016) • Pay-per-use • Supports Java, Node.js, C#, and Python • VPC Integration
  • 10. Authentication - Amazon Cognito Cognito is a fully managed service for sign-up/sign-in functionality and can scale to hundreds of millions of users
  • 11. Amazon Cognito Amazon Cognito lets you easily add user sign-up and sign-in to your mobile and web apps. • Simple, secure, and low-cost authentication options • Authenticate users on Facebook, Twitter, or Amazon • Cognito Authentication Flow • Custom Authentication Flow (AWS Lambda triggers) • Enhanced security features, such as email and phone number verification, and multi-factor authentication
  • 12. Amazon Cognito - Custom Authentication Flow http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html is user approved ? (PreSignUP Trigger)
  • 14. Authorization • AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources • Roles • Policies • AWS Security Token Services (STS) is a web service that enables you to request temporary, limited-privilege credentials for IAM • Use action AssumeRoleWithWebIdentity for federation
  • 15. Authorization - Web Identity Federation http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_cognito.html AssumeRoleWithWebIdentity
  • 16. Authorization - API Gateway Access Control API Gateway supports multiple mechanisms of access control, including metering or tracking API uses by clients using API keys. • Control Access for Managing an API • IAM Policy (“Action": “apigateway:*”) • Control Access for Invoking an API • IAM Policy (“Action”: “execute-api:Invoke”) • Custom Authorizers (Lambda functions) • Amazon Cognito User Pools
  • 17. Security • AWS IAM and Cognito • Authentication and Authorization • AWS Cloudtrail • Monitor All APIs Management (Cognito, Lambda, API Gateway, etc) • AWS Cloudwatch • Monitor All APIs Execution and related resources (Dynamodb, ELB, etc) • AWS WAF (Web Application Firewall) and AWS Shield • Access Control and DDoS Mitigation • AWS Lambda • Automate your security!
  • 18. Security - always serverless AWS Lambda Amazon DynamoDB Amazon API Gatewaymobile client Amazon Cognito Amazon CloudFront Amazon CloudWatch AWS IAM AWS WAF AWS Shield Amazon Route 53 AWS Lambda AWS CloudTrail alarm Security Logic Business Logic
  • 19. Security - always serverless - compliance AWS Lambda Amazon DynamoDB Amazon API Gatewaymobile client Amazon Cognito Amazon CloudFront Amazon CloudWatch AWS IAM AWS WAF AWS Shield Amazon Route 53 AWS Lambda AWS CloudTrail alarm https://aws.amazon.com/compliance/services-in-scope/ Security Logic Business Logic AWS CloudFormation
  • 20. Agility • Serverless Application Model (SAM) • Define the application and its resources • AWS CodeCommit • Your source repository • AWS CodeBuild • Package your source code and SAM templates • AWS CloudFormation • Deploy your Infrastructure as Code • AWS CodePipeline • Orchestrate your application deployment. All Serverless
  • 21. Agility - Serverless Application Model (SAM) AWS Lambda Amazon DynamoDB Amazon API Gateway* AWS CloudFormation https://github.com/awslabs/serverless-application-model
  • 22. AWS CloudFormation Amazon CloudWatch Agility - CI&CD Code Build Test Provision Deploy Monitor AWS CodePipeline AWS CodeCommit AWS CodeBuild AWS Lambda AWS Lambda Amazon API Gateway* SAM Amazon S3
  • 23. Agility - CI&CD Deploy AWS CodePipeline AWS Lambda Amazon API Gateway* AWS Lambda Versioning AWS Lambda Aliasing AWS Lambda Env Variables API Stage API Stage Variables API Swagger import/export
  • 24. uid:password token token, reference, ID reference, ID ID value, reference value, reference score, reference client OAuth2 API-gw Lambda DynamoDB Trisp Use Case - Flusso lasso di tempo tra l’arrivo della richiesta dal client e l’invio della risposta allo stesso
  • 25. Use Case - Monitoring
  • 26. Use Case - Costo API-Gateway Costo totale = Costo chiamate API + Costo trasferimento + Costo cache Costo Trasferimento Tariffe per il trasferimento di dati in uscita di Amazon API Gateway • 0,09 USD/GB per i primi 10 TB • 0,085 USD/GB per i successivi 40 TB • 0,07 USD/GB per i successivi 100 TB • 0,05 USD/GB per i successivi 350 TB Costo chiamate API 3,50 USD per milione di chiamate API ricevute EU-West-1 Costo Cache • 0,5 GB = 0,020 USD/Ora • 1,6 GB = 0,038 USD • 6,1 GB = 0,200 USD …
  • 27. Use Case - Costo API Gateway Costo Chiamate API • 48.618 * 31 = 1.507.158 * 3,75 USD -> 5,275 USD/Mese Costo Cache (0,5 GB) • 0,020 USD/ora * 24 ore * 31 giorni = 14,88 USD/Mese Costo trasferimento • 48.618 * 512 Byte * 31 giorni * 0.09 USD = 0,064 USD/Mese Costo Totale = 20,219 USD/Mese * = Non considerando il Free Tier EU-West-1
  • 28. Use Case - Costo Lambda Costo totale = Costo elaborazione + Costo richieste Richieste Il costo viene calcolato in base al numero totale di richieste per tutte le funzioni. Lambda conteggia una richiesta ogni volta che avvia un'elaborazione in risposta alla notifica di un evento o a una chiamata Invoke. Il costo è di 0,20 USD ogni milione di richieste (0,0000002 USD a richiesta). Il primo milione di richieste ogni mese è gratuito Elaborazione La durata viene calcolata a partire dal momento in cui viene avviata l'esecuzione del codice e fino al momento in cui viene restituito o comunque terminato il codice, arrotondata al decimo di secondo più vicino. Il prezzo dipende dalla quantità di memoria allocata per la funzione. Il costo è di 0,00001667 USD per ogni GB/secondo impiegato. EU-West-1
  • 29. Use Case - Costo Lambda Costo Elaborazione • Free Tier: 400.000 GB/secondo al mese • Il costo dell'elaborazione mensile è 0,00001667 USD per GB/s • Elaborazione (sec) = (48.618 * 99.98%) * 0.876 sec = 42581 sec • Elaborazione (GB/s) = 42581 secondi * (512 MB / 1024) = 21.290 GB/s • Costi Elaborazione = 0,00001667 USD * 21.290 * 31 = 10,964 USD/Mese* Costo Richieste • Free Tier: 1.000.000 richieste/mese • Dalla richiesta successiva, il costo è di 0,20 USD ogni milione di richieste • Costi Richieste 48.618 * 0,0000002 USD = 0,30 USD/Mese* Costo Totale = 11,264 USD/Mese * = Non considerando il Free Tier EU-West-1
  • 30. Use Case - Costo DynamoDB Costo totale = Costo storage + Costo capacità + Costo Trasferimento Capacità Read/Write Consente di specificare il throughput per le richieste in lettura e scrittura che deve raggiungere la propria tabella: • Throughput scrittura: $0,00735 all'ora ogni 10 unità di capacità in scrittura • Throughput lettura: $0,00735 all'ora ogni 50 unità di capacità in lettura Storage First 25 GB stored per month is free $0,283 per GB al mese successivamente EU-West-1 Trasferimento Trasferimento IN = $0,000 per GB Trasferimento OUT = $0,090 per GB
  • 31. Use Case - Costo DynamoDB Costo Storage • Storage = 2.5 GB -> Costo = 0 USD/Mese* Costo Capacità • Totale RU = 50 -> Costo = $0.00735 * 24 ore * 31 giorni = 5,47 USD/Mese • Totale WU = 10 -> Costo = $0.00735 * 24 ore * 31 giorni = 5,47 USD/Mese Costo Trasferimento OUT • 48.618 * 512 Byte * 31 = 0.718 GB/Mese -> Costo = 0** Costo Totale = 10,94 USD/Mese * = First 25 GB stored per month is free ** = Primo GB/mese is free EU-West-1
  • 32. Use Case - Totale Costo Totale API Gateway = 20,219 USD/Mese Costo Totale Lambda = 11,264 USD/Mese Costo Totale Dynamo = 10,94 USD/Mese Costo Totale ElasticSearch = 15 USD/Mese Costo Altri servizi = 10 USD/Mese Costo Totale = 67,423 USD/Mese

Editor's Notes

  1. A user pool is integrated with an API as a method authorizer. When calling the methods with such an authorizer enabled, an API client includes in the request headers the user's identity token provisioned from the user pool. API Gateway then validates the token to ensure it belongs to the configured user pool and authenticates the caller before passing the request to the back end.
  2. https://aws.amazon.com/compliance/services-in-scope/
  3. This post shows you how to leverage AWS services to create a continuous deployment pipeline for your serverless applications. You use the Serverless Application Model (SAM) to define the application and its resources, CodeCommit as your source repository, CodeBuild to package your source code and SAM templates, AWS CloudFormation to deploy your application, and CodePipeline to bring it all together and orchestrate your application deployment.
  4. publish-version: Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication invoke: --qualifier (string) You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
  5. https://www.manning.com/books/serverless-architectures-on-aws