Reputation: 636
I'm implementing a serverless API, using:
My flow is to :
This flow is already implemented and it's working well with small files, 10MB for uploading and 6MB for downloading. But I'm getting issues when dealing with large files as it'll be the case on many occasions. To solve such issue I'm thinking about the following flow:
Lambda Internal Tasks:
3.1 Lambda Download the file from S3 bucket.
3.2 Lambda Generate the corresponding WPK Package.
3.3 Lambda Upload the generated WPK package into S3.
3.4 Lambda returns a signed URL related to the uploaded file as a response.
But my problem with such design is that it requires more than a request to get completed. I want to do all this process in only 1 request, passing the target zip file in it and get the new zip as the response. Any Ideas, please?
My Components and Flow Diagram would be:
Upvotes: 1
Views: 4857
Reputation: 345
There are a couple of things you could do if you'd like to unzip large files while keeping a serverless approach :
Upvotes: 3