News for hackers. Stuff that matters.
Re:Making email more modern with JMAP by brongondwana on Sunday August 18, 2019 @08:39AM (#20729833)
Well, it depends on how you architect your system - you can embed whatever you like in your state. I'd probably do something cheap and nasty like embed a modseq counter for each of the different servers into the state string, and if any of them went backwards I'd reject the /changes with a cannotCalculateChanges error.

I mean, you can do other things - but at the point where you're switching between multiple masters in a split brain from your client, all bets are off - so you're going to need to fall back resyncing any mutable data.

Re:Making email more modern with JMAP by jorangreef on Sunday August 18, 2019 @11:05AM (#20730561)
> but at the point where you're switching between multiple masters in a split brain from your client, all bets are off

CRDTs handle split brain fine. They eventually converge. You just don't want your clients flapping in the meantime by resyncing tons of data. That's where a distributed sync algorithm would help keep things working in the interim.