31
Views
1
Comments
[Amazon Simple Storage Service (S3)] How to improve Amazon Simple Storage Service (S3) PutObject Speed?
Application Type
Reactive

Hi OS Community, 

I am using Amazon Simple Storage Service (S3)'s PutObject functionality to PDF Files from the web portal to an S3 Bucket. 

The upload function works as expected however, there are some concerns regarding the speed of upload. When uploading a 1 Megabyte PDF file, it takes ~60 seconds to complete.

Please refer to the attached image to see how the PutObject function has been implemented.

*There are no special logics which slows down the function before executing the PutObject function and when I ran the debugger, the PutObject action takes the longest time*

Does anyone face similar issues and if so, what are some recommended workarounds to resolve this issue?

Thanks All!


OS_PutObject.png
2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi,

there a two potential reasons that could lead to an upload taking so long. First is the connection of your browser to your OutSystems environment. If you are sitting in Asia and your OutSystems environment is provisioned in Europe you will experience some delay when transferring the document to the frontend server.

Second is the delay between your frontend servers and the aws region where you provisioned the s3 bucket. (e.g.your frontend servers are in Europe and your S3 bucket is in Asia).

For large file transfers and if youre users are spread across the globe you may consider a direct upload from the browser to an s3 bucket via AWS CloudFront.

Best

Stefan


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.