Reputation: 3262
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!
Upvotes: 1
Views: 112
Reputation: 3367
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.
Upvotes: 1