AWS Serverless vs Kubernetes: A Cost & Scaling Post-Mortem for Multi-Tenant SaaS
Why we migrated high-throughput retail endpoints to AWS Lambda & DynamoDB, reducing cloud operational overhead by 48%.
Production Architecture Benchmark Targets
The Fixed Overhead of Over-Provisioned Kubernetes
Maintaining dedicated EKS EC2 worker nodes for retail workloads that experience extreme peaks during afternoon sales hours resulted in paying for 70% unused compute during overnight and morning troughs.
Serverless Event Architecture with Single-Table DynamoDB
We migrated POS transaction processing to HTTP API Gateway, ARM64 Graviton-powered Lambda functions, and single-table DynamoDB, achieving true pay-per-execution economics.
- Zero base cost when registers are closed; infinite automated scaling during flash sales
- Sub-15ms P99 latency with DynamoDB global secondary indexes and DAX caching
- Elimination of OS patching, security kernel updates, and cluster version upgrades
System Dynamics & Execution
Retail checkout traffic fluctuates wildly between standard weekday mornings and Black Friday rushes. Running self-managed EKS clusters required DevOps engineers to maintain node groups, ingress controllers, and auto-scaling buffers that burned budget when stores were closed. Transitioning to event-driven serverless architecture using API Gateway, Lambda, and single-table DynamoDB allowed ZamNexus to scale instantaneously with zero idle infrastructure costs.
Step-by-step data and logic flow.
The pipeline in order, from the first event to the final posting.
Step 1 of 4
01HTTP API Gateway
Lightweight API Gateway validates JWT tenant bearer tokens with sub-10ms ingress overhead.
Step 2 of 4
02ARM64 Lambda Micro-Execution
Compiled Go/Rust functions initialize in < 45ms using AWS SnapStart and execute transactions in 18ms.
Step 3 of 4
03Single-Table DynamoDB
Transactions write to partition keys scoped by tenant and store ID with single-digit millisecond SLA.
Step 4 of 4
04DynamoDB Streams to Analytics
Change streams fan out to analytics data lakes and downstream accounting ledgers without load on primary tables.
SaaS Product Development
Turn a product idea or internal tool into a secure multi-tenant SaaS product customers pay for.
See the serviceLet's talk
Want this working in your organisation?
Send a short brief and a senior engineer will reply within one business day.

