replugged-org / replugged

A lightweight Discord client mod focused on simplicity and performance.
https://replugged.dev/
MIT License
634 stars 67 forks source link

Limit number of parallel update requests #524

Open asportnoy opened 11 months ago

asportnoy commented 11 months ago

The Replugged API has a rate limit of 20 requests per second. However, the updater currently requests all updates at once (relevant code). The check should be throttled to 15 requests per second (give some wiggle room) and properly handle 429s.

In the future, we should add a route to the backend for a bulk update check to avoid needing a lot of requests like this.

bop34 commented 11 months ago

I can take this.