1 points · by sam · 18y ago · 3 comments
Then I read this: http://paltman.com/2007/05/29/amazon-s3-and-filename-magic but I don't really understand the advantage of storing an object on S3 whose key is the hash and which points to the GUID. One thing I don't want to do is store the GUID as the S3 key (to prevent massive scraping of all the assets).
How are you all dealing with this? Is anyone using a MD5 or SHA-1 digest as the key? A salted hash of the GUID as the key?
If I were going to use them for hosting my videos or something, I'd probably just use the GUID without the need for the MD5. Just make sure there's not chance of duplicates in the database schema and it should work.
I use Bacula for network backups and it does the same thing. All paths and filenames are stored as unique ID numbers.