0

I will be launching a web application soon which will require users to upload pictures for others to view. I would like to use Amazon S3 to store the images as it scales and is cheap. The user will use a form to upload their file, it will be processed with php and saved to the S3 mount thats attached to the web server.

I am anticipating and hoping tens or hundreds of thousands of images will eventually be uploaded.

My first question is whether an S3 bucket mount is robust and fast enough for such an application, or would I be better off using Amazon EBS. Although I'd like to have my own dedicated box rather than use an EC2 instance.

Also, I am at this point unfamiliar with S3, but when I do upload files, is it appropriate to put them in a single bucket rather than a cascade of directories? It seems it might be ok since each 'bucket' is virtual anyway.

4

1 回答 1

0

您可以做的一件事是让您的用户直接上传到 S3 存储桶,除非您想做一些处理。您可以使用 POST 将文件上传到 S3 或第三方组件之一,例如http://flajaxian.com/这样您可以显着卸载服务器。

至于您的第二个问题,实际上取决于您如何设计您的应用程序。没有优点和缺点。

于 2011-04-28T06:29:11.027 回答