Hi Steve,
  If your data is over the 10k limit, then deferred will put it in the
datastore -- so it is probably not going to buy you much in this case.

  Instead could catch timeout, contention, or similar exceptions and
retry the put.  You might also wan to set an limit on the RPC timeout
so that you'll have time to retry the write at least once within the
30 second request limit.   If you still get an error after some number
of retries, notify the client.


Robert





On Fri, Feb 11, 2011 at 11:35, stevep <[email protected]> wrote:
> Thanks for this. I may give it a try (after just rewriting my code to
> go back to using the handler).
>
> Important question: the central value proposition of using deferred
> (from the docs) is below. Can anyone confirm that passing a function
> and related data to one's queue is going to not hit the limit.
>
> I don't want to code all this up just to see another log error saying
> task queue item sizes are limited. The deferred process seems to add
> marginal ease of development on my side vs. what I would guess is more
> overhead on the task queue side. So why would getting a task queue
> item set via a deferred function call be unlimited by Google vs. the
> less complex (I'm guessing here) direct task queue function call? [GAE
> design optimization: "an enigma, wrapped in a mystery..."]
>
> From Google's docs: "The deferred library will package up your
> function call and its arguments, and add it to the task queue."
>
> On Feb 11, 4:47 am, djidjadji <[email protected]> wrote:
>> Have a look at the deferred API in the SDK. No limit on the payload of
>> a task, it is stored temporarily in the datastore.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to