by cstross · 14y ago · 0 comments
Sync software usually takes a conservative approach to deleting or merging records, and leaves duplicates lying around rather than risking deletion of vital user data. This is a good thing. What's bad is that the tools for housekeeping -- merging and deleting duplicates -- are generally rubbish. (I have the same problem with my phone's address book: masses of duplicates due to sync processes that conserve stuff. And trying to get rid of them using the tools provided turns out to be a tedious pain in the neck, requiring multiple mouse-clicks or focus changes per record.)
Further down the list we get into identity management issues. Nobody seems to have a really good handle on how we manage identity across multiple machines, much less how we manage esoteric stuff like family relations for delegating access to photos or music purchases or whatever.
Sync is a fundamentally broken.
The only solution is to switch to technologies where merging data is a primary core feature. Thus why I use text files and git to manage the vast majority of my data.
The sooner people realize that sync isn't fixable (or a good idea in many cases), the sooner real solutions appear.
Yep. It's weird that everything is built around just one button that says "Sync", when there are two different directions involved.
Either you want to save the state of whatever device you're currently using, or you want to revert it to the state stored in the cloud.
Export <--> Import, pretty much.
'sync' somewhat makes sense, but two sync options labelled easy to understand would go a long way to clearing this up, but... would likely introduce other issues as well.
'sync' works fine, except for when it doesn't. :/
The solution would have to be to store everything in ascii formats (probably taking a hit in terms of filesize and performance) and get everyone to understand the ascii representation each of these data formats and how to merge them effectively.
The alternative would be to build a diff tool for every binary based format out there.
The simplest solution would simply be to implement locking on everything and have one authoritative copy. So you can have your data on any device you want and share it with as many others as you want but only one person/device can have write access at any given time and can only have that once they have updated to the latest version of that rescource.
Does it do offline sync with multiple users whose changes may have different priority?
How about if time isn't set properly between multiple devices?
How about a multi-way modify/delete/rename where two records are given identical keys on more than one system, then both systems are reconciled?
I really need to write up a "Sync Gauntlet of Pain" that shows how sync implementations are incapable of making correct decisions, as they just don't have enough information, and giving them more information may not help.
Yes it does offline sync with multiple users. Changes aren't prioritized but you can configure what it does with conflicts (merge if possible, discard, or leave the conflict).
Time synchronization between multiple devices has been a solved problem for years. Not worth worrying about.
Creation of identical record keys — while theoretically possible — really never occurs in practice.
Many of the same methods can be applied to other types of synchronization, but it's more effort than most people can spare when they're in a hurry to get something released.
It's for this reason I've been keeping my eye on Rich Hickey's Datomic. It's not open source or free, but the idea of immutable data (everything is attached to a timestamp--yes, everything), seems intriguing.
We controlled the code and data 100% on both sides and I still never got it working really well.
The tradeoff is a more reliable "less messy" world, but much less innovation.
This doesn't mean that software requires less QA or design, just that it's a trade-off of two different modes of operating.
I have a business contact on my iPhone that has a contact photo of one of my relatives. I certainly didn't set it this way, but I have no idea how this happened. Is it something that my iPhone did? Is it something that happened at Google (it's a Google contact)? Is it something that my Windows 8 contacts app did (syncs to Google contacts)? I don't know, and even if I did, I don't know if I'd be able to fix it.
Frustrating. We sandbox our applications, and the success of the iPhone shows that this is something users want. Why can't we sandbox the other parts of our computers? Sure, I could "delink" everything and maintain it all myself, but I wish it wasn't so "all or nothing".