views:

233

answers:

2

I would like to create a web IM chat system using Google App Engine using XMPP possibly.

It would allow users of a social network to talk with each other. Is this possible using GAE?

I haven't used GAE before. Does anybody know of any good examples/code which I could look into to get started?

A: 

It's certainly possible. I would start with reading http://code.google.com/appengine/articles/using%5Fxmpp.html in order to get started.

lemonad
thanks for the response. I was looking at that document, but couldn't figure out if it was possible for two people using GAE to communicate with each other (without using an external XMPP server). Do you know if that is possible?
chris
+2  A: 

If all your communication is between users who are interacting with your site directly, there's no need to use XMPP, or benefit from it - just write your IM system into the site directly. XMPP support is designed for interaction with external IM services.

Alternately, you could embed the Google Talk gadget in your site, but that will require users to sign in to their Google accounts to use it.

Nick Johnson
ok, the reason I asked about XMPP was because I needed real-time chatting software. So does GAE support COMET or something similar?
chris
comet is not possible you could fake it using an external api? http://www.brightyellowcow.com/blog/Comet-AJAX-push-using-PHP-or-Google-App-Engine.html
Alfred
The approach there is called 'long polling', and isn't supported in App Engine.
Nick Johnson
@chris: No, not currently. Embedding the Google Talk gadget may be practical; using other external services is also an option.
Nick Johnson