現在、AmazonS3Client インスタンスを使用して、以下に示す「キー」と「バケット名」を使用して S3 オブジェクトをダウンロードしています。
object = s3Client.getObject(new GetObjectRequest(BucketDetails.getBucketDetails(), iconPath));
file = new File(destinationPath);
reader = new BufferedInputStream( object.getObjectContent());
writer = new BufferedOutputStream(new FileOutputStream(file));
int read = -1;
while ( ( read = reader.read() ) != -1 )
{
writer.write(read);
}
writer.flush();
writer.close();
reader.close();
デフォルトでは、これはデフォルトの S3 エンドポイントを指します。
S3 アクセス用のクラウドフロント ディストリビューションを作成しました。
ダウンロードのパフォーマンスを向上させるために、AmazonS3Client のエンドポイントをクラウド フロント ディストリビューションに設定できますか?