Serverless API Architecture
Fully serverless architecture on AWS with Lambda functions, DynamoDB, and event-driven processing through SQS and SNS.
Services
- API Gateway (api_gateway) — Routes HTTP requests to Lambda functions — AWS API Gateway
- Auth / Cognito (external) — Manages user authentication and authorization — AWS Cognito
- DynamoDB (database) — Stores application data with single-digit ms latency — AWS DynamoDB
- S3 (external) — Stores static assets and file uploads — AWS S3
- SQS (queue) — Queues async tasks for background processing — AWS SQS
- SNS (queue) — Fans out notifications to multiple subscribers — AWS SNS
- CloudWatch (external) — Monitors logs, metrics, and alarms — AWS CloudWatch
Connections
- API Gateway → Auth / Cognito (sync_http)
- API Gateway → DynamoDB (db_access)
- API Gateway → S3 (sync_http)
- API Gateway → SQS (async_event)
- SQS → SNS (async_event)
- API Gateway → CloudWatch (sync_http)