Move data from datastore to Android app

48 views
Skip to first unread message

Yair Ko

unread,
Jan 3, 2017, 3:10:31 AM1/3/17
to Google App Engine
I'm breaking my head about this

I have a servlet deployed on app engine and I managed to write to the datastore.
Now I need, per user request (android app) to query data and move it back to the app.

Does anyone know anything about this ? Help is appreciated !


Jordan (Cloud Platform Support)

unread,
Jan 3, 2017, 11:16:40 AM1/3/17
to Google App Engine
As this is a duplicate post of your original question, I recommend you take a look at the answers provided to you there. 

To reiterate, your Android client app should only be treated as a Frontend, A frontend simply accepts user input and sends requests to your backend on behalf of your user. Your backend is the actual brains of your application that will perform all database interactions and data manipulation. By separating backend from frontend, you are allowing your frontend to be light weight and fast. By hosting your backend on Google Cloud App Engine, you are also allowing your backend to scale dynamically based on your Android app's traffic, to ensure that your backend is also fast and responsive no matter the load it is under.

I recommend you take a look at our App Engine Endpoints design pattern for more information about creating a backend on Google Cloud, and how to use Endpoints to allow your frontend Android app to communicate with your App Engine backend. 

Yair Ko

unread,
Jan 3, 2017, 12:10:34 PM1/3/17
to Google App Engine
Thank you Jordan

Would you say that using Servlet module is as good as using Endpoint module ? Because this is what I use at the moment.

Jordan (Cloud Platform Support)

unread,
Jan 3, 2017, 3:32:12 PM1/3/17
to Google App Engine
You can definitely continue to use Servlets instead of Endpoints. You can think of Endpoints as a REST optimized layer that takes care of a lot of the manual setup for you using simple annotations. With Servlets you will need to manually configure the URL paths for client access, as well as any security you wish to have to protect your methods from undesired access.  


Reply all
Reply to author
Forward
0 new messages