1
votes

I'm wrinting a PHP API that serves mobile apps, hosted in the AWS. This app is image based, like Instagram. All the images are uploaded in a AWS Bucket and requested using a GET url, for example http://my-bucket.s3.amazonaws.com/image-name.extension. My question is: what is the best way to serve those images? With AWS Bucket or CloudFront?

Thanks!

1
Cloudfront, no doubts. Cloudfront pick your S3 bucket and replicate in servers across the world. This makes your distribution faster that if you only use S3.jherran
@jherran So, I should keep my S3 and add a CloudFront as CDN?bodruk
Yes, that's the point.jherran
@jherran Add your comment as an answer, then I can accept it.bodruk

1 Answers

1
votes

Cloudfront, no doubts. Cloudfront pick your S3 bucket and replicate in servers across the world. This makes your distribution faster that if you only use S3.