Repository logo
Research Outputs
Projects
People
Statistics
  1. Home
  2. HSG CRIS
  3. HSG Publications
  4. Consistent Local-First Software: Enforcing Safety and Invariants for Local-First Applications
Details

Consistent Local-First Software: Enforcing Safety and Invariants for Local-First Applications

Journal
IEEE Transactions on Software Engineering
ISSN
0098-5589
Type
journal article
Date Issued
2025-01
Author(s)
Köhler, Mirko
;
George Zakhour  
;
Pascal Weisenburger  
;
Guido Salvaneschi  
DOI
10.1109/TSE.2024.3477723
Abstract
Local-first software embraces data replication as a means to achieve scalability and offline availability. A crucial ingredient of local-first software are mergeable data types, like conflict-free replicated data types (CRDTs), which feature eventual consistency by enabling processes to access data locally and later merge it with other replicas in an asynchronous manner. Notably, the merging process needs to adhere to application constraints for correctness. Ensuring such application-level invariants poses a challenge, as developers must reason about the replicated program state and resort to manual synchronization of specific application components to enforce the invariant.

This paper introduces ConLoc (Consistent Local-First Software), a novel system designed to automatically enforce safety and maintain invariants in local-first applications. ConLoc effectively addresses the issue of preserving invariants in the execution of programs with replicated data types, including CRDTs. Our approach is able to verify the correctness of many CRDTs examined in the literature and in implementations, such the ones used in the Riak database. ConLoc ensures that applications are automatically synchronized correctly, resulting in substantial latency and throughput improvements when compared to sequential execution, while upholding the same set of invariants.
Keywords
replication
consistency
verification
CRDT
Java
Refereed
Yes
Publisher
Institute of Electrical and Electronics Engineers (IEEE)
Volume
51
Number
1
Start page
53
End page
65
Pages
13
URL
https://www.alexandria.unisg.ch/handle/20.500.14171/124555
File(s)
Thumbnail Image
Name

2024_Consistent-Local-First-Software-Enforcing-Safety-and-Invariants-for-Local-First-Applications.pdf

Size

684.18 KB

Format

Adobe PDF

Checksum (MD5)

928748d68c65aec0662fdf732b240b07

Support
HSG researchers can find instructions here for adding or importing publications (DOI, ORCID). Please send questions to alexandria@unisg.ch

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify