Yep. Goroutines belong to a single request. The Go team is working on concurrent requests per instance. Goroutines replace the need for asynchronous APIs.
Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Tue, Jun 14, 2011 at 1:58 AM, Barry Hunter <[email protected]>wrote: > http://blog.golang.org/2011/05/go-and-google-app-engine.html > > From my understanding goroutines belong to one 'request' > > On Mon, Jun 13, 2011 at 6:42 PM, bFlood <[email protected]> > wrote: > > is this available on GAE now? also, can multiple goroutines be used to > > service user requests from a single instance? I had though the Go blog > > had stated this wasn't available on GAE yet > > > > > > > > On Jun 12, 8:52 pm, "Ikai Lan (Google)" <[email protected]> wrote: > >> Depends on how much number crunching. I say just use the language you > like > >> the best. Unless you're doing some kind of non-linear ops (and a LOT of > >> them) you might not get the efficiency you're looking for moving to > Java. > >> The number crunching would have to be very significant relative to the > time > >> it takes to do IO for language speed to make a difference for simple > math. > >> > >> One advantage the Go runtime has over Python and Java is that you can > fire > >> off Goroutines within a process. A Goroutine is to Go what a Thread is > to > >> Java or a fork is to Python. You communicate between Goroutines using > >> channels and multiplex channels using the "select" statement. If you can > >> break up your heavy computation into lots of small bits, you will > consume > >> the same amount of CPU but will consume less wallclock time, returning > to > >> the user faster. > >> > >> Ikai Lan > >> Developer Programs Engineer, Google App Engine > >> Blog:http://googleappengine.blogspot.com > >> Twitter:http://twitter.com/app_engine > >> Reddit:http://www.reddit.com/r/appengine > >> > >> > >> > >> > >> > >> > >> > >> On Mon, Jun 13, 2011 at 7:47 AM, supercobra <[email protected]> > wrote: > >> > Go is slower than Java and Java has all the libraries and tools (IDE, > >> > debuggers, refactoring, profiling, etc...) that you'll need. > >> > >> > Here are the speed test results from a Google study: > >> > >> >http://www.readwriteweb.com/hack/2011/06/cpp-go-java-scala-performanc. > .. > >> > >> > -- [email protected] > >> >http://supercobrablogger.blogspot.com/ > >> > >> > On Sun, Jun 12, 2011 at 6:39 PM, jay <[email protected]> wrote: > >> > > Hi All, > >> > >> > > Anybody had a chance to play around with Go yet? > >> > >> > > My games are CPU heavy because I do a lot of number crunching on > game > >> > > data every time a user requests the game page. This code really has > >> > > nothing to do with app engine but is pure game code. I would image > >> > > this code would be significantly faster that Python. > >> > >> > > Anybody have any experiences to share yet? > >> > >> > > -- > >> > > 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. > > > > -- > > 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. > > -- 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.
