How Firebase handle conflict resolution on data synchronization

1,172 views
Skip to first unread message

syahmi husaini

unread,
Oct 30, 2017, 3:28:29 PM10/30/17
to Firebase Google Group
HI

im final year project student that develop an application that support data syncrhonization to make it  run while offline mode. 

i want know how Firebase handle conflict resolution on data synchronization.

Kato Richardson

unread,
Oct 31, 2017, 2:30:41 PM10/31/17
to Firebase Google Group
Hello Syahmi,

Assuming that we're talking about the Firebase Realtime Database, it uses last-write-wins to merge data. So basically, whichever one gets to the server last overwrites the previous values.

However, you can use transactions and security rules to set up any sort of conflict resolution you want.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d158c3c6-aef0-4df2-bf37-0df7f7590555%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages