AWS S3 Transfermanager多部分上传时间上传时的性能差异

发布于 2025-02-07 13:22:22 字数 280 浏览 2 评论 0 原文

我正在使用AWS SDK作为Java。传递 InputStream 而不是文件时,性能是否有任何差异,使用 Transfermanager Multipart上传?一个人应该比另一个人更喜欢还是选择问题?

更新:在我的测试中,我发现使用输入流比使用文件总是慢。 [文件大小为512MB]

PS我正在使用Spring,因此我得到的是 MultipartFile 我将其存储在temp文件中的内容仅用于上传到S3。

I am using AWS SDK for java. Is there any difference in performance when passing InputStream instead of File in uploading to AWS S3 using TransferManager multipart upload? Should one be preferred over the other or is it just a matter of choice?

Update: In my tests, I found that using an input stream was always slower than using a file. [File Size is 512MB]

P.S. I am using Spring so what I get is a MultipartFile the contents of which I store in the temp file just for uploading to S3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心欲静而疯不止 2025-02-14 13:22:22

FAIZ您可以为S3文件上传提供放大SDK。它的上传和下载文件而不是TransferManagerutils确实很快。

参考:

Faiz you can yuse Amplify SDK for S3 file upload. It's really fast for upload and download files instead of TransferManagerUtils.

ref : https://docs.amplify.aws/lib/storage/upload/q/platform/android/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文