[google-appengine] Re: Accessing datastore from microservice

2018-10-22 Thread 'Olu' via Google App Engine
Quite rightly, with NDB Client Library, it would be necessary to have the NDB model in your Service. And I agree with you about the validity of a use case for sharing models among services without having to share the model among all the services that use the model. However, there is presently no

[google-appengine] Re: Accessing datastore from microservice

2018-10-20 Thread Richard Cheesmar
Ok, I'dd like to clear this up: Without having a copy of the ndb.Model in your microservice you cannot access it from the ndb client library. The point of the symlinks is to provide that access without having to copy the model definition in everytime you make a change to it. Ok, you can cut

[google-appengine] Re: Accessing datastore from microservice

2018-10-17 Thread 'Julie (cloud platform support)' via Google App Engine
This seems like a design/code issue which would be best posted on Stackoverflow. It would also be helpful to clarify why redefining your user class in GAE code when you are using NDB to get / put the data would not be sufficient. -- You received this message because you are subscribed to the

[google-appengine] Re: Accessing datastore from microservice

2018-10-17 Thread Richard Cheesmar
Hi, Sami, how do I do stuff on say a model class called users that is defined outside of the micro service inside of the micro service using just the NDB client library? I have to have access to the model definition inside of the micro service to query or save an entity to that particular ndb.M

[google-appengine] Re: Accessing datastore from microservice

2018-10-16 Thread samiislam via Google App Engine
Hi Richard, I am clarifying the point that George has made in his earlier post on the thread. Basically, Modules are services , so are microservices, they are all the same. I have to mention that the wa

[google-appengine] Re: Accessing datastore from microservice

2018-10-13 Thread Richard Cheesmar
Ok, symlinks is the answer if you need to share the model definitions. On Saturday, October 13, 2018 at 8:08:07 AM UTC+3, Richard Cheesmar wrote: > > I know how to use the ndb Client Library, that was not the question. The > question was is there any documentation for accessing the datastore from

[google-appengine] Re: Accessing datastore from microservice

2018-10-12 Thread Richard Cheesmar
I know how to use the ndb Client Library, that was not the question. The question was is there any documentation for accessing the datastore from a microservice using standard and python 2.7. It seemslike it can't be done without calling endpoints on my API modules which are all non worker pyth

[google-appengine] Re: Accessing datastore from microservice

2018-10-12 Thread 'George (Cloud Platform Support)' via Google App Engine
App Engine's Python standard runtime connects to Cloud Datastore using the NDB Client Library . The NDB Client Library provides persistent storage in a schemaless object datastore. It supports automatic caching, sophisticated queri

[google-appengine] Re: Accessing datastore from microservice

2018-10-12 Thread Richard Cheesmar
Standard Env, python2.7 On Friday, October 12, 2018 at 5:38:01 PM UTC+3, Richard Cheesmar wrote: > > Are there any docs on accessing the datastore from a microservice that > lives in the same app as other non service modules? > -- You received this message because you are subscribed to the Goog