Using Worker for creating zip on-the-fly

I'm having hard time understanding if Worker is the right choice for my use-case. I currently have some files stored in R2 and I would like to allow my users to download them as a single file (.zip), thus creating the zip on-the-fly. But after reading the pricing page, I don't understand if it fits my use-case. I see something like:
Max of 30 seconds of CPU time per invocation
Depending on the size of the files and the download speed of my user, the download might last more than 30 seconds or even 30 minutes, I can't tell.
1 Reply
Luka
Luka6mo ago
Network requests (downloads) are not charged. Only the CPU time, so the zipping would be. Just try, it's not that hard. I've done it. But I've also found out that the performance was better to ZIP up client side on the fly because my source was a 3rd party service (not R2)