Laurent
Laurent

Reputation: 1058

Scalable polling of an AppEngine application from numerous "active" clients?

I'm working on an application that will run on Google AppEngine.

I plan to have the web interface of that application wait, among many other things, for notifications coming from the AppEngine server.

Ideally I would have liked to use an XMLHttpRequest() to make a request to the server that would be waiting until the next notification comes from the application.

However there does not appear to be in AppEngine to support this type of logic (correct me if I'm wrong). This means I appear to be limited to polling at periodic intervals.

So the question is:

I am specifically interested in suggestions for good management of the polling intervals from the client side and tips for efficient handling of the requests in the AppEngine application as the number of "active" clients grows.

PS: the type of information polled from the server will typically be JSON-encoded information about recently updated/added bits of information (read recently as: in the past few seconds or minutes).

Status Update

Here is a summary of my thoughts so far around this question:

Comments and pointers to code examples welcome!

Upvotes: 2

Views: 1163

Answers (1)

zgoda
zgoda

Reputation: 12895

OR...

You might be interested in some pubsub implementation. Like the venerable pubsubhubbub, made by guys from Google and Jaiku.

Upvotes: 1

Related Questions