Open RadicalZephyr opened 8 years ago
Here's a useful resource on doing the RESTful mechanics of doing this API splitting.
Partially fixed, but in a hacky way. By special casing the comics list and caching it in memory and fetching it asynchronously in a future.
It would be cleaner to do the caching at the repo level, and it would be more meaningful for the repository to always return a promise chan or something and then the web app could have every api uniformly return results but only if they're delivered within a short timeout.
Basically need to split the query into a kick-off call, and then a polling call. The kick-off generates a token to be used with the polling call, and then the client polls that URL until that data is available. Probably should do this with all the API's that fetch data from the comic sites.