Section 19: Serverless overview Flashcards
(58 cards)
Lambda pricing model
Per request and compute time
With Lambda how can you improve CPU and network
increase ram
AWS lambda supports these two languages
Node.js
Python
Main Lambda integrations
API Gateway
Kinesis
DynamoDB
S3
CloudFront
CloudWatch events
CloudWatch logs
SNS
SQS
Cognito
Lambda limits per region for memory allocation
128mb-10gb(1mb increments)
Lambda execution limits per region for max execution time
900 seconds(15 minutes)
Lambda execution limits per region for variables
4kb
Lambda execution limits per region for temp disk capacity
512mb to 10gb
Lambda execution limits per region for concurrent executions
1000(can be increased)
Lambda deployment limits per region for compressed deployment size
50mb
Lambda deployment limits per region for uncompressed deployment size
250mb
With lambda throttling synchronous invocation throttle will return this error
429
With lambda throttling asynchronous invocation throttle will return this error
retry automatically and then go to DLQ
With aws lambda this type of concurency can cause latency with new requests
cold start
With aws lambda you can use this concurrency to avoid cold starts
provisioned concurrency
A feature that improves your lambda functions performance to to 10x at no extra cost for java, python & .net
SnapStart
Two types of edge functions that cloudfront provides
cloudfront functions
Lamda@Edge
What type of requests from a client does cloudfront functions support?
Viewer request
Viewer response
What type of requests from a client does Lambda@Edge support?
Viewer request
Viewer response
Origin Request
Origin Response
Runtimes supported by CloudFront functions
Javascript
Runtimes supported by Lamda@Edge
Node.js
Python
Difference between CloudFront functions and Lamda@Edge in terms of # of requests per second
Cloudfront Functions = millions
Lambda@Edge = thousands
Cloudfront functions use cases
Cache Key normalization
Header manipulation
URL rewrites
Request authentication
Lamda2Edge use cases
Adjustable CPU or memory
3rd party code libraries
Network access to use external services for processing