What is an efficient way of implementing long polling in Golang on Google App Engine? I came across this code, but it was made for a non-GAE application (uses channels and goroutines, which as far as I know aren't the best for GAE).
EDIT:
I specifically need to implement long polling for an application I don't control (see this reference), thus the use of Channel API as a substitution for polling will not do.
You want to use the Channel API.
Frontend instance are subject to a 60s request deadline for http request.
You can try implementing long polling using Backends as they don't suffer the same limitation (infinite deadline).