memcached on gae and compute engine - google-app-engine

I know most likely the answer will be no but I would still like to ask even if I searched.
Is there any way to be able to update the memcache of app engine from a compute engine? I am using dedicated memcache for my appengine but I would like to be able to edit it also from a compute engine instance.

Write a simple REST API on the AppEngine to GET/POST/PUT/DELETE entries in memcache. Then call that API from your Compute Engine. You could probably write this in Go or Python.

Related

JPA for Google Compute engine to access Appengine datastore

My application is partly deployed on Appengine and partly on Compute Engine. I need to use Appengine's datastore from Compute Engine. I need ORM implementation for the same like JPA as using Remote API to access datastore will be quiet a task in my application. So kindly give any suggestions on the same.
Also does Datanucleus access platform provides anything for Compute engine to access Appengine's datastore remotely ?
There is a similar thread but its not resolved till yet.
Thanks in advance.

Accessing Task Queues and Google Datastore in Google Compute Engine

Is there a way to access task queues and the datastore from a Google Compute Engine application? If so, please point me in the right direction, if not, then I guess I'll need to build an API on the Google Compute Engine side and call the API from the Google App Engine side (less ideal)
What I'm trying to do is to have a Google App Engine pop an ID of an entity on the Task Queue, once the application on Google Compute Engine receives it, it will do a lookup and retrieve that record from the datastore, do some heavy computation on it (which is not suitable for App Engine due to its various limitations) and then store the result directly into the entity.
Yes, it's possible. You need to use a PULL queue and the Task Queue REST API to read the message inside GCE. More information here: https://developers.google.com/appengine/docs/java/taskqueue/rest/libraries
If you need to read from datastore directly, last year Google announced the Datastore API, so it should also be possible, although I have never done that. Anyway, perhaps it's possible to put the entity itself in the PULL queue to avoid another operation coming from the GCE.
Cheers!

php with google app engine or amazon-ec2

What is better to code with php in google app engine or in amazon-ec2.
I think it is better in amazon-ec2 because they support datastore with php and google app engine doesn't, what do you think ?
While its not possible to access the appengine datastore, google has a new preview service for "cloud datastore", google "cloud datastore from php" and you will see how to use it.
You really cant compare AWS with appengine as one requires managing servers and scalability manually and their noSQL solution (dynamoDB) is a joke compared to google's datastore, for example in dynamoDB you must provision your writes beforehand and even if you are all day changing provisioning, it takes sometimes hours to propagate the new setting.
I had never use Google App Engine, but several times AWS systems, and sure, as AWS EC2 could be used as Linux Server Instance, I recommend you that provider. And coz' it seems that you use PHP, they have strong API for this langage. Have fun with AWS.

Access Google Appengine datastore from Google Compute Engine via JDO/JPA

Is there a way to access the appengine datastore via JDO/JPA from a java application from within a google compute engine instance. As far as I have seen, I can access manually as described in https://developers.google.com/datastore/docs/getstarted/start_java/
This works, yet this is very cumbersome - so I am looking for a simple way to use JDO/JPA/Objectivy/... to work on a higher level of abstraction. Any ideas/hints?
You could use the Remote API.
More info over here : https://developers.google.com/appengine/docs/java/tools/remoteapi

Google Cloud Datastore vs Google App Engine

I was having a look at the new Google Cloud Datastore and looks great. But there is something I could not understand... is it supposed to substitute Google App Engine Datastore? How can I use it inside GAE? What are the differences between both of them?
I have a GAE app in Java that uses 3 entities with thousands of rows each one, and I need to do joins quite often...
The cloud datastore is the App Engine datastore, for use outside App Engine. You won't get any benefit trying to use it with your App Engine app, unless you need other external apps to also have access to the data.
You certainly won't get more efficient joins. If you really need that, perhaps you should look into Cloud SQL, which is basically a version of MySQL you can use from App Engine.
They both are the same, in fact Google App Engine can use Google Cloud DataStore as one of its way to store data, the other options include Google Cloud SQL, Google Cloud Storage. You may select among these three according to the type of data you want to store and the way you want to access them.
From your question its clear that Google Cloud SQL would be right choice as no other options provide joins for retrieving results.
Cloud SQL is nothing but MySQL(the popular open source database) running on google platform. So you can perform your regular SQL-like queries to get your results.

Resources