• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps App development with DynamoDB

Hi everyone,

I have an inquiry (not a code issue) and I'm not sure if this is the right place to post it or not, but I'm seeking your help and support.

I'm developing an Android Application and I want it to be connected to a DynamoDB database on AWS, the tables on DynamoDB already exist and have a lot of data that I want them to be sent (or synchronized with the app) once the user opens the application on his phone. The current use case is that there's no user login, so basically the data are being sent from DynamoDB to the App but not vice versa. The current status is that I'm able to connect to the DynamoDB and retrieve the data (that's not a problem), but what should I do to guarantee the best performance? Should I always keep the user connected to the database on DynamoDb and keep retrieving data directly from it? Or should I make a local db (SQLite) within the app and store the data in it and only synchronize when needed? And is it actually secure to make the App always connected to the DynamoDB directly ? Or should I make something like interface between the App and DynamoDB? (I heard that from someone but I don't know how can it be done or where)

Apologies for the long post, and I would appreciate your help

Thanks,
 
I'm no expert, so take my opinion for what it's worth - It seems to me that there are potential problems with keeping a persistent connection. I'm not sure how that would affect data usage, but at the least, you end up not being able to use the app when not connected. If you sync periodically, the app could be used when offline as well.

Maybe have a class that handles the synchronization periodically and runs separately from the rest of the app process?
 
Back
Top Bottom