Friday, 15 February 2019

How can I stream files from S3 to .zip archive and then to client without storing .zip on disk?

Hello everyone!Our service allows people to download archives with users' photos. Photos are stored in S3 as regular files (.jpg).Now we are using AWS Lambda to download all files from particular folder in S3, create a zip and send it to the client. But the problem is that sometimes that zip can be > 500mb and Lambda has max 500mb for file storage.I'm wondering if I can use node stream API to download .jpg from S3 then append it to archive stream and send it down to the client (browser).Thanks!

Submitted February 15, 2019 at 08:31AM by fminutes

No comments:

Post a Comment