Skip to main content

> SERVERLESS

Serverless Event-Driven Web & REST API

Zero-maintenance serverless request tier using API Gateway, Lambda, and DynamoDB On-Demand for bursty traffic with zero idle compute cost.

Mathematical Breakeven Inflection Curve

Cost-optimal below 8 million requests/month (~$120/mo). Above 25 million requests/month, Managed Containers (ECS Fargate) become 40% cheaper.

3 Maturity Tiers & Infrastructure Specifications

Component stack and cost steps from prototype to hyper-scale enterprise

1. Prototype / Early Stage0 - 1M requests/mo
$5 - $45 / mo
$0.045 / 1K requests
Stack Components:
  • AWS HTTP API Gateway
  • AWS Lambda (Node.js)
  • DynamoDB (On-Demand)
Cost Allocation:Resource Tagging (env=dev, service=api)
Autoscaling:Native AWS Concurrency
2. Scaled Production1M - 20M requests/mo
$80 - $950 / mo
$0.040 / 1K requests
Stack Components:
  • AWS REST API Gateway (Cache enabled)
  • AWS Lambda (ARM64 Graviton)
  • DynamoDB (Provisioned with Auto Scaling)
Cost Allocation:FOCUS Cost Allocation Tags per microservice
Autoscaling:Provisioned Concurrency + Target Tracking
3. High-Throughput Enterprise20M - 100M requests/mo
$950 - $3,800 / mo
$0.038 / 1K requests
Stack Components:
  • Cloudflare Workers API Router
  • AWS Lambda Regional Endpoints
  • DynamoDB Global Tables
Cost Allocation:FinOps Showback with Cloudflare Cost Allocation
Autoscaling:Global Anycast Routing

Key Cost Drivers

  • •API Gateway Invocations ($1.00/M requests)
  • •Lambda GB-seconds duration
  • •DynamoDB Write Request Units (WRU)

Waste Vulnerabilities

  • •WST-CMP-05: Overallocated Lambda memory
  • •WST-NET-01: DynamoDB traffic routed via NAT Gateway

Mitigation Playbooks

  • •AWS Lambda Power Tuning
  • •VPC Gateway Endpoints for DynamoDB
  • •Graviton2/3 ARM64 migration