Duplex Web Service possible ?

85 views
Skip to first unread message

Richard Roylance

unread,
Jun 14, 2011, 9:33:02 AM6/14/11
to google-a...@googlegroups.com
Hi,
 
Is it possible to host a duplex web service on GAE ?
 
Basically I am wanting to have a mobile app and a desktop app that will message each other through a duplex web service. I currently have this working using a TCP socket connection, but obviously this will not work unless the 2 devices are on the same network. That is why i need to make a duplex web servioce to facilitate the communication.
 
Thanks.

Barry Hunter

unread,
Jun 14, 2011, 10:53:52 AM6/14/11
to google-a...@googlegroups.com
Not really. AppEngine basically uses a 'request/responce' method.
basically CGI http://www.w3.org/CGI/

AppEngine can't keep connections open. Its designed for HTTP requests

There is the ChannelAPI, which makes persistant connections possible
(using long-polling?) but doesnt sound suitable (its still HTTP).


xmpp directly might be useful as a communication medium. I dont really
know much about it. Perhaps you can use it without involving
AppEngine. Or AppEngine could be a 'controller' or a 'mediator' so
that devices can find each other.

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/wJmJCwYvVVAJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

bFlood

unread,
Jun 14, 2011, 3:14:51 PM6/14/11
to Google App Engine
how about http://www.pubnub.com



On Jun 14, 10:53 am, Barry Hunter <barrybhun...@gmail.com> wrote:
> Not really. AppEngine basically uses a 'request/responce' method.
> basically CGIhttp://www.w3.org/CGI/

Nick Johnson (Google)

unread,
Jun 15, 2011, 1:56:42 AM6/15/11
to google-appengine
What is a "duplex web service"?

-Nick

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/wJmJCwYvVVAJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.



--
Nick Johnson, Developer Programs Engineer, App Engine


Branko Vukelic

unread,
Jun 14, 2011, 10:57:57 AM6/14/11
to google-a...@googlegroups.com
On Tue, Jun 14, 2011 at 4:53 PM, Barry Hunter <barryb...@gmail.com> wrote:
> xmpp directly might be useful as a communication medium. I dont really
> know much about it. Perhaps you can use it without involving
> AppEngine. Or AppEngine could be a 'controller' or a 'mediator' so
> that devices can find each other.

As far as I know, XMPP is capable of transmitting and receiving any
structured data in the form of XML. I've seen it used in applications
that need collaborative editing (Inkscape, NetBeans), so I'm guessing
it's not limited to text chat.

--
Branko Vukelić
bra...@herdhound.com

Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com

Calvin

unread,
Jun 15, 2011, 7:38:43 PM6/15/11
to google-a...@googlegroups.com
I'll second this.  My experiments with PubNub were very promising.

bFlood

unread,
Jun 16, 2011, 7:47:34 AM6/16/11
to Google App Engine
plus they got this great video :)

http://bitly.com/lkF5Ff

RR

unread,
Jun 16, 2011, 8:23:47 AM6/16/11
to google-a...@googlegroups.com
Thanks for all the replies guys, ill look into pubnub, it looks promising.

Calvin Spealman

unread,
Jun 16, 2011, 8:26:34 AM6/16/11
to google-a...@googlegroups.com
Have you looked at the Channel API?

http://code.google.com/appengine/docs/python/channel/overview.html

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/wJmJCwYvVVAJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

--
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy

RR

unread,
Jun 16, 2011, 2:05:40 PM6/16/11
to google-a...@googlegroups.com
I have actually recieved a server to host this on, so i will not need GAE. Thanks anyway though, will keep in mind for future projects.
Reply all
Reply to author
Forward
0 new messages