GAE Having Tasks generate pages for user

Posted by mellort on Stack Overflow See other posts from Stack Overflow or by mellort
Published on 2010-05-17T23:30:37Z Indexed on 2010/05/18 2:50 UTC
Read the original article Hit count: 258

Filed under:

I have a web app that I would like to have the following functionality:

  1. user gives a url
  2. webapp gets json data from that url and others from same website (this can take anywhere from 1-10 seconds)
  3. 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

© Stack Overflow or respective owner

Related posts about google-app-engine