← Back to portfolio Portfolio Post

Building and testing a 3-tier ERP on Kubernetes with Northflank

I took a classic AWS 3-tier architecture from my cloud computing class and rebuilt it on Northflank, a platform that runs on Kubernetes. Then I load-tested it, probed its security, and deployed a full-stack user-management app on it.

The goal

Our lecture diagram showed a web tier, an app tier and a database tier, with a VPC, two availability zones, a load balancer and an office-only VPN. I wanted to see how much of that I could build for free, and where the limits are.

What I built

What I measured

35 / 25
Load balancing: 60 requests split across the two pods
~270 ms
TCP connect from Colombo to London — mostly distance, not a slow server
~260 req/s
Throughput at 100 concurrent users on a very small free plan

Security audit: valid TLS 1.2/1.3 and HTTPS redirects, but missing security headers and rate limiting, which I then fixed in the app's config.

The throughput number reflects my home connection and the free plan more than the platform's ceiling, and the latency is dominated by the distance between Colombo and London.

What I learned

Stack

Northflank Kubernetes Docker Next.js Auth.js Prisma PostgreSQL Bash ab wrk