我正在考虑如何在aws s3中为对象创建前缀,并尽量不要压倒单个索引分区。
http://docs.aws.amazon.com/AmazonS3/latest/dev/request-rate-perf-considerations.html
据我所知,以下示例是良好做法:
[module-id]/[privacy]/[4 digit hash]/[4 digit hash]/[record id]/[file name]
例如:
bucket/profile/private/afdd/as23/15/avatar.png
bucket/profile/public/afdd/as23/15/cv.doc
bucket/project/public/fdf1/dsd3/1/random-strng.doc
bucket/project/private/fdf1/dsd3/1/asd123sdff.doc