Is it possible to access the GAE datastore without an HTTP request?

Is it possible to access the GAE datastore without creating an appengine context from an HTTP request? I want to have access to the data store in separate threads that do not have access to the application engine context. Is it possible? or should I try to find a job? the language in which it works is Go btw ...

EDIT: Additional Information The reason I can’t use it passes all the appengine contexts to the level needed because I am creating a chat server with multiple threads. As soon as the initial port listening thread starts with one instance of the context, it maintains this context throughout the stream. However, after this thread starts, there may be many more connections to the server, all of which cannot go through the context, because the port listener is already running. The reason I need context has gone all the way because I need to be able to log messages in a client read handler. thanks in advance

+7
source share
2 answers

I'm not sure if this is what you are looking for, but GAE provides a remote api that gives you the ability to interact with your service. I am sure that it is provided for versions of Python and Java.

+3
source

I think you will need appengine.Context (and therefore the request) for any access to the data store. Fortunately, the request should be simple enough to go anywhere in your code.

I'm not sure what appengine_internal does with a context, but the context itself can be passed back and forth as needed. Maybe a code example would be a good next step if you don't think this will work for you?

+1
source

All Articles