Should I persist images on EBS or S3?

后端 未结 5 1423
栀梦
栀梦 2020-12-04 06:43

I am migrating my Java,Tomcat, Mysql server to AWS EC2.

I have already attached EBS volume for storing MySql data. In my web application people may upload images. So

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 07:16

    You already outlined the advantages and disadvantages of both.

    If you are planning to store terabytes of images, with storage requirements increasing day after day, S3 will probably be your best bet as it is built especially for these kinds of situations. You get unlimited storage space, without having to worry about sharding your data over many EBS volumes.

    The recurrent cost of S3 is that it comes 50% more expensive than EBS. You will also have to learn the API and implement it in your application, but that is a one-off expense which I think you should be able to absorb very quickly.

提交回复
热议问题