{
  "slug": "adaptive-replica-selection",
  "term": "Adaptive replica selection",
  "aliases": [],
  "definition": "Adaptive replica selection routes a request among eligible data replicas using changing performance or load information rather than a fixed choice.",
  "note": "A local outstanding-request count measures one client's unfinished requests, not all work at the replica. C3's motivating illustration prints 60 ms for an equal split of twelve jobs across 4 ms and 10 ms servers and 32 ms for an ideal allocation. [c3] Under an explicit empty, serial, deterministic model with simultaneous arrivals, Hesela instead obtains 36 ms at a 9/3 split: by 32 ms the two servers can finish only 8 + 3 = 11 jobs. This model does not re-evaluate C3's experiments. [burst-audit] Load-sensitive choices can also synchronize clients onto one replica, producing oscillation. [c3]\n\nIn C3, servers return queue size and service time on each response, and clients smooth both with moving averages. The queue estimate is 1 + os * w + q, where os counts the client's own outstanding requests and w was set to the number of clients. Ranking uses the cube of that estimate divided by the service rate, so long queues are penalized more than under a linear score. Rate control and backpressure complement the ranking, without request reissues. [c3]\n\nThe paper reports up to a factor of 3 lower 99.9th-percentile latency and up to 50% higher read throughput, from a prototype on one open-source database with synthetic workloads in a public cloud. It does not establish a universal speedup for other engines or current deployments. [c3] The two-choice supermarket result concerns a homogeneous Poisson/FIFO/exponential-service model with current queue lengths. Its asymptotic comparison is not a universal exponential speedup for finite storage deployments or stale feedback. [p2c2001]",
  "related": [
    "hedged-request",
    "tied-request",
    "tail-latency",
    "asynchronous-replication",
    "session-guarantees",
    "monotonic-writes",
    "quantile",
    "d-sptf",
    "load-aware-hedging",
    "sroute",
    "power-of-two-choices",
    "tars",
    "feedback-age"
  ],
  "citations": [
    {
      "id": "c3",
      "title": "Suresh, Canini, Schmid and Feldmann. C3: Cutting Tail Latency in Cloud Data Stores via Adaptive Replica Selection. NSDI 2015, sections 2, 3.1 and 5.",
      "url": "https://files.usenix.org/s3fs-public/cdn/nsdi15-paper-suresh.pdf",
      "accessed": "2026-11-12"
    },
    {
      "id": "hesela",
      "title": "Hesela. Hedged reads: replica dependence and cancellation work, with exact synthetic examples.",
      "url": "https://hesela.com/analyses/storage-tail-slowdowns-raid-fanout/#hedged-reads",
      "accessed": "2026-10-17"
    },
    {
      "id": "p2c2001",
      "title": "Mitzenmacher. The Power of Two Choices in Randomized Load Balancing. IEEE TPDS 12(10), 2001, pp. 1094-1104.",
      "url": "https://www.eecs.harvard.edu/~michaelm/postscripts/tpds2001.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "burst-audit",
      "title": "Hesela. Replica bursts: exact serial completion audit, capacity proof and client-partition counterexample.",
      "url": "https://hesela.dev/research/replica-burst/README.md",
      "accessed": "2026-11-20"
    }
  ],
  "status": "research",
  "advantages": [
    {
      "text": "Feedback rides on existing responses, so ranking needs no separate probing traffic.",
      "citationIds": [
        "c3"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A concurrency weight tied to the client count is a good approximation only when that count is comparable to expected queue lengths.",
      "citationIds": [
        "c3"
      ]
    },
    {
      "text": "The two-choice result assumes Poisson arrivals and exponential service times with mean 1, not heterogeneous replicas with delayed feedback.",
      "citationIds": [
        "p2c2001"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-21",
  "provenance": [
    "c3 re-read 2026-10-23, sections 2, 3.1 and 5, for the 4 ms and 10 ms burst example, the queue estimate, cubic ranking and the factor-of-3 and 50% results.",
    "p2c2001 read 2026-10-23, abstract and sections 1 to 3, for the supermarket model and the exponential gain from two choices.",
    "The quantile entry links here because the reported tail gains are stated as 99.9th-percentile response times.",
    "A companion analysis on hedged reads is listed but not used in prose.",
    "2026-11-20: narrowed the two-choice comparison to its model and linked the dedicated current-versus-stale-feedback record.",
    "2026-11-20: visually reviewed C3 Figure 1 on printed page 515; replaced the unqualified 32 ms completion claim with attributed source labels and an independently tested 36 ms result under explicit deterministic serial assumptions."
  ]
}
