Lurker News
This is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.

Comments (487) 172 threads

Show all comments

Showing thread 8 of 172

rantwasp4 replies#
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"

Ayesh1 reply#
> 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.

rantwasp1 reply#
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.

danielheath2 replies#
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.

Continue this thread — 2 replies

Arnavion1 reply#
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.
iamacyborg#
I did this for a while, the ability to deploy to Azure from within Visual Studio Code was also quite fun.
ramraj07#
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!
stevage#
OP literally pointed out AWS as the kind of thing they want to avoid because it's too complicated.