A startup wants a REST API that costs $0 when idle and scales to thousands of requests/sec without ops overhead. They store JSON documents and need sub-50ms reads.
Key Constraints
Serverless — no servers to manage
Pay-per-request pricing
JSON document storage
Sub-50ms read latency
Reference Architecture (interactive 3D)
🖱️ Drag to rotate · 📜 Scroll to zoom
Loading diagram...
Fully Serverless Reference
1Route 53 → CloudFront with two origins: S3 for static SPA, API Gateway for /api/*.
2Lambda function per route (better security boundaries and per-route metrics).
3DynamoDB on-demand mode = zero capacity planning, pays per request.
4Add DAX in front of DynamoDB if you need sub-5ms reads at scale.
5Use a Lambda authorizer or Cognito authorizer at API Gateway — not in Lambda code.
6CloudWatch Logs for each Lambda; X-Ray for end-to-end tracing.