英文:
Reduce upload time to aws s3 bucket
问题
我正在使用Java将一些文件上传到S3存储桶。每个文件的大小非常小(〜2KB)。然而文件的数量非常大(〜100万)。因此,上传需要很长时间,大约2-3小时。是否有任何方法可以缩短上传时间?我对每个文件使用putObject
方法。
英文:
I am uploading some files to an s3 bucket using Java. The size of each file is very less (~ 2KB). However the number of files is very large (~ 1 Mil). Due to this the upload takes a lot of time, around 2-3 hours. Is there anyway to reduce the upload time? I use the putObject
method for each file.
答案1
得分: 2
在AWS中,没有直接运行工作负载的并行方法。相反,可以查看Java多线程,以并发方式处理上传函数:Java多线程示例。
英文:
There are no methods in AWS directly to run your workloads in parallel. Instead take a look at Java multithreading and process your upload function concurrently: Multithreading in java with examples
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论