简体   繁体   中英

Best way to download multiple files from S3 - Ruby on rails

I have zips in s3 with videos.. some are small (3Mb), but others can be bigger (like 30Mb).. I need to download these zips.. I don't know what is the best way to do it, talking about performance.. Put these videos in a unique zip and download just one zip with all the videos in it or download every file separately.. Joining and compacting the files to a zip in a temp folder isn't expensive in performance or much work for the server?

PS.: The user will choose the videos that he wants to be downloaded and click on a button to download them (I think it would be like 10-100 videos)..

From a strictly performance standpoint, downloading straight from S3 beats everything else hands down as it's no load on the rails box. It doesn't often meet other considerations like security, logging, access control, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM