简体   繁体   中英

Google AppEngine communicating with Compute Engine

I want to be able to send a command from Google AppEngine to my Compute Engine.

More specifically, I want to install pdftk on my Compute Engine and be able to send data to the Compute Engine through my Google App Engine.

  • Google App Engine receives data
  • Google App Engine sends data to Compute Engine
  • Compute Engine runs pdftk, creates the PDF, maybe uploads it to Google Cloud Storage or sends it back to Google App Engine where Google App Engine uploads it
  • Google App Engine sends temporary public link to the file.

I'm just having trouble figuring out how to link my AppEngine with my Compute engine.

I want to be able to do this in PHP. Could anyone point me to some examples . I have looked through all the API Reference stuff but I don't really understand it.

An App Engine instance can talk to a Compute Engine instance the same way as any two servers talk to each other over the Internet, for example, by using GET and POST http requests.

If instances belong to different projects, you will need to use a public Ip address for your Compute Engine instances. See for more details: Can Google App Engine make a http request to a Compute Engine instance within the same project without an external IP?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM