Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is CloudFront (backed by S3) a good way to serve user-uploaded pictures? For example forum avatars. Or maybe there is a better way?

share|improve this question
What are your needs? What would distinguish between a good way and a bad way (Cost, scalability, difficulty, resilience, capacity etc.)? What have you tried and why isn't that good enough? – Ladadadada Jun 14 '12 at 9:17
@Ladadadada The main criteria is performance (latency). Uploaded image will be served at least thousands times a day. Also the images should be immediately available after upload. Also system needs to have reasonable costs and complexity. – Poma Jun 14 '12 at 9:37
up vote 0 down vote accepted

Cloudfront/s3 is a good solution if performance matters and the images will have 1000+ hits/day. The complexity and costs are also reasonable in my experience. You also have a Read-after-Write Consistency for s3 if you create new objects. You dont have that consistency for updated objects, though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.