One of the most beautiful things about Go in my opinion is that you can make anything asynchronous by placing the "go" keyword in front of a function call.
The other runtimes needed to add synchronous and asynchronous versions of all their APIs because their language did not easily support both.
So I believe that it is fair to say that you will never see asynchronous versions of any API for the Go programming language just because the language itself makes this a non-issue.
-- Glenn
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
Dumb question, but why not just use a queue or the delay package?
Sent from my mobile doohickey
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
Push task queues will probably be what you're after:https://developers.google.com/appengine/docs/go/taskqueue/
On 27 June 2014 09:41, Fred Janon <fja...@gmail.com> wrote:
Thanks, my point is: I don't want to "blocking until it is completed before returning from the handler".In Java, I allocate a new ID, set up the write op, send it off to the DS and return immediately from the request handler. Later on, the client can check on the data written if necessary.
On Friday, June 27, 2014 1:06:06 AM UTC+2, Glenn Lewis wrote:
Check out this excellent talk by Dave Symonds on high-performance App Engine apps written in Go.He has an example of setting up a channel, firing off an asynchronous Datastore operation, and then later blocking until it is completed before returning from the handler.-- Glenn
On Thu, Jun 26, 2014 at 3:57 PM, Fred Janon <fja...@gmail.com> wrote:
But the go function has to complete the call to the datastore before returning, so it's not truly async as in sending the request over the wire to the SD and not waiting for the response. I still think that there is a difference between a sync and and async call.
On Thu, Jun 26, 2014 at 6:14 PM, Glenn Lewis <gml...@google.com> wrote:
One of the most beautiful things about Go in my opinion is that you can make anything asynchronous by placing the "go" keyword in front of a function call.
The other runtimes needed to add synchronous and asynchronous versions of all their APIs because their language did not easily support both.
So I believe that it is fair to say that you will never see asynchronous versions of any API for the Go programming language just because the language itself makes this a non-issue.
-- Glenn
On Jun 26, 2014 8:52 AM, "Fred Janon" <fja...@gmail.com> wrote:
Are we going to see an async version of the datastore for Go as in Java?--ThanksFred
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsubscribe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.