Yosef
Yosef

Reputation: 370

Best way to store shared files between ec2 instances

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

Answers (1)

E.J. Brennan
E.J. Brennan

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

Related Questions