Communication with data storage and cloud storage from google Compute engine in Java

I have a GAE application that creates some data in the Google Cloud Data Warehouse and stores some binary files in Google Cloud Storage - call the WebApp application.

Now I have another application running on Google Cloud Storage Google. Call the ComputeApp app.

Now ComputeApp should connect to Datastore, request the objects created by WebApp, and read the associated binary from Google Cloud Storage. Then CoumputeApp does some processing on the binary, thus transcoding to a different format and saving it back to the cloud storage and the update-related entity in the data store.

Now let me describe the problem:

How can ComputeApp interact with a DataStore? (I use Objectify for this) The only method I found is the GAE Remote API for Java. It works when connected to my WebApp running locally, but it does not work when connected to my WebApp deployed to GAE. Probably the reason is described here . But I do not know python, so I do not understand the solution described. Is there any other way my ComputeApp can contact the Datastore GAE service?

Thank you so much!

Edit: I fixed my typo as correctly understood.

+3
java google-app-engine google-cloud-datastore google-compute-engine
source share
2 answers

You can connect to the Datastore from the Compute Engine using the Google Cloud Storage API (currently in preview mode)

There is currently no support for the App Engine Java client library such as Objectify, only the low-level protobuf-based Java APIs: see the Java Getting Started Guide .

I created the problem in a publicly tracked problem , because this is what the engineering team is interested in supporting in the future.

+1
source share

This open source API (using the Json API) is simpler than the api protocol buffer

https://github.com/JavaMonday/gcd-json-java

usage example:

List<Foo> list = ds.gqlQuery(Foo.class).queryString("SELECT * FROM Foo").list(); 
0
source share

All Articles