In order to maintain user uploaded images in website becomes very tough as the number of images are increasing. In the long run the available disk space will come to 0 bytes.
Amazon generally provides unlimited space for their S3 service. If we want to provide unlimited space to our website what are the开发者_如何学运维 possible ways?
Shard your servers that host the images. Once one fills up, add another. You'll have to write some custom code for uploading to know where the uploaded files are and when a server is almost full.
The only way I know of is to minimize all your files (eg index.php), and, when your website begins to make money, by another HDD. I think thats all Amazon does, anyway.
精彩评论