🏗️ Infrastructure Architecture — Hostinger KVM 8 + AWS Lambda Failover

👥
USERS
Internet Traffic
DNS query
⚡ AWS ROUTE 53
🔍 Health Checks 🔄 DNS Failover Policy ⏱ Ping every 30s
Normal traffic
Failover only
🟢 PRIMARY — Hostinger KVM 8
$19.99/mo · 8 vCPU · 32 GB RAM · 400 GB NVMe SSD
🐳 Docker Host — All 7 services containerised
Clinician-Agent
m5.xlarge equiv.
Summarizer-Agent
t2.medium equiv.
stance-dashboard
m5.xlarge equiv.
prognosis-classifier
t2.small equiv.
stance-dashb
t2.medium equiv.
one-view-pipe
t2.micro equiv.
⚠ Failover only — Hostinger unavailable
customer-agent
t2.medium · routes to Lambda when primary down
🟠 FAILOVER — AWS Lambda (Cold Standby)
$0 when idle · Pay-per-use only · Auto-activated by Route 53
🔀 API Gateway
λ Clinician-Agent
λ stance-dashboard
λ stance-dashb
λ customer-agent
λ Summarizer-Agent
λ prognosis-classifier
λ one-view-pipe
📬 SQS Queue — long-running agent task chunking
⏱ Failover Time
60 – 90 seconds
Auto DNS switch
🗄️ Shared Database
RDS / DynamoDB
read / write state — shared by both sides
Legend
Normal primary path
Failover path (auto-triggered)
Shared persistent data