sunnydl / GamePerformanceTracker

Team project for CSE 115A in Fall 2021, UCSC
3 stars 0 forks source link

Backend API caching setup #44

Open sunnydl opened 3 years ago

sunnydl commented 3 years ago

This is to reduce api calls to RIOT due to rate limiting https://developer.riotgames.com/docs/portal#:~:text=The%20rate%20limit,every%202%20minutes. So if the frontend user "accidentally" refreshes the page within 2 mins it will get back the same content from the backend endpoint without consulting the RIOT api.

Good resource for setting up is: https://www.npmjs.com/package/apicache