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:
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.
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.