What happens when you start an RPC, but not wait for it to finish is
not really defined. As you have may have noticed, it also works
differently in production and in the dev appserver.

Also note that since it is not defined, the behaviour may change at anytime.

I would suggest that you should also wait for an rpc call to finish
before returning from your handler. This will also allow you to
determine if the rpc call succeeded or not.

On 23 September 2011 12:52, keakon lolicon <kea...@gmail.com> wrote:
> The SDK will automatically create a RPC object for async function, or you
> can create it by yourself.
> Before the end of your response, the RPC object will block the respond and
> wait until it's done, and no callback will be called.
> However, it looks like the local dev server just ignores it.
>
> ----------
> keakon
> My blog(Chinese): www.keakon.net
> Blog source code: https://bitbucket.org/keakon/doodle/
>
>
> On Fri, Sep 23, 2011 at 8:17 AM, Albert <albertpa...@gmail.com> wrote:
>>
>> Suppose I call URLFetch Async, and then I return a response to the
>> user without calling get_result().
>>
>> 1. Does a frontend instance wait for the response of the fetched URL,
>> and consume instance time? Or does some background appengine server
>> handle that for me, and then just discards the response of the url
>> because I never called get_result()?
>>
>> 2. Is the behavior the same for datastore async, memcache async, and
>> other async calls?
>>
>> Thanks!
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> 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 google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> 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 google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to