2 ms·
In our case, we don't need to ever revalidate. We store things forever since our file blobs are immutable.
by mattrobenolt 10y ago
In our case, we don't need to ever revalidate. We store things forever since our file blobs are immutable.
- bpicolo 10y agoImmutable blobs are really the right choice with s3, as it's eventually-consistent (when using it as a blob store anyway. If you're hosting a static site or similar it's a bit tricky to immutableize and not necessarily worth the effort).
- mattrobenolt 10y agoWe even go a step further, and our blobs are 100% content addressable. :) So caching is super easy for us.
- bpicolo 10y agoYep, file shas are a great choice. UUIDs are typically fine too. One sort of weird case is if I have an image key (sha-based) and want to store thumbnail sizes: 'bae6ff187e4c491e5de9cfa3b039ce7da8255798' makes sense as a base key, but really I want bae6ff187e4c491e5de9cfa3b039ce7da8255798/400x400 for thumbnails rather than storing individual thumbnail shas, hah.