Re:Fast, cheap and automated: deploying static websites to AWS
by laktek on Monday February 27, 2017 @07:17AM
(#13743662)
Static sites are a neat solution for most web publishing these days (I built Punch - one of the earliest static site generators).
However, one of the main complaints I received was the inconvenience of using such a setup to deliver a client project (or managing a site with a team of non-tech people). At this stage most still end up with Wordpress or other CMS from last decade.
I'm working on a new project called Pragma[0] which combines the benefits of static sites with the conveniences of CMS and Web-site builders. I wrote about it in detail: www.laktek.com/2016/11/29/introducing-pragma/
Re:Fast, cheap and automated: deploying static websites to AWS
by jordanlev on Monday February 27, 2017 @12:15PM
(#13745807)
You might be into Lektor ( https://www.getlektor.com/ ), which is a great middle ground between static site and dynamic CMS -- it's a static site generator, but has a GUI client that is somewhat usable for non-technical people. It's a very clever system and un-opinionated about how you structure your content.
Re:Fast, cheap and automated: deploying static websites to AWS
by ec109685 on Monday February 27, 2017 @01:37AM
(#13742352)
> But of course there are downsides: caching can be annoying sometimes, because file changes take much longer to be rolled out
If you just want the SSL, you don't have to enable caching on cloudfront — that way you get in the instant updates at the cost of a bit of performance.
Re:Fast, cheap and automated: deploying static websites to AWS
by jordanlev on Monday February 27, 2017 @12:13PM
(#13745785)
A few years ago, I used CloudFront as a CDN for video files hosted on S3, and I ran into performance issues -- I think because the traffic was relatively low, and hence it took more time for the CDN to "reload its cache" (for lack of a better term) than it would have been to just serve the files directly from S3.
Just a word of caution for people thinking (as I did) that a CDN is an automatic performance boost for all situations... it might actually be a detriment if you don't get reasonably high traffic.
Re:Fast, cheap and automated: deploying static websites to AWS
by jotaen on Monday February 27, 2017 @02:15PM
(#13746965)
Interesting – can you quantify these performance issues somehow or do you have any other insight what was happening there?
It surprises me to hear it, because when CloudFront refreshes an item, it should immediately start to forward the retrieved data from the first byte onwards. So, the maximal additional latency could be the initial roundtrip between CloudFront and the origin (which I suppose should be neglectable in case of S3).
Re:Fast, cheap and automated: deploying static websites to AWS
by jordanlev on Monday February 27, 2017 @05:39PM
(#13749140)
It was a while ago (2011), and it was specifically with streaming videos using the RTMP protocol... so it might have been specific to that. But here is a StackOverflow answer someone wrote that explained the general idea of how CDN's might slow down the process for infrequently-accessed files:
EDIT: In re-reading that S.O. answer, I see now that this is specific to LARGE files (these videos were 50+ MB each)... so your use-case of HTML files and images for a static site would probably not result in this performance problem.
Re:Fast, cheap and automated: deploying static websites to AWS
by kingbirdy on Sunday February 26, 2017 @07:04PM
(#13740828)
Is there any inherent advantage in setting the TravisCI account permissions in the bucket properties rather than the IAM role, or is it just a personal preference thing?
Re:Fast, cheap and automated: deploying static websites to AWS
by jotaen on Monday February 27, 2017 @06:08AM
(#13743380)
In my case I decided for S3 because I use Hugo instead of Jekyll and I wanted to avoid checking in the build assets into the Repo. My S3 costs range around a few cents per month.
However, if you use Jekyll or don’t mind commiting the build output, GH Pages is a superb option for sure.
However, one of the main complaints I received was the inconvenience of using such a setup to deliver a client project (or managing a site with a team of non-tech people). At this stage most still end up with Wordpress or other CMS from last decade.
I'm working on a new project called Pragma[0] which combines the benefits of static sites with the conveniences of CMS and Web-site builders. I wrote about it in detail: www.laktek.com/2016/11/29/introducing-pragma/
[0] https://pragma.build
If you just want the SSL, you don't have to enable caching on cloudfront — that way you get in the instant updates at the cost of a bit of performance.
Just a word of caution for people thinking (as I did) that a CDN is an automatic performance boost for all situations... it might actually be a detriment if you don't get reasonably high traffic.
It surprises me to hear it, because when CloudFront refreshes an item, it should immediately start to forward the retrieved data from the first byte onwards. So, the maximal additional latency could be the initial roundtrip between CloudFront and the origin (which I suppose should be neglectable in case of S3).
http://stackoverflow.com/a/7800805/477513
EDIT: In re-reading that S.O. answer, I see now that this is specific to LARGE files (these videos were 50+ MB each)... so your use-case of HTML files and images for a static site would probably not result in this performance problem.
AWS offers some guidance on this question in their docs: https://aws.amazon.com/blogs/security/iam-policies-and-bucke...
However, if you use Jekyll or don’t mind commiting the build output, GH Pages is a superb option for sure.