3 ms·
Lots of other comments give good suggestions on how to handle uploading and processing, but nothing mentions serving resulting content, so let me chime in: Do
by fy20 2y ago
Lots of other comments give good suggestions on how to handle uploading and processing, but nothing mentions serving resulting content, so let me chime in:
Do not serve content from S3 directly.
ISPs often deprioritize traffic from S3, so downloading assets can be very slow. I've seen kbytes/s on a connection that Speedtest.net says has a download speed of 850 mbit. Putting Cloudfront in front of S3 solves that.
- throwaway984393 2y agoNot to mention using Cloudfront in front of S3 can lower cost, due to caching.
- maayank 2y ago> ISPs often deprioritize traffic from S3 I wonder why
- bagels 2y agoCloudfront does not solve it. Comcast deprioritizes any content that comes from Amazon.
- 65 2y agoAlso a good idea to stream large files instead of trying to directly serve the file as-is. For video you essentially have to stream the file in order for it to load on Safari.
- sakopov 2y agoYou should never be serving content from S3 directly anyway. Always setup a cloudfront distribution for your buckets and allow origin access identity (OAI) access to the bucket.