by nh2 · 2y ago · 0 comments
Many people think you can just host the resources for your websites, such as images or fonts, straight on S3. But that can make for a shitty experience:
> applications can achieve consistent small object latencies (and first-byte-out latencies for larger objects) of roughly 100–200 milliseconds.
From: https://docs.aws.amazon.com/AmazonS3/latest/userguide/optimi...
You can even use cloudfront signed cookies to give specific users cdn access to only specific content owned by them on S3. How cool is that.
It will cache frequently accessed assets, and in addition to reducing latency may reduce cost quite a bit.