[Paper Review] Building on Quicksand
This paper introduces a model for building highly available distributed systems by embracing eventual consistency and probabilistic guarantees in the face of large-scale component failures. By decoupling primary system acknowledgment from backup synchronization, it enables low-latency responsiveness at the cost of temporary inconsistency, with applications required to handle eventual consistency through idempotent operations and state reconciliation.
Reliable systems have always been built out of unreliable components. Early on, the reliable components were small such as mirrored disks or ECC (Error Correcting Codes) in core memory. These systems were designed such that failures of these small components were transparent to the application. Later, the size of the unreliable components grew larger and semantic challenges crept into the application when failures occurred. As the granularity of the unreliable component grows, the latency to communicate with a backup becomes unpalatable. This leads to a more relaxed model for fault tolerance. The primary system will acknowledge the work request and its actions without waiting to ensure that the backup is notified of the work. This improves the responsiveness of the system. There are two implications of asynchronous state capture: 1) Everything promised by the primary is probabilistic. There is always a chance that an untimely failure shortly after the promise results in a backup proceeding without knowledge of the commitment. Hence, nothing is guaranteed! 2) Applications must ensure eventual consistency. Since work may be stuck in the primary after a failure and reappear later, the processing order for work cannot be guaranteed. Platform designers are struggling to make this easier for their applications. Emerging patterns of eventual consistency and probabilistic execution may soon yield a way for applications to express requirements for a "looser" form of consistency while providing availability in the face of ever larger failures. This paper recounts portions of the evolution of these trends, attempts to show the patterns that span these changes, and talks about future directions as we continue to "build on quicksand".
Motivation & Objective
- To address the growing challenge of system latency caused by synchronous backup communication in large-scale distributed systems.
- To propose a shift from strong consistency to eventual consistency as a viable model for fault tolerance in modern distributed systems.
- To enable higher system availability and responsiveness by allowing primary systems to acknowledge requests before confirming backup replication.
- To guide platform designers and application developers in expressing and managing looser consistency requirements.
- To identify and formalize emerging patterns for probabilistic execution and state management in unreliable environments.
Proposed method
- Introduces an asynchronous state capture model where the primary acknowledges requests before ensuring backup replication.
- Relies on probabilistic guarantees: promises made by the primary are not guaranteed to survive a failure if the backup is not notified.
- Employs idempotent operations and state reconciliation to ensure eventual consistency despite reordering or duplication.
- Designs systems to tolerate failures that occur shortly after a promise is made, assuming such failures are rare.
- Uses application-level logic to detect and resolve inconsistencies, rather than relying on synchronous coordination.
- Leverages patterns such as version vectors and conflict-free replicated data types (CRDTs) implicitly through design principles.
Experimental results
Research questions
- RQ1How can system responsiveness be improved when synchronous backup communication introduces unacceptable latency?
- RQ2What are the implications of decoupling request acknowledgment from backup replication in distributed systems?
- RQ3How can applications ensure correctness and consistency in the face of probabilistic guarantees and potential data loss after failure?
- RQ4What architectural patterns enable reliable systems to be built on inherently unreliable components at scale?
- RQ5How can platforms expose abstractions that make eventual consistency manageable and predictable for developers?
Key findings
- Asynchronous state capture significantly improves system responsiveness by eliminating wait times for backup confirmation.
- The model introduces probabilistic guarantees: while no promise is ever fully guaranteed, the probability of failure is low and manageable.
- Applications must be designed to handle eventual consistency, including idempotent operations and state reconciliation after failures.
- The shift from strong to eventual consistency enables higher availability and scalability in large-scale distributed systems.
- Emerging patterns such as idempotency and conflict resolution are essential for building reliable systems on unreliable components.
- The paper identifies a paradigm shift: systems must be built on 'quicksand'—unstable foundations—by design, not by accident.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.