A $12 Hetzner Server vs an $80 AWS Setup for a Small Internal App

One client's small internal tool moved from an $82 AWS setup to a $12 Hetzner server. What the numbers looked like, and when AWS is the better call.

· 3 min read · Erik Kubica

The Default Cloud Setup

A client came to me last year to review their cloud infrastructure budget. They were paying $82.40 every month for a sensible, minimal AWS setup hosting an internal customer management tool used by twenty employees during business hours.

The application was a standard CRUD app storing customer records and dispatch schedules, handling roughly 12,000 HTTP requests per day, about one request every seven seconds.

Nobody had gone overboard. They had followed standard AWS tutorials: an Application Load Balancer terminating TLS, a modest EC2 instance in a public subnet, a managed single-AZ RDS PostgreSQL database, and default CloudWatch metric collection.

Even with that restrained setup, the managed-service pieces add up to a fixed monthly floor:

AWS Component Monthly Cost (USD) What It Did
Application Load Balancer $22.50 Terminated TLS and forwarded 1 req / 7 sec
EC2 Instance (t4g.small, 2 vCPU, 2 GB) $18.25 Ran a container waiting on database I/O
RDS PostgreSQL (db.t4g.micro, 20 GB gp3) $24.15 Stored 450 MB of business records
CloudWatch Metrics & Basic Logs $9.50 Basic host telemetry and error logs
Data Transfer & Public IPv4 Fee $8.00 AWS IPv4 address fee ($3.65) and egress
Total Baseline $82.40 This client's AWS footprint

The $12 Alternative

For this client, I took an afternoon, provisioned a Hetzner Cloud CX22 virtual private server in Falkenstein, Germany, and migrated their stack.

A usable production setup there costs roughly €11.50 per month at the time of writing (about $12 USD, including a dedicated IPv4 and automated daily snapshot backups). For that you get 2 vCPUs on an AMD EPYC processor, 4 GB of ECC RAM, 40 GB of NVMe storage, and 20 TB of monthly outbound traffic.

I installed PostgreSQL 16 directly on the host, compiled their backend into a single Go binary, put an Nginx reverse proxy in front of it with a free Let's Encrypt certificate, and wired the process to a standard systemd unit.

Here is what resource usage looked like on that box during peak Tuesday morning traffic:

$ free -m
               total        used        free      shared  buff/cache   available
Mem:            3912         512        2180          18        1220        3382
Swap:           2047           0        2047

$ uptime
 10:14:02 up 14 days,  2:41,  1 user,  load average: 0.04, 0.02, 0.00

The operating system, the PostgreSQL database, the Nginx reverse proxy, and the application binary used 512 MB of RAM combined, and the two vCPUs sat at around 4% utilization.

Latency

On the AWS setup, a request travels through an ALB, across the virtual private cloud, through container network namespaces, and over to RDS.

On the Hetzner box, Nginx talks to the application over a local Unix domain socket, and the application talks to PostgreSQL over 127.0.0.1:5432 on the loopback adapter.

Here is the total roundtrip time from a nearby European client:

$ curl -o /dev/null -s -w 'time_connect: %{time_connect}s | time_total: %{time_total}s\n' https://api.client.de/health
time_connect: 0.012s | time_total: 0.018s

Eighteen milliseconds total roundtrip. On AWS, their average p95 response time had been 82 ms. I suspect the extra network hops played a part, though I did not profile that separately.

This is one small internal app, so the comparison may not carry over to yours. If you need managed failover, multi-region setups, or a team that deploys many services every day, AWS's managed orchestration can easily be worth the money. For a small, steady application like this one, a single cheap server did the job for roughly 85% less per month, and it was faster for this client from day one. The trade-off is that backups, patching and monitoring are now on you, so it is worth being honest about whether you want that job.

Tell me what you need built

Usually a reply within a day, by email or WhatsApp.