Skip to main content
Cloud Architecture Kata

Café AWS ArchitectureEvolution

From a €68/month single VPC for a local coffee shop to a €150,000/month global platform capable of serving 10 million customers per day across 35,000+ stores.

€68

V2 Monthly Cost

€150K

Target Monthly Cost

3,000×

Cost Efficiency Gain

99.999%

Target SLA

01

// Business Scenario & Growth

Frank and Martha opened their first café with zero IT budget. Their daughter Sofía managed a basic PHP website and online orders. This project traces their architecture through five growth stages — each driven by real business events: a TikTok viral post, a Valentine's Day rush, a franchise expansion, and ultimately the dream of competing at Starbucks scale.

StageYearStoresCustomers/DayRevenue/DaySLACost/Month
Local Café1180-150€500-1,20095%€68
Growing21300-500€2,100-4,50099%€140
Regional Brand33-51,500-3,000€12,000-27,00099.9%€400
National Chain420-5010,000-25,000€80,000-225,00099.95%€750
Starbucks Scale5+35,000+10,000,000~$108.7M99.999%€150,000
02

// Architecture Evolution

01V2: VPC with 3-Layer Isolation
V2 Architecture Diagram

First AWS architecture: VPC with Public, Private App, and Private DB subnets. EC2 t3.micro, RDS MariaDB Single-AZ, ALB, NAT Gateway, and Secrets Manager. ~€68/month.

02V3/V4: Multi-AZ with Auto Scaling & IaC
V3/V4 Architecture Diagram

High availability across two AZs with ALB Cross-AZ, ASG (min=2, max=8), RDS Multi-AZ, dual NAT Gateways, Route 53 failover, and CloudFormation. ~€140/month.

03V5: Decoupled with SNS + SQS + Workers
V5 Architecture Diagram

Asynchronous order processing: CloudFront + WAF → ALB → Web Tier → SNS → SQS queues → Worker ASG → RDS. ElastiCache Redis for 80% cache hit ratio. ~€400/month.

04V6: Hybrid Multi-Region Serverless
V6 Architecture Diagram

Hybrid model: EU monolith (EC2 PHP + RDS) coexists with US serverless stack (API Gateway + Lambda + DynamoDB Global Tables). ~€750/month.

05V7: 5-Layer Microservices (National Chain)
V7 Architecture Diagram

Five specialized microservices on ECS Fargate across 3 regions: Edge → API+Auth → Compute → Data → Observability. Aurora PostgreSQL Global, App Mesh, Shield Advanced. ~€3,000/month.

06Target: Starbucks Scale (35,000+ Stores)
Target Architecture Diagram

Global platform: 15+ regions, 15+ microservices, S3 Data Lake, Transit Gateway + Direct Connect, AWS Organizations + Control Tower, GuardDuty + Macie. ~€150,000/month.

03

// Five-Year Evolution Summary

VersionStoresCustomers/DaySLAArchitectureCost/MonthCost/Transaction
V1-V2115095%Monolith€68€0.15
V3-V4150099%Multi-AZ HA€140€0.09
V55300099.5%Decoupled€400€0.04
V650100K99.9%Serverless + Multi-Region€750€0.002
V750500K99.95%Microservices€3,000€0.001
Target35K10M99.999%Global Platform€150K€0.00005

Cost per transaction dropped 3,000× — from €0.15 in V2 to €0.00005 at Target.

04

// Key Architectural Decisions

05

// Cost Analysis & ROI

The total infrastructure cost grows from €68/month to €150,000/month, but the cost per transaction drops 3,000×. In V2, every coffee order cost Frank 15 cents in infrastructure. At Target, it costs 0.005 cents.

€68

V2 Monthly Cost

66% less than on-premise server

€750

V6 Monthly Cost

0.01% of €225K daily revenue

3,000×

Cost Efficiency Gain

€0.15 → €0.00005 per transaction

V6 Serverless Stack Breakdown (~$820 / €750)

API Gateway HTTP API

UberEats + Deliveroo + Franchise + Mobile APIs

$135/month

Lambda (Loyalty + Catalog + Reporting)

Pay-per-use compute

$85/month

DynamoDB On-Demand (2 tables)

Auto-scaling NoSQL

$200/month

Cognito (400K users)

Identity and access management

$165/month

EC2 + ALB + NAT (Core)

PHP monolith core

$142/month

RDS Multi-AZ + Read Replica

Relational data persistence

$195/month

Third-party API infrastructure generates ~€80,000 in monthly orders at a cost of $135 — an ROI of 59,000%.

Conclusion

From the need to survive to the need to lead the global market. Architecture is not a list of AWS services — it is a series of decisions that balance cost, performance, security, and reliability. Frank and Martha started with €80/month and a dream. Today they have a platform that scales to 35,000 stores without redesign. That is software architecture.