Menu

Offline sync system design interview: what happens when two devices disagree
📰

Offline sync system design interview: what happens when two devices disagree

DEV Community: mobile·Mike Salari·5 days ago
#vZ4PQLX0
#devtomobile#devto#dev#server#sync
Reading 0:00
15s threshold

Ask a room of mobile engineers to design offline sync and most of them reach for a library and a merge strategy within five minutes. Then I ask: the user edits the same note on a phone in the metro and on a laptop at home, and both sync an hour later. Which edit survives, and who decided that?

I have run 500+ technical interviews from the hiring side over 15 years in mobile. Offline sync is the prompt where "we use last write wins" sounds like an answer and is really the absence of one. Last write wins is a conflict policy too. It just lets a clock decide.

This is a worked answer, platform-neutral, because nothing in it depends on iOS or Android.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.