Help around designing the architecture of a project

Hello everyone πŸ™‚ I'm trying to migrate my toy website https://iwannabethevery.best to Cloudflare Workers, from Azure functions πŸ™‚ It's a dumb website really, with a daily functions that query's the YouTube API for every video containing the words "Pokemon" or "PokΓ©mon" on SiivaGunner's channel, saves it... somewhere, then redirects you to a random video from it when you access the website. I am looking for opinions on how I can migrate it to Cloudflare (because Azure is way too much for what I'm actually doing), and help on the best things to get πŸ™‚ Sure enough, I'll need workers to actually 302 to the video, and from what I can see, I can use "Cron Functions" to have a worker update the list every day. But now I'm wondering how I can store the data. I mostly need a way to store a medium sized file, containing a list of ID, then fetch it, get a random line, and that's it. Should I prefer R2, for a single file, or a D1 for a single table, and then get a random row ? Or is there a less dumb solution somewhere else ? Thanks in advance πŸ™‚
1 Reply
Erisa
Erisaβ€’15mo ago
KV would be the simplest and easiest, otherwise D1
Want results from more Discord servers?
Add your server