ABC1 Serverless Order Hub
Full-Stack Serverless Node.js 20 + DynamoDB
Problem Statement & Investigation
Traditional relational databases incur constant hourly costs even when traffic drops to zero overnight. For occasional and variable-traffic applications, an architectural model was required that scales to zero cost while delivering sub-20ms transactional writes.
By organizing orders, customers, and inventory items into a single DynamoDB table using composite partition/sort keys, we can satisfy all primary access patterns within single-digit millisecond latency without running persistent database instances.
System Runtime Flow
Client requests hit Cloudflare wildcard DNS (*.symmetriccloud.com) -> CloudFront CDN (d31o4mufv33k12.cloudfront.net) with CloudFront Function 2.0 rewriting host header to /demos/abc1/index.html in 0.4ms.
REST operations route to AWS API Gateway HTTP APIs with CORS validation and route-level rate limiting.
Node.js 20 Lambda functions execute order validation and atomic state updates inside a minimal 512MB memory profile with sub-15ms warm invocation.
Transactions write to Amazon DynamoDB using conditioned put operations (`attribute_not_exists`) to prevent duplicate orders.
Architecture Decision Records (ADRs)
Failure-Mode & Resilience Analysis
Key Engineering Takeaways
- CloudFront Function edge rewrites eliminate the need for costly separate CDN distributions for each subdomain.
- Single-table DynamoDB requires front-loaded query design effort but delivers unwavering predictability at scale.
- GitHub Actions deployment directly to S3 prefixes combined with instant CloudFront invalidation achieves <45s deploy cycle times.
Empirical Benchmarks
Technology Primitives
- frontend
- React 19 + Vite
- backend
- Node.js 20 Lambda
- database
- DynamoDB (on-demand)
- infra
- Terraform + CloudFront + OAC
Architecture Tags
Active Live Subdomain · GitHub CI/CD Automated. Operational lifecycle commands (Deploy, Scale, Destroy) and raw cloud credentials remain sealed in the private control plane.