Live data from Hacker News

Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

medium.com

11–20 of 64 posts

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#11

Spaces + BunnyCDN is even cheaper. ;) $6/month = 250GB of static websites + domain registration fees. If you want to get really cheap, OVH's cloud storage is basically free but you lose https. ($.01/GB of traffic/storage roughly)

Link for Spaces? Couldn't search it since was fairly generic term.

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#12
post #11

Spaces + BunnyCDN is even cheaper. ;) $6/month = 250GB of static websites + domain registration fees. If you want to get really cheap, OVH's cloud storage is basically free but you lose https. ($.01/GB of traffic/storage roughly)

Link for Spaces? Couldn't search it since was fairly generic term.

https://www.digitalocean.com/products/spaces/

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#13
post #11

Spaces + BunnyCDN is even cheaper. ;) $6/month = 250GB of static websites + domain registration fees. If you want to get really cheap, OVH's cloud storage is basically free but you lose https. ($.01/GB of traffic/storage roughly)

Link for Spaces? Couldn't search it since was fairly generic term.

Sorry. Spaces = Digital Ocean's Spaces product. $5/month. Park a CDN in front of it with Edge rules and you get a similar setup.

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#14
post #3
post #2

why can't he use the free cloudflare? A static website cached by cloudflare seems very vanilla. Also, why S3? this seems very easy to do with Linode or anything else similarly cheap or cheaper ($20 gets you a KVM VPS with 2 Gb nowadays) Unless you have to regenerate constantly, all it needs is nginx, to serve the pages to Cloudflare edges when thry drop out of the cache

I was previously using Cloudflare in conjunction with a Linode server. The disadvantage of this, however, is that you need to ensure that one server never goes down otherwise anyone hitting a cold cache would see the site down. Also, why do you need a server at all? If you are doing nothing but serving static files then why incur the overhead of maintaining LetsEncrypt certificates and writing Nginx config files? AWS…

Sure! here are my counter thoughts: What if your site changes every 5 minutes, and is about 100Mb?

12x24x100= lots of mb per day

S3 costs (if only for the bandwidth) will be greater than a server with a fair share unlimited connection

Also, cloudfront non free plans will kill you - again because of the bandwith.

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#15
post #5
post #2

why can't he use the free cloudflare? A static website cached by cloudflare seems very vanilla. Also, why S3? this seems very easy to do with Linode or anything else similarly cheap or cheaper ($20 gets you a KVM VPS with 2 Gb nowadays) Unless you have to regenerate constantly, all it needs is nginx, to serve the pages to Cloudflare edges when thry drop out of the cache

S3 is going to be more reliable than anything you can reasonably be expected to administrate yourself, and it's cheaper as well. It's also supported by all CI tools, so you just script the deployment based on git commits.

My linode hasn't been updated for years, still runs nginx just fine. port knocking means little risks of intrusion, as ssh is on a non standard port too.

My deployment is shell scripts launched by systemd timers

Instead of downvoting, can someone please explain why this setup that is stable is not up to whatever standards?

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#16
post #14
post #3

Earlier quoted context omitted.

I was previously using Cloudflare in conjunction with a Linode server. The disadvantage of this, however, is that you need to ensure that one server never goes down otherwise anyone hitting a cold cache would see the site down. Also, why do you need a server at all? If you are doing nothing but serving static files then why incur the overhead of maintaining LetsEncrypt certificates and writing Nginx config files? AWS…

Sure! here are my counter thoughts: What if your site changes every 5 minutes, and is about 100Mb? 12x24x100= lots of mb per day S3 costs (if only for the bandwidth) will be greater than a server with a fair share unlimited connection Also, cloudfront non free plans will kill you - again because of the bandwith.

> What if your site changes every 5 minutes, and is about 100Mb?

This is probably an exceptional rate of change for the _vast_ majority of static sites.

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#17
post #16
post #14

Earlier quoted context omitted.

Sure! here are my counter thoughts: What if your site changes every 5 minutes, and is about 100Mb? 12x24x100= lots of mb per day S3 costs (if only for the bandwidth) will be greater than a server with a fair share unlimited connection Also, cloudfront non free plans will kill you - again because of the bandwith.

> What if your site changes every 5 minutes, and is about 100Mb? This is probably an exceptional rate of change for the _vast_ majority of static sites.

> This is probably an exceptional rate of change for the _vast_ majority of static sites.

I also doubt that many static sites have much "overhead" related to maintaining nginx config files and Let's Encrypt certificates.

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#19
post #15
post #5

Earlier quoted context omitted.

S3 is going to be more reliable than anything you can reasonably be expected to administrate yourself, and it's cheaper as well. It's also supported by all CI tools, so you just script the deployment based on git commits.

My linode hasn't been updated for years, still runs nginx just fine. port knocking means little risks of intrusion, as ssh is on a non standard port too. My deployment is shell scripts launched by systemd timers Instead of downvoting, can someone please explain why this setup that is stable is not up to whatever standards?

Most likely your "hasn't been updated for years". Given all the security vulnerabilities that have been disclosed, including things like Heartbleed, I hope you meant your "setup hasn't been changed in years".

Re: Scaling Your Static Site to a Global Market for a Fraction of the Cost on AWS

#20
post #3
post #2

why can't he use the free cloudflare? A static website cached by cloudflare seems very vanilla. Also, why S3? this seems very easy to do with Linode or anything else similarly cheap or cheaper ($20 gets you a KVM VPS with 2 Gb nowadays) Unless you have to regenerate constantly, all it needs is nginx, to serve the pages to Cloudflare edges when thry drop out of the cache

I was previously using Cloudflare in conjunction with a Linode server. The disadvantage of this, however, is that you need to ensure that one server never goes down otherwise anyone hitting a cold cache would see the site down. Also, why do you need a server at all? If you are doing nothing but serving static files then why incur the overhead of maintaining LetsEncrypt certificates and writing Nginx config files? AWS…

We use Azure and we have multiple sites we're getting that visitor count (or more, for PPC campaigns) for way less than $7/mo using Cloudflare/Azure Edge/Web Apps. This might not work for a single site, but multiple sites on a service plan we can handle way more visits per site (especially if it were static) for $2-$3/site/mo and we could auto scale if needed though that would raise that number, it would not exceed your number. Unless I'm missing something, I don't see how $7 isn't viewed as rather expensive for that visitor count.
Post reply on HN