google-cloud

Google Cloud Platform: Clojure + {GAE, GCE, anything else on Google Platform}
nickbauman 2017-01-23T20:46:44.000481Z

In my experience with the Python remote API it’s never really been a problem.

2017-01-23T23:41:49.000482Z

@nickbauman my understanding is that remoteapi only talks to gae services, not app servlets.

2017-01-23T23:42:31.000483Z

so it will always work. services never time out.

nickbauman 2017-01-23T23:42:56.000484Z

The python remote API executes your python code locally on the remote app ID instance.

nickbauman 2017-01-23T23:43:21.000485Z

So anything you can do in your app, you can do with the remote API.

nickbauman 2017-01-23T23:44:24.000486Z

Things like interacting with the DataStore will be very slow, though. Because the calls have to go from your computer to the cloud then to DataStore.

2017-01-23T23:44:27.000487Z

i think it's the same for java. but local code has nothing to do with servlets running on gae. am i missing sth?

nickbauman 2017-01-23T23:44:41.000488Z

🤷 not sure.

2017-01-23T23:46:14.000489Z

you can write local code to do anything, using remoteapi, i guess. but remoteapi calls do not use your app servlets, i think.

nickbauman 2017-01-23T23:47:10.000490Z

huh interesting

2017-01-23T23:47:32.000491Z

so wrt to running a clojure repl in the gae cloud, remoteapi is a whole 'nother thing.

nickbauman 2017-01-23T23:47:55.000492Z

Yeah

nickbauman 2017-01-23T23:49:01.000493Z

With python you just fire up an iPython interpreter and it just works. Ironically, you can even do this with your Java project. It’s just that you can’t really call the java code from Python.

2017-01-23T23:49:56.000494Z

if you run a "manual" instance, it will never die, but even then you must guarantee gae will not spin up another instance. i dunno if that's possible. my conclusion is that runnig an embedde repl in a gae servlet prolly wont't work.

2017-01-23T23:50:44.000495Z

ok but wven in python, do remoteali calls talk to instances?

2017-01-23T23:51:51.000496Z

in ha

2017-01-23T23:53:19.000497Z

in java, you can do cmd line stuff to e.g. manipulate the datastore, but it does not go thru your app servlets, at least that's my understansing.