Satshabad / Queue-api

An API server for the Queue app
0 stars 1 forks source link

Slowness Caused by Link Getting After Posting to Queue #10

Open fskhalsa opened 11 years ago

fskhalsa commented 11 years ago

Seems to be an intermittent problem related to the other services we rely on for link getting (Spotify in particular?).

A solution would be to try and get links, but if it's not possible within a short time interval, return the posted item without the links (or only with the ones that were available quickly), and push the link getting for that item into an asynchronous queue. The user can then reload the links from the UI after the fact, and UX isn't impacted speed-wise.

Plus this solution allows links to be available to the user without reload whenever the services ARE operating quickly.