Fastest and Efficient way to upload to S3 using FileInputStream

感情迁移 提交于 2020-07-08 00:39:37

问题


I am trying to upload huge files to S3 using BufferedInputStream and providing it with a Buffer size of 5MB but the performance of the application is hindered because of the network speed/amount the available data to read is limited like mentioned in this answer link (limited to 1MB). This makes me upload 1MB as part size at a time to s3 using UploadPartRequest which increases my time to upload. So, is there any other better and fast way to upload to S3 using FileInputStream as a source.

Is it possible that I can wait until my bytes read is equal to buffer size then upload the part? will it increase the speed of upload?

来源:https://stackoverflow.com/questions/62187087/fastest-and-efficient-way-to-upload-to-s3-using-fileinputstream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!