🤖 AI Summary
This work addresses the challenge of ensuring atomicity and consistency in offline-first peer-to-peer systems characterized by sparse connectivity and partial replication. To this end, it introduces— for the first time—the IntersectionAtomicity and IntersectionCC models, which formally capture the constraints on atomicity and consistency under transactional semantics in such environments. By integrating principles from distributed transaction theory with access control mechanisms, the paper develops a reasoning framework tailored to offline-first collaborative systems. Building upon this foundation, it derives practical correctness guarantees that directly inform system design, thereby significantly enhancing the reliability and correctness of applications operating under these challenging conditions.
📝 Abstract
For an offline-first collaborative application to operate in true peer-to-peer fashion, its collaborative features must function even in environments where internet connectivity is limited or unavailable. Each peer may only be interested in a subset of the application data relevant to its workload, and this subset can overlap in different ways with those of other peers. Limitations imposed by access control and mesh network technologies often result in peers being sparsely connected. Reasoning about consistency in these systems is hard, especially when considering transactional updates that may alter different sets of data in the same transaction. We present \textsc{IntersectionAtomicity} and \textsc{IntersectionCC} as models to reason about offline-first collaborative applications that are sparsely-connected and rely on partially replicating different subsets of a broader set of data. We then use these models to propose a set of guidelines to help developers design their application with atomicity and consistency guarantees.