Communicating with GCE (PHP)

54 views
Skip to first unread message

Bryan Goldberg

unread,
Jan 17, 2015, 2:40:19 PM1/17/15
to google-a...@googlegroups.com
I have a fresh install of an Ubuntu Compute Engine. I am using the php runtime of google app engine and I was wondering if there was a way to communicate with my GCE without installing apache on my GCE.

If anyone could walk me through or recommend some notes I'd really appreciate it.

Jim

unread,
Jan 18, 2015, 2:17:02 PM1/18/15
to google-a...@googlegroups.com
you could have a process on your GCE instance that periodically polls for messages in a queue, or when your GCE instance starts you could open a channel and listen for events

Jim

unread,
Jan 18, 2015, 2:43:26 PM1/18/15
to google-a...@googlegroups.com
sorry, the channels api isn't going to work for you on a GCE instance, although you could just use a socket

queues will work for you (pull from your GCE instance)

Vinny P

unread,
Jan 21, 2015, 2:24:45 AM1/21/15
to google-a...@googlegroups.com
On Sat, Jan 17, 2015 at 1:40 PM, Bryan Goldberg <bgo...@gmail.com> wrote:
I have a fresh install of an Ubuntu Compute Engine. I am using the php runtime of google app engine and I was wondering if there was a way to communicate with my GCE without installing apache on my GCE.


As Jim said, a socket connection is probably the best way to handle communications to your GCE instance. 

However - depending on your communications needs - you could go a lot of different ways. For instance, you could have your GCE machine periodically poll a page on your App Engine site. Another alternative is to communicate over XMPP: the PHP GAE runtime doesn't have access to the XMPP service, but you could write a Java/Python module and use the App Engine XMPP capability.
 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 
Reply all
Reply to author
Forward
0 new messages