Skip to content

"Rate limit" users when making requests #7

@benslv

Description

@benslv

I think we need to add a temporary stop-gap to prevent users from generating playlists too quickly, so we do end up hitting Spotify's rate limit and crashing the app for them (and potentially other users; I'm not sure if one person being rate limited actually limits others or not).

The first thing that comes to mind was just to store some kind of "lastGeneratedTime" cookie in the browser which is checked before generating and only allows a new generation if, say, more than 2 minutes has passed.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions