how can i use this to upload every 10 files at the same time #3166
-
how can i use this to upload every 10 files at the same time
i have this code
public String uploadFolder2(Path filePath, String filepath_cloud) {
public void savecontent() throws IOException {
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @khadija-mouaddah this channel is for questions regarding the AWS SDK for Java specifically, we don't really give general implementation suggestions or debug code. Your sample code is using the S3 async client, which makes asynchronous calls, so you're on the right path to make concurrent uploads. Also take a look at TransferManager v2, it's a high-level library that makes high performance operations to S3. |
Beta Was this translation helpful? Give feedback.
-
Hi @khadija-mouaddah, you can try with |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @khadija-mouaddah, you can try with
S3TransferManager#uploadDirectory
. Note that S3TransferManager is still in Developer Preview at the momenthttps://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/transfer/s3/S3TransferManager.html#uploadDirectory-software.amazon.awssdk.transfer.s3.UploadDirectoryRequest-