{
  "slug": "chain-replication",
  "term": "Chain replication",
  "aliases": [],
  "definition": "Chain replication orders replicas so that updates enter at a head, propagate along the chain and complete at a tail that also serves queries.",
  "note": "The original OSDI 2004 protocol assumes fail-stop servers and reliable FIFO links. With an object on t servers, up to t-1 of them can fail without compromising availability. A master changes membership, and the prototype replicates that master using Paxos. These are protocol assumptions, not arbitrary-partition availability or multi-object transaction guarantees. [chain-paper]\n\nIn the paper's simulation with 1 ms per message, an update on a three-server chain takes 94 ms against 7 ms for a query. A tail failure makes processing unavailable for 2 message delivery delays, against 5 for a primary failure under primary/backup. [chain-paper]\n\nCRAQ extends this design by letting any node answer reads of clean object versions, so the original tail-only rule is not universal across chain-based protocols. [craq-paper]",
  "status": "research",
  "advantages": [
    {
      "text": "The head computes each update once and forwards the resulting state, so other replicas only apply writes and the update itself may be non-deterministic.",
      "citationIds": [
        "chain-paper"
      ]
    }
  ],
  "limitations": [
    {
      "text": "In the original design every query goes to the tail, so adding replicas increases failure tolerance without adding query-serving nodes.",
      "citationIds": [
        "chain-paper"
      ]
    }
  ],
  "related": [
    "synchronous-replication",
    "linearizability",
    "ceph-peering",
    "craq",
    "read-your-writes",
    "assise",
    "corfu",
    "replex",
    "chained-declustering"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30",
  "citations": [
    {
      "id": "chain-paper",
      "title": "Robbert van Renesse and Fred B. Schneider: Chain Replication, OSDI 2004, pp. 91-104",
      "url": "https://www.usenix.org/legacy/events/osdi04/tech/full_papers/renesse/renesse.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-replication",
      "title": "Replication acknowledgements: received, durable, applied",
      "url": "https://hesela.com/analyses/replication-acknowledgements-durability-lag/",
      "accessed": "2026-10-12"
    },
    {
      "id": "craq-paper",
      "title": "Jeff Terrace and Michael J. Freedman: Object Storage on CRAQ, USENIX ATC 2009",
      "url": "https://www.usenix.org/legacy/event/usenix09/tech/full_papers/terrace/terrace.pdf",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "chain-paper re-read 2026-10-23 for the fail-stop model, t-1 tolerance, the section 5.1 simulation latencies and the outage comparison. craq-paper re-read for clean-version reads.",
    "A companion analysis on replication acknowledgements is listed but not used in prose.",
    "The read-your-writes entry links here because a reply comes from the tail, which also serves queries, so a client's later query reflects its acknowledged update. read-your-writes is added to related for the reciprocal relation."
  ]
}
