问题
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