Data Synchronisation Flashcards

1
Q

Describe the Read-Only optimized Data Sync

A
  • Client calls the server with last sync time
  • Server returns changed and deleted entities
  • Client updates current local storage entities
  • Client deletes removed entities
  • Client updates last sync time
  • server only sends changed data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe Read-Write sync pattern with Last Write Wins strategy

A
  • Client retrieves changed entities(added, updated & deleted)
  • Client calls server with list of changes
  • Server updates data (added, updated & changed)
  • Server returns updated list of data
  • Client deletes current local storage
  • Client creates new local storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe Read-Write sync with conflict detection

A
  • Client checks for unresolved conflicts(if so, aborts)
  • Client retrieves changed entities (Added, updated & deleted)
  • Client calls server with list of changes and last sync times
  • Server checks data for conflicting changes, creates list of conflicts
  • Server updates data (added, updated and deleted)
  • Server returns updated list of data and list of conflicts
  • Client checks for conflicts
  • Client deletes current local storage
  • Client creates new lpocal storage entities
  • Client resolves pending conflicts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly