Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It’s an open question and ultimately depends on your app. For our mobile app we try to merge simple changes automatically and for trickier ones we allow the user to merge or select changes with a UI, a bit like git. We try to keep our objects small and granular enough that this very rarely occurs. For a lot of apps last write wins (e.g compare and always take the lastest timestamp) is enough and probably the most common solution you’ll see but you have to be OK with a certain amount of data loss. Newer, fancier CRDT based merging solutions are on the horizon, like Automerge for example but I feel they’re a little way off mainstream adoption.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: