The AJAX disconnect and reconnect option is not all that difficult.
While it's certainly nice to do push, the limitation is certainly
understandable from a billed-resources perspective.

Basically, to do it, you build into your AJAX request handlers a
setTimeout command which queues up a request for a new connection in X
milliseconds.

To make it easier, I even recommend pushing request parameters onto a
stack, and then having a "run queue" function that's executed
periodically.  That 'rq' function pops out whatever's on the stack and
uses it to determine what sort of job needs to be done.  That might be
updating a display, doing an AJAX request, saving work in progress,
issuing an alert to the user.  It's a nice way to manage tasks.

Bne

On Apr 20, 9:33 am, 风笑雪 <kea...@gmail.com> wrote:
> GAE must give a response in 30 seconds.
> So if you want use server push, you have to let clients disconnect every 30
> seconds, then build new connections( maybe use AJAX ).
>
> Gmail is doing this way, but I think it's very difficult to do it.
>
> 2009/4/20 q2 <tauru...@gmail.com>
>
>
>
> > I am planning to create a web application that will use BlazeDS server
> > to push data to Flash clients. Would I be able to install it in Google
> > App Engine environment? It comes bundles with Tomcat server, so
> > probably I would need to install Tomcat as well.
>
> > Also, this sentence about Google App Engine Sandbox makes me doubt
> > that I can use any kind of push HTTP technology in Google App Engine:
> > "Application code only runs in response to a web request or a cron
> > job" Does that mean I'm not supposed to broadcast?
>
> > Thank you.
--~--~---------~--~----~------------~-------~--~----~
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