I'd like a file of 1-2GB to be uploaded to s3
from a lambda
function. I need for it to be optimized enough to happen in seconds, not minutes.
Programming Lang: NodeJS with Typescript
What's the best way to ensure that?
CodePudding user response:
Using the AWS SDK for JavaScript, you can upload parts in parallel, for code samples also check this great post.
By uploading in parallel you will use the max bandwidth available to your lambda and since it is done async you won't block the thread, so you will achieve faster upload speed.