RikiBorders / Rift-Watcher

Data-Driven League of Legend's Statistics Website
https://rift-watcher.vercel.app
1 stars 0 forks source link

Move DataDragon files to personal CDN #4

Closed RikiBorders closed 1 year ago

RikiBorders commented 1 year ago

We won't be able to launch without moving the images/resources fetched from DataDragon to our own CDN. Another alternatives is hosting the images locally, but that isn't ideal since that could take up lots of space (have yet to check how much exactly).

op.gg and mobalytics have their own CDNs, and I saw an article detailing a little more on why you shouldn't use DataDragon itself as your own CDN. We'll probably get delayed in the product application process so this will need to be updated accordingly. Shouldn't be a problem, but it introduces some annoying overhead.

DataDragon page for reference:

https://developer.riotgames.com/docs/lol

RikiBorders commented 1 year ago

The previously mentioned overhead will include writing a script to:

  1. download the updated DataDragon files each time a new patch is released
  2. upload the filed to the repository, replacing the old content with the new content
RikiBorders commented 1 year ago

I really don't like the idea of manual maintenance. Maybe the script could also detect when a new API is released? We could host this on some free lightweight platform like fly.io to avoid costs.

Another great alternative would be to use a raspberry pi.