3 ms·
How long S3 takes to fulfil a request does not affect bandwidth. I personally went the other way. I still use CloudFront as a CDN but made it cache items for s
by theGimp 10y ago
How long S3 takes to fulfil a request does not affect bandwidth.
I personally went the other way. I still use CloudFront as a CDN but made it cache items for short periods of time. Invalidation was too much of a hassle, and it took too long. Admittedly, I should use hashes or something of the sort to keep my items versioned, but laziness always gets in the way.
- toomuchtodo 10y ago> How long S3 takes to fulfil a request does not affect bandwidth. Correct. Did I insinuate that? I apologize if I did. They are two distinct issues, both of which a CDN prevents. 1. S3 outbound bandwidth is expensive. Use it only as an object store of last resort. Your CDN bandwidth is orders of magnitude cheaper (don't believe me, go compare the pricing). 2. S3 response times can vary wildly at times. Use a CDN to avoid this. And of course feel free to use a cache key instead of invalidating via an API if ~15 minutes it too long to wait for fresh content to appear at edges. PS Don't apologize for laziness. When directed appropriately, its a most productive force.
- theGimp 10y agoMy mistake! I assumed you meant the time it takes to fulfil a request and the bandwidth cost were related because they were mentioned in the same sentence. Agreed on all other counts.