Amazon S3 and Cloudfront with Java API -
i using s3 java api objects , content. i've created cloudfront distribution using aws console , set s3 bucket objects bucket-origin. didn't notice improvement in download performance, , noticed in console window url refers s3:
info: sending request: https://mybucket.s3.amazonaws.com /picture.jpg headers: (range: bytes=5001-1049479, content-type: application/x-www-form-urlencoded; charset=utf-8, )
whereas in getting started guide cloudfront, url should be:
http://(domain name)/picture.jpg
where (domain name) specific cloudfront distribution. java api still getting file s3 , not through cloudfront
is there anyway using java api s3 download files via cloudfront? if not, what's best approach should use objects via cloudfront in java program? still kinda new stuff, appreciated!
java api s3 can not used interacting cloudfront.
if want download content through cloud front distribution, have write own http code (which should simple). can use http://(cloud front domain name)/picture.jpg in browser , check download speed first.
Comments
Post a Comment