Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to sync data between different devices

Tags:

I am planing to implement an app and I have come to a point where I don't know what is the best approach.

Scenario:

I have an app where I am making a todo list and I am adding 3 items. I use my phone for this. Then I take my tablet and want to continue adding another task. Then after a while I take my wife's phone and want to add 2 new tasks.

Basically I want to have a very simple way of storing the tasks online and be able to sync it with the app.

I am seeing two possible ways:

  • have a web server with a database + web service calls. This has the disadvantage of having a host paid, learn some extra mysql + web service techniques.

  • store somehow the data on cloud and allow the app by login to access an account which stores the file. I am thinking here at something like Google Drive / Dropbox. But I don't know how I would be able to sync only the updated values, not the whole file. Because I am thinking, if I store all the tasks into one file, each time I update the file, I'll need to upload it fully, which is not the best approach.

I am open to any advices. What approach would you recommend ?

like image 458
Alin Avatar asked Jul 16 '13 20:07

Alin


People also ask

How is data synced between different devices communicating to each other?

Data synchronization is the ongoing process of synchronizing data between two or more devices and updating changes automatically between them to maintain consistency within systems. While the sheer quantity of data afforded by the cloud presents challenges, it also provides the perfect solution for big data.

What does it mean to sync two devices?

Syncing means transferring items and keeping them up to date between your Mac and your iPhone, iPad, or iPod touch. For example, when you add a movie to your Mac, you can sync so that the movie appears on both your Mac and iPhone.


1 Answers

There's also Google Drive's "Application Data" folder.

https://developers.google.com/drive/android/appfolder

This has the advantage of using the user's storage space.

like image 143
Mike Avatar answered Nov 03 '22 00:11

Mike