Live data from Hacker News

Ask HN: Cheapest/easiest way to host a static site?

news.ycombinator.com

71–80 of 507 posts

Re: Ask HN: Cheapest/easiest way to host a static site?

#71

Earlier quoted context omitted.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

The big gain with putting Cloudfront in front of it is you can have HTTPS.

And loose 30 mins of your life you’ll never get back. It’s just a person site.

Re: Ask HN: Cheapest/easiest way to host a static site?

#72

Earlier quoted context omitted.

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

Performance maybe a little bit, but IIRC you, as the owner of the bucket, pay for bandwidth out.

Putting it being a CDN protects you (at least a little bit) from the possibility of a huge bandwidth bill at the end of the month if someone realizes they can attack your wallet directly by trying to ddos your site.

Re: Ask HN: Cheapest/easiest way to host a static site?

#74
post #55

I have my site in an S3 bucket with the static-site flag activated. It would not win for 'easiest'. However, it's the only thing in my personal AWS account right now and my monthly bill is $0.83

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

You can generally query any object off s3 in a few milliseconds..

I have a system doing 10s-100's of millions of reads a day from s3 with very consistent and fast read times.

Re: Ask HN: Cheapest/easiest way to host a static site?

#75

Earlier quoted context omitted.

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

> Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

It adds up to 600ms of latency for each roundtrip. A modern website without link rel=preload is several roundtrips– download HTML page, then do JS requests and CSS, so that's ~1.2s of additional latency.

Because he succumbed to AWS' marketing. Surge, mentioned downthread, lets you deploy a folder for free on a worldwide CDN with virtually no setup.

Re: Ask HN: Cheapest/easiest way to host a static site?

#76

Earlier quoted context omitted.

Why, if his monthly bill is 83 cents, and he values his time? Does not using a CDN impact performance in a crippling way that neither me nor the poster you're replying to understands?

Performance maybe a little bit, but IIRC you, as the owner of the bucket, pay for bandwidth out. Putting it being a CDN protects you (at least a little bit) from the possibility of a huge bandwidth bill at the end of the month if someone realizes they can attack your wallet directly by trying to ddos your site.

I agree– AWS bandwidth out is literally 100 times more expensive than CDN and VPN bandwidth out.

Re: Ask HN: Cheapest/easiest way to host a static site?

#77

Regarding some cost free solutions mentioned here: how does the saying 'if it is free, then you are the product' hold up?

surge.sh was born out of a Mozilla-sponsored project to make web hosting cheaper. They are doing it for charity.

Re: Ask HN: Cheapest/easiest way to host a static site?

#78
post #43

> jumping through AWS hoops I found S3 static hosting to be fairly straightforward. Once set up, a single `aws s3 sync . s3://my-bucket/path` updates the content.

You might have a look at https://github.com/tobilg/serverless-aws-static-websites to get a single command deploy including CDN and a domain

Re: Ask HN: Cheapest/easiest way to host a static site?

#80

Earlier quoted context omitted.

An S3 bucket is intended as storage, not retrieval. Downloading from S3 means grabbing shards. You should put a proper CDN, like CloudFront or Cloudflare, in front.

Pfffffft. It’s probably a personal site with 10 visitors a week. Let’s step back a little here.

And 9 of them are just bots.
Post reply on HN