AWS

Serverless Overview

Cập nhật 23/06/2026

  • #aws
  • #lambda

Serverless Overview

Maarek SAA-C03 Slides v45 — Chapter 17. Personal study extract.

Key content

  • Serverless Overview
  • What's serverless?
  • manage servers anymore…
  • anything that's managed: "databases, messaging, storage, etc."
  • it means you just don't manage / provision / see them
  • Serverless in AWS
  • Static content
  • REST API
  • Log in
  • S3 bucket API Gateway Cognito
  • Users
  • Lambda
  • DynamoDB
  • Why AWS Lambda
  • Amazon Lambda
  • Amazon EC2
  • Benefits of AWS Lambda
  • AWS Lambda language support
  • AWS Lambda Integrations
  • Main ones
  • CloudWatch Logs SNS Cognito SQS
  • S3 Kinesis API Gateway DynamoDB CloudFront
  • CloudWatch Events
  • EventBridge
  • Example: Serverless Thumbnail creation
  • New image in S3 AWS Lambda Function
  • Creates a Thumbnail
  • trigger
  • push
  • New thumbnail in S3
  • Metadata in DynamoDB
  • push
  • Image name
  • Image size
  • Creation date
  • etc…
  • Example: Serverless CRON Job
  • CloudWatch Events
  • EventBridge AWS Lambda Function
  • Perform a task
  • Trigger
  • Every 1 hour
  • AWS Lambda Pricing: example
  • AWS Lambda Limits to Know - per region
  • Lambda Concurrency and Throttling
  • Lambda Concurrency Issue
  • Application Load Balancer
  • API Gateway
  • SDK / CLI
  • 1000 concurrent
  • executions
  • THROTTLE!
  • THROTTLE!
  • Many users
  • Few users
  • Concurrency and Asynchronous Invocations
  • S3 bucket
  • New file event
  • New file event
  • New file event
  • concurrency available to process all
  • events, additional requests are
  • throttled.
  • system errors (500-series), Lambda
  • returns the event to the queue and
  • attempts to run the function again
  • for up to 6 hours.
  • exponentially from 1 second after
  • the first attempt to a maximum of
  • 5 minutes.
  • Cold Starts & Provisioned Concurrency
  • Reserved and Provisioned Concurrency
  • Lambda SnapStart
  • up to 10x at no extra cost for Java, Python & .NET
  • initialized state (no function initialization from
  • scratch)
  • initialized function
  • Lambda Invocation
  • Lifecycle Phases
  • SnapStart
  • disabled
  • invoke
  • Init
  • Invoke
  • Shutdown
  • SnapStart
  • enabled
  • invoke
  • Invoke
  • Shutdown
  • function is
  • pre-initialized
  • Lambda Lambda
  • Customization At The Edge
  • Lambda@Edge
  • CloudFront Functions & Lambda@Edge
  • Use Cases
  • CloudFront Functions
  • viewer
  • to the viewer
  • within CloudFront)
  • Origin
  • CloudFront
  • Client
  • Viewer
  • Request
  • Viewer
  • Response
  • Origin
  • Request
  • Origin
  • Response
  • Lambda@Edge
  • viewer
  • origin
  • the origin
  • the viewer
  • CloudFront replicates to its locations
  • Origin
  • CloudFront
  • Client
  • Viewer
  • Request
  • Viewer
  • Response
  • Origin
  • Request
  • Origin
  • Response
  • CloudFront Functions vs. Lambda@Edge
  • CloudFront Functions Lambda@Edge
  • Runtime Support JavaScript Node.js, Python
  • of Requests Millions of requests per second Thousands of requests per second

  • CloudFront Triggers - Viewer Request/Response - Viewer Request/Response
    • Origin Request/Response
      
  • Max. Execution Time < 1 ms 5 – 10 seconds
  • Max. Memory 2 MB 128 MB up to 10 GB
  • Total Package Size 10 KB 1 MB – 50 MB
  • Network Access, File System Access No Yes
  • Access to the Request Body No Yes
  • Pricing Free tier available, 1/6th price of @Edge No free tier, charged per request & duration
  • CloudFront Functions vs. Lambda@Edge - Use Cases
  • CloudFront Functions
  • cookies, query strings, URL) to create an
  • optimal Cache Key
  • request or response
  • tokens (e.g., JWT) to allow/deny requests
  • Lambda@Edge
  • libraries (e.g., AWS SDK to access
  • other AWS services)

…234 more lines in source.

Study checklist