ericljiang / premier-playoff-helper

https://premier-playoff-helper.vercel.app
MIT License
0 stars 0 forks source link

Client-side rate limiting #8

Closed ericljiang closed 10 months ago

ericljiang commented 10 months ago

Prevent 429s by keeping track of request rate. Possibly retry when 429 received.

ericljiang commented 10 months ago

Retries implemented in https://github.com/ericljiang/premier-playoff-helper/commit/705f5fedebdcee8fb4a2df6e3c7b6b41b51d7d2d. Need to implement client-side request throttling to prevent them.

ericljiang commented 10 months ago

After testing, client-side throttling doesn't seem to affect the total time to retrieve all matches so it's preferable to retrieve matches as fast as possible and rely on retries so that the user can see as much data as possible as fast as possible.