Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

AWS S3 + Cloudfront. The initial setup can be a little finicky, but once you do get it setup, the rest of the time you only do an S3 sync from your local dir to the S3 bucket.

It will also be stupid fast (cloudfront is edge networks) + have ssl + it will not go down if you ever see a surge in traffic.

I have several of these and they work beautifully. As far as cost goes: 12$/domain per year + 0.5$/month for route53 zone + 0.2$/month for the actual traffic and hosting the content in S3. So it's under 2$/month for "enterprise grade"



> So it's under 2$/month for "enterprise grade"

Except that it isn't.

Only the domain, and to some extend, the S3 costs are the "fixed" cost that you can even predict at first. A surge in traffic will surely increase the egress data, and that is easily $0.05-0.10 per GB.

Cloudfront is one of the most expensive CDNs out there, and after 2-3 years of use, I came to realize how much I was wasting money on. CDNs often work quite flawlessly if you have a good cache busting mechanism, and I was paying a huge premium for what was essentially a set-once operation.


let’s talk numbers. how much egress traffic would you have?

at 10GB per month you pay 0.8$/month yes the traffic it costs extra, but a static website should not be GB (or even MB) in size. Also, if you have a lot of traffic you should learn how to control the caching aspect.

i would also challenge you to look at what egress traffic costs in other places.


For $work I reduced our cloudfront egress bill by over $2000 / month by putting cloudflare in front of cloudfront.

For a side project I likely wouldn't bother, but the pricing differential is really damn steep.


2000$ is a lot of traffic. way more than any side project would have.

I guess that if you are at a point where you are making decisions like you needed to you are out of the “easiest way to setup a static website” territory.

I would be curious what kind of content you were serving and how much traffic/what are the absolute $ numbers cloudfront vs cloudflare.


We ship about 800gb / day, half of which is image/jpeg.

Every byte that comes out of the cloudflare cache is a byte you don't pay for out of cloudfront, and cloudflare is only $20/mo.


I put my site on s3, gatsby deployed from GitHub actions automatically after merge with master, and put Cloudflare in front of it. Remember reading that Cloudflare might throttle the free plan sometime but never noticed! And it’s free so can’t complain!


Yes, I have a similar setup on Azure - Azure Storage account with an Azure CDN fronting it. It's less than a single US cent per month for the hosting and bandwidth costs atm.


I did this for a while, the ability to deploy to Azure from within Visual Studio Code was also quite fun.


OP literally pointed out AWS as the kind of thing they want to avoid because it's too complicated.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: