arXiv:2611.01363cs.DBNov 2026

Manuscript Offprint

arXiv:2611.01363

Eliminating Servers in State Machine Replication

Dohyun Park, Wenjie Hu, Xiangyao Yu, Mahesh Balakrishnan, Yongjoo Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Dohyun Park dohyunp2@illinois.edu UIUC

Wenjie Hu wenjiehuhippo@cs.wisc.edu University of Wisconsin–Madison

Xiangyao Yu yxy@cs.wisc.edu University of Wisconsin–Madison

Mahesh Balakrishnan* maheshb@gmail.com Meta

Yongjoo Park yongjoo@illinois.edu UIUC

Abstract

State Machine Replication (SMR) underpins many stateful systems, including distributed databases, coordination services, and metadata stores. Fundamentally, SMR requires state to be materialized from a durable total order of commands. Existing SMR systems rely on servers to materialize, locally store, and serve snapshots of state; while the durable total order either resides on the same servers, or on an external, disaggregated shared log. Unfortunately, servers act as brittle, expensive choke-points in such systems, causing service unavailability when they fail; incurring provisioning latency on cold starts; and red-lining when exposed to bad clients. In this paper, we propose Serverless SMR (S2MRS^2MR), where both the materialized state and the durable total order are stored on disaggregated storage; clients concurrently maintain a single copy of materialized state on external storage. Our key technical insight is that the shared log abstraction is useful not just for consistently ordering commands in SMR, but also for enabling distributed materialization, thus becoming the only interface for achieving SMR. We demonstrate S2MRS^2MR by developing AirDB, a transactional key-value store. In our evaluation, AirDB over S2MRS^2MR achieves higher availability than existing SMR-based systems like etcd over Raft: it is oblivious to server failures and bad client activity; and spins up 10×−45×10\times-45\times faster from a cold start.

1 Introduction

State Machine Replication (SMR) [37, 48] is a foundational building block for stateful services, enabling durability and availability for production systems such as distributed databases and key-value stores (e.g., Spanner [27], ZippyDB [41], CockroachDB [49], YugabyteDB [14], Oceanbase [31], TiDB [32]), as well as coordination services (e.g., Chubby [25], etcd [1], ZooKeeper [34], Delos [17], KRaft [2]). In SMR, arbitrary state is replicated with strong consistency by generating and materializing a durable total order (or equivalently, a shared log) of commands. SMR is exceptionally versatile: the replicated state can consist of any black-box deterministic state machine (e.g., single-node databases, hierarchical namespaces, block stores, etc.), while the shared log can be stored via any consensus protocol: for example, an SMR system might replicate MySQL database instances using Raft (e.g.,

Figure

Figure 1. Architectural comparison. Both conventional and disaggregated SMR materialize state on servers. Under S2MRS^2MR, distributed clients materialize state on external storage via a shared log, achieving higher availability and competitive latency-throughput at lower infrastructure costs.

Meta's MyRaft [47]). In addition, SMR systems can support either single-master or multi-master operation; while the shared log can store either inputs / logical commands or outputs / physical change records.

Unfortunately, durable and highly available services based on SMR are notoriously difficult and expensive to build, deploy, and operate [16, 26]. Consider the example of a MySQL database replicated via Raft [47], which requires the replicated state (i.e., MySQL instances) and the shared log (i.e., Raft participants) to be collocated on a single set of servers. Such a service is typically deployed with five servers storing full copies of state: Raft requires at least three servers to tolerate a single server failure; and five servers to tolerate a correlated failure during a planned server upgrade. Availability can be compromised by server crashes (e.g., the Raft leader), I/O contention between Raft and MySQL, software bugs in either layer that crash the entire process, etc.

*Work done prior to author's affiliation with Meta

State Placementexternal/cloud storageserver(s)N/AS2MR (ours)
PostgreSQL [45], etcd [1], AzureSQL [8], Spanner [27], ZooKeeper [34], CockroachDB [49]LazyKV [40], Delos [17], CorfuDB [15], Tango [19], Scalog [28]

server(s) external/cloud storage

Log Placement

Figure 2. Taxonomy of SMR. We propose Serverless SMR (S²MR), which places both the replication log and materialized state in external storage, eliminating servers.

Durability is even more challenging to ensure: a correlated failure (e.g., due to a bad software upgrade) that takes down a majority of nodes can result in data loss (particularly if the underlying scheduler does not guarantee disk durability across node reboots).

To mitigate these challenges, recent SMR systems have disaggregated the shared log, delegating durability entirely to an external (potentially cloud-based) storage service via an explicit shared log API [17, 19, 23, 28, 40]. In such systems (which we call disaggregated SMR), servers do not implement consensus protocols to maintain a shared log; instead, they store the shared log on external storage and locally materialize soft-state snapshots of application state (e.g., a MySQL database). Servers are no longer responsible for durability: service state can be reconstructed even if all servers fail permanently, as long as the shared log on the external storage service continues to exist. The key driver is the exceptional durability and availability of shared-log architectures [18, 40], which separate log ordering from storage through a dedicated sequencing layer rather than peer-to-peer consensus among materializers.

However, even if disaggregated SMR improves durability, availability remains challenging to ensure. The availability of the service continues to depend on a server-based materializer layer that can be difficult to harden, for three reasons:

  • Server Failures / Upgrades: The materialization layer consists of multiple failure-prone components (server software, server hardware, deployment infrastructure such as Kubernetes, etc.). Upgrades to service logic (e.g., to support new features) can be frequent and risky [54].

  • Slow Start: The service must trade off cost against availability. Keeping full-state servers ready incurs energy and cloud costs, while starting one on demand requires downloading a snapshot and may violate the latency SLA.

  • Lack of Server Isolation: Servers have to ensure their own availability in a multi-tenant environment via complex mechanisms for rate-limiting and quarantining (e.g.,

to prevent one client's long-running full-DB scan from starving another client's time-critical single-item reads). In effect, continued reliance on materialization servers for availability makes services complex, brittle, and expensive.

Our Proposal. In this paper, we propose eliminating servers entirely: we disaggregate both materialized states and ordered commands onto the shared log. The key insight is that a shared log's append supports both distributed command ordering and distributed materialization. Specifically, S²MR (Serverless State Machine Replication) stores all state—including the state machine and the command log—entirely in external storage, where the storage can be one of the existing shared-log systems or cloud storage exposing similar APIs (e.g., Azure Blob). S²MR inherits the foundational mechanism of the shared log: multiple clients consistently can manage (read/write) the shared state by directly accessing the log. S²MR offers an additional benefit by allowing clients to query the state more quickly by inspecting the materialized snapshot without replaying the entire log from scratch. The materialized snapshots (with collocated indexes) are created by clients in a distributed way. Notably, only a single logical copy of materialized state is maintained by all clients (as opposed to conventional SMR or disaggregated SMR, where each server maintains its own independent copy).

S²MR's serverless design offers "always-on" availability:

  • No Servers (and hence, no server failures or upgrades): Without materialization servers, service availability depends only on the underlying shared log.

  • Fast Start: The service is immediately responsive and available when a workload initially starts and ramps up, without having to over-provision servers in advance or spin them up on demand.

  • Better Isolation: Misbehaving or crashing clients have no availability impact on other clients and little impact on external storage, which is designed to provide isolation for multiple tenants via its simple, low-level storage API.

S²MR offers other practical benefits. It is cheaper for service operators, who no longer operate materialization servers and can push functionality to end clients. It also requires virtually no deployment effort: a new instance is initialized by creating a separate workspace (e.g., folder) in external storage and distributing access credentials to clients.

The resulting protocol retains the simplicity and strong safety guarantees of shared-log systems: the log defines a linearizable command order, and the materialized state is a deterministic function of that log. When one client advances the shared materialized view, it reduces the replay work required by all clients.

We evaluate S²MR by building AirDB, a transactional key-value store that provides ACID guarantees with Strict Serializability and Snapshot Isolation [22]. AirDB offers the "always-on" availability of S²MR along with the additional benefits of low cost and zero deployment effort. For bursty, infrequently accessed state, it also provides strong semantics and lower latency than conventional designs at the same cost, improving availability under a fixed latency target.

S²MR does come with trade-offs. First, migrating the data layout in external storage requires careful coordination. Since S²MR disaggregates all state onto the shared log while logic resides on the client side, upgrading the data layout can leave clients with an outdated library unable to read the new format. To address this, a version number can be encoded as part of the materialized state; upon a major version change, a client must either update its library or replay the entire shared log from scratch, incurring longer cold-start latency. Second, S²MR adds round trips between clients and external storage, so it best suits deployments that colocate the two within a data center, such as web servers using a storage service in the same facility.

We make the following contributions in this paper:

  • We propose S²MR, a novel SMR variant that eliminates servers and materializes states on disaggregated storage.
  • We describe the design and implementation of AirDB using S²MR, showing that it provides strong semantics.
  • Our evaluation shows that S²MR achieves higher availability than both conventional and disaggregated SMR: it is oblivious to materializer failures and denial-of-service (DoS) attacks on clients; and recovers a 1 GB state from a cold start 45× faster than conventional SMR and 10× faster than disaggregated SMR.

References (30)