GAE Having Tasks generate pages for user
- by mellort
I have a web app that I would like to have the following functionality:
user gives a url
webapp gets json data from that url and others from same website (this can take anywhere from 1-10 seconds)
webapp uses data to generate page for user
With this approach, I believe that if the server is in the process of getting the data for one user, then the other user won't be able to load the page (server busy). I would like to avoid this if possible.
It seems like the Google Tasks API would be useful for this, but I don't see how I can run the task, and then use the output of the task to generate the page (how would the main app know when the task was finished?)
What is the best way to resolve this?
Thanks in advance