Reputation: 370
My website supports uploading images by the users. I'm trying to figure out what is the best strategy to save those files given that I have more than one ec2 instance running. Amazon Elastic File System sounds perfect but it's still in preview mode. What is the best alternative?
Upvotes: 1
Views: 279
Reputation: 46859
You almost certainly want to use S3 to share images between EC2 instances unless you have some very unique circumstances that won't allow it.
Best to not store any user data on the instance itself if you can avoid it; makes it easier to scale and to recover from crashes. S3 is a perfect super-redundant place to keep 'stuff' that costs next to nothing.
Upvotes: 3