PSync: a partially synchronous language for fault-tolerant distributed algorithms
Authors:
Open Access
- 11 January 2016
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 51 (1) , 400-415
Abstract
Fault-tolerant distributed algorithms play an important role in many critical/high-availability applications. These algorithms are notoriously difficult to implement correctly, due to asynchronous communication and the occurrence of faults, such as the network dropping messages or computers crashing. We introduce PSync, a domain specific language based on the Heard-Of model, which views asynchronous faulty systems as synchronous ones with an adversarial environment that simulates asynchrony and faults by dropping messages. We define a runtime system for PSync that efficiently executes on asynchronous networks. We formalise the relation between the runtime system and PSync in terms of observational refinement. The high-level lockstep abstraction introduced by PSync simplifies the design and implementation of fault-tolerant distributed algorithms and enables automated formal verification. We have implemented an embedding of PSync in the Scala programming language with a runtime system for partially synchronous networks. We show the applicability of PSync by implementing several important fault-tolerant distributed algorithms and we compare the implementation of consensus algorithms in PSync against implementations in other languages in terms of code size, runtime efficiency, and verification.Keywords
Funding Information
- National Science Foundation (CCF-1138967)
- European Research Council (267989)
- Austrian Science Fund (S11402-N23, Z211-N23)
- Defense Advanced Research Projects Agency (FA8650-11-C-7192, FA8650-15-C-7564)
This publication has 63 references indexed in Scilit:
- Verification of consensus algorithms using satisfiability solvingDistributed Computing, 2010
- I do declareACM SIGOPS Operating Systems Review, 2010
- The Heard-Of model: computing in distributed systems with benign faultsDistributed Computing, 2009
- The Theta-Model: achieving synchrony without clocksDistributed Computing, 2009
- Scala Actors: Unifying thread-based and event-based programmingTheoretical Computer Science, 2009
- The part-time parliamentACM Transactions on Computer Systems, 1998
- Unreliable failure detectors for reliable distributed systemsJournal of the ACM, 1996
- Consensus in the presence of partial synchronyJournal of the ACM, 1988
- Decomposition of distributed programs into communication-closed layersScience of Computer Programming, 1982
- Communicating sequential processesCommunications of the ACM, 1978