3 ms·
Might I interest you in a CDN rather than serving static files out of S3 in a single region?
by RijilV 11y ago
Might I interest you in a CDN rather than serving static files out of S3 in a single region?
- yeukhon 11y agoYou can use cross-region replication. But CDN might be a cheaper solution if you have a high volume traffic. Imagine HN runs entirely on S3, then using CDN will likely be cheaper and more responsive. I haven't done the calculation though.
- toomuchtodo 11y ago> You can use cross-region replication. This is meant for backing up S3 data for DR, not for HA in the traditional sense (EDIT: it can be used for HA, but you're going to need health checks for your origin DNS record so your CDN is always pointed at an available origin). Always, always, always use a CDN in front of S3 if you're serving static content for public consumption from that bucket. Data out of S3 is more expensive than data out of a CDN (even Cloudfront), and S3 has orders of magnitude higher latency than a CDN (occasionally hundreds of milliseconds). Disclaimer: Devops who works with S3 and several CDNs day in and day out.