减少上传到 AWS S3 存储桶的时间

huangapple go评论82阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年7月27日 19:18:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/63114187.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定