liveBook · Manning

Replicated state machine

As explained in Latency

State machine replication is a replication technique in which nodes execute the same ordered sequence of commands to maintain identical system state.

A replicated state machine maintains identical system state by having nodes execute the same ordered sequence of commands. A client request is accepted by a replicated cluster, and acknowledgment means its effect remains persistent despite specified component failures. section 4.6

The model supports fault-tolerant systems and replication in data infrastructure, including distributed SQL databases and key–value stores. Once a request is acknowledged, later requests sent to any cluster node are guaranteed to observe its update, providing linearizability. section 4.6

Design reasoning centers on failure type and quorum size:

  • Distinguish non-Byzantine failures, such as crashes, outages, partitions, and disk failures, from Byzantine failures involving arbitrary or conflicting behavior. section 4.6
  • For non-Byzantine failures, tolerate f failures with 2f + 1 replicas; three replicas tolerate one failure, while five tolerate two. section 4.6
  • Treat replication as a consistency, availability, and latency trade-off: stronger consistency generally requires more coordination and higher latency. section 4.0

How Latency covers it

How deep it goes
Explains acknowledged requests, linearizability, failure classes, and replica sizing, but does not detail a specific consensus protocol.
Examples
Uses distributed SQL databases, key–value stores, and three- or five-node clusters as concrete applications and sizing examples.
What it assumes
Assumes basic replication concepts and introduces non-Byzantine versus Byzantine failure models.
What you can do after
Evaluate replica counts and failure guarantees while recognizing the latency cost of stronger consistency.
How it connects
Connects replication with fault tolerance, linearizability, quorum, consistency, availability, latency, and distributed databases.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Latency. The section links point to the parts of the book it draws on.