aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

S3 Transfer Manager: bandwidth limiting for upload/download

Open zoewangg opened this issue 3 years ago • 1 comments

+1 for aws/aws-sdk-java#1103, a request for the ability to limit bandwidth for S3 uploads/downloads. See also the recently closed issue from the aws-cli repo: https://github.com/aws/aws-cli/issues/1090

This same feature would be similarly useful in the Java SDK to help avoid fees from ISPs for excessive bandwidth usage, or to prevent a single application from overwhelming a network's capacity.

Originally posted by @erikedlund in https://github.com/aws/aws-sdk-java-v2/issues/37#issuecomment-354880681

zoewangg avatar Jun 21 '22 17:06 zoewangg

+1

Jaeyo avatar Jul 06 '22 07:07 Jaeyo

Note that you can do this when using CRT AsyncS3Client:

S3TransferManager.builder()
   .s3Client(S3AsyncClient.crtBuilder()
      .targetThroughputInGbps(0.6d)
      .build())
   .build()

joernschumacher0001 avatar Jan 30 '23 14:01 joernschumacher0001