funkyg / funkytunes

A streaming music player for Android, using torrents.
GNU General Public License v3.0
122 stars 24 forks source link

throttle requests to discogs api #17

Closed gjedeer closed 7 years ago

gjedeer commented 7 years ago

App is sending requests more often than needed, discogs returns 429 sometimes. Once every 500 ms would be enough.

funkyg commented 7 years ago

i guess thats for the search? because it sends requests whenever the query string changes. Agree that 500 ms would be enough. Or we can make it so the user has to press enter before it is sent.

gjedeer commented 7 years ago

The current incremental search is awesome so my vote goes to just throttling/debouncing.

funkyg commented 7 years ago

what do you mean by debouncing?

gjedeer commented 7 years ago

Silly term for throttling from javascript world

funkyg commented 7 years ago

oh i see. Luckily i dont use any javascript :D