Pattern · No servers to manage

Serverless Architecture

Run code without provisioning infrastructure. Scale to zero. Pay only for what executes.

SERVERLESS ARCHITECTURE Client Browser / App API Gateway REST / WebSocket Lambda Business Logic EventBridge Event Bus DynamoDB NoSQL Store S3 Object Store Cognito Auth / JWT CloudWatch · X-Ray Observability Scale to zero · Pay per invocation · No server management

Overview

Serverless means the cloud provider manages all infrastructure. You write functions, define triggers, and the platform handles scaling, patching, and availability. Scale to zero when idle — no traffic, no cost.

Core Components

API Gateway

Managed HTTP/WebSocket endpoint. Routes requests to Lambda. Handles auth, throttling, and caching.

Lambda

Runs your code in response to events. 15 min max. Supports Python, Node, Java, Go, and more.

DynamoDB

Serverless NoSQL. On-demand capacity — no provisioning. Scales with Lambda automatically.

EventBridge

Event bus for decoupled serverless workflows. Schedule events, route by pattern, fan-out.

Step Functions

Orchestrate Lambda functions into workflows. Visual state machines. Built-in retries and error handling.

Cognito

Managed auth — user pools, JWT tokens, social login. No auth server to run.

When Serverless Wins

Watch Out For

References

AWS Serverless Workshops

Hands-on workshops covering Lambda, API Gateway, DynamoDB, and more

GitHub

Terraform Lambda Module

Production-ready Lambda function configuration with IAM, VPC, and monitoring

GitHub

Well-Architected Serverless Lens

Five-pillar guidance specifically for serverless workloads

AWS Docs