RikiBorders / Rift-Watcher

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

Reduce Riot API Calls Across the App #5

Closed RikiBorders closed 1 year ago

RikiBorders commented 1 year ago

Refactor the system to limit the amount of riot api calls we make. Aim to make 3 maximum, all done when a player's page is laoded:

one to account one to summoner one to match

Also, find a way to remove the constraint of the search engine querying the Riot API. I feel this can be exploited by web scrapers to run up the api calls and disable the website. If this can't be done, then add protections against spam

RikiBorders commented 1 year ago

Ran into rate-limit issues today - Ended up having to reduce the match history fetching feature down to about 5 matches.

RikiBorders commented 1 year ago

closing this issue as limiting api calls will be handled by creating a new script to constantly fetch and cache new matches