Hi, My app creates many tasks which send data to a web service. Currently each task POSTs its data independently, I would like to batch these in a single http request to reduce load on the service.
It seems like pull queues and backends would be great for this, but I'm a little unsure about how the pulling part works with backends. Here's how I think it should work, is this correct? First, set up new backend in backend.yaml with custom start handler Then, write a start handler which does the following: 1. Spawn background thread 2. Register shutdown hook which stops the thread 3. Return 200 The thread should do the following in a loop: 1. Check if thread should stop 2. Call lease_tasks() 3. Process tasks 4. Delete tasks 5. Sleep for a bit, then goto 1. If I use a resident backend, what happens if it dies? Do I need to monitor it myself and turn it back on? Or does appengine ensure that one is always running. --Alex -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
