HACKER Q&A
📣 EGreg

Why pay for Cloud Hosting if I can just use Cloudflare Tunnels for free?


I'm paying thousands of dollars a year for AWS when it seems to me I could just buy a computer and a couple solid state drives, and host locally.

Now, normally, my ISP would block port 80 or discourage servers, but the key to all this is Cloudflare Tunnels. It's is even better than SSH-based tunneling or port forwarding. You install a service on your machines which opens encrypted outbound connections and then you can literally tunnel all your web servers, on all the ports, thorough that. If a connection drops, it will just reopen it.

  You own, don't rent a cloud.
  You own the compute, not a fraction of it.
  You manage the data, locally.
  You have a strong CDN for caching.
And best of all, it can be totally free, the free tier of CloudFlare is good enough for any startup.

Any infrastructure that you actually don't want to pay upfront for, e.g. GPUs, you can just use any external service and just pay as you go.

So, why pay for AWS at all, if you're starting on a new project? Just host locally! No?

I should also mention that AWS, GCP etc. have similar servics, like AWS PrivateLink and Google Cloud VPN and Azure VPN Gateway.

PS: by having multiple machines in multiple locations with gigabit connections, and a Galera multi-master MySQL setup, you can achieve uptime guarantees comparable to cloud compute instances probably.

PPS: you can use CloudFlare workers and CDN to intercept most traffic to your machine at the edge, and use it mostly as an origin server and API server for people who entered a credit card or connected their crypto wallet


  👤 re-thc Accepted Answer ✓
> I'm paying thousands of dollars a year for AWS when it seems to me I could just buy a computer and a couple solid state drives, and host locally.

What happens when:

- there's a power outage?

- you trip the cable?

- a hardware failure occurs?

- your local ISP's IP is blocked or banned and you have no control over it?

- you have limited upload / download where you are (depends on country)

- your Internet is out or just fails to Cloudflare

And many more...


👤 more_corn
I run my own servers. I have a hell of a power bill but it’s way cheaper than AWS. My servers would probably cost $2000/mo on demand. Of course any workloads I need to be reliable I run in the cloud.

👤 nik736
This concept is not new. What people also miss is that you can simply rent dedicated servers instead of going with AWS. Often times the cloud only gets compared to colo, but renting dedicated servers is actually way cheaper and you still don't have to care about hardware, power, networking, etc.

👤 gostsamo
On prem always has been an option. Check why people preferred cloud for a time and decide what your tradeoffs are.