The Paxos algorithm is a family of protocols for achieving distributed consensus in an asynchronous network where agents may fail, messages may be lost or duplicated, and there is no bound on message delivery time. It guarantees safety (correctness) by ensuring that all non-faulty agents agree on the same value, and liveness (progress) under certain conditions, provided a majority of agents remain operational. The protocol operates through a series of proposal numbers and quorum-based voting to elect a single value.
Glossary
Paxos Algorithm

What is the Paxos Algorithm?
Paxos is a foundational family of distributed consensus protocols that enables a network of unreliable agents to agree on a single value or sequence of commands, forming the bedrock of fault-tolerant systems.
In a multi-agent system, Paxos provides the critical coordination layer for state machine replication, ensuring all agents apply the same sequence of commands to achieve consistent global state. Its roles—Proposers, Acceptors, and Learners—separate the concerns of initiating, deciding, and disseminating agreements. While complex, its derivatives like Multi-Paxos optimize for repeated consensus, making it a cornerstone for building fault-tolerant and highly available orchestrated services where agent failures must not compromise system integrity.
Core Components of Paxos
The Paxos algorithm achieves fault-tolerant consensus through a set of precisely defined roles and message-passing phases. Understanding these core components is essential for implementing or analyzing distributed systems that require reliable agreement.
Proposers
A Proposer is an agent that initiates the consensus process by putting forward a proposed value for the system to agree upon. In a multi-agent system, any node can act as a proposer when it needs the cluster to decide on a new command or piece of data.
- Role: Generate proposal numbers and drive the protocol forward.
- Behavior: Must gather promises from a majority of Acceptors before sending an Accept request.
- Fault Tolerance: Multiple proposers can operate concurrently, which may cause conflicts resolved by higher proposal numbers.
Acceptors
Acceptors form the fault-tolerant memory of the Paxos protocol. They collectively store the state of the voting process and the potentially chosen value.
- Role: Receive and respond to Prepare and Accept messages from Proposers.
- Promise Rule: An Acceptor must promise not to accept proposals with numbers less than any it has already promised to.
- Majority Requirement: A value is chosen only when a quorum (a majority) of Acceptors have accepted it. This ensures progress despite individual failures.
Learners
A Learner is an agent that discovers which value has been chosen by the Acceptors. Learners are passive observers that do not participate in the voting phases but must be informed of the outcome to execute the agreed-upon action.
- Role: Learn the chosen value to update their local state or execute a command.
- Notification: Typically informed by Acceptors or a distinguished Leader (a special Proposer).
- System Design: In practical deployments, all nodes often act as Proposers, Acceptors, and Learners combined.
The Prepare Phase (Phase 1)
The Prepare Phase is the first stage where a Proposer seeks permission to issue a proposal. It ensures no previously accepted higher-numbered proposal is overlooked.
- Prepare Request: A Proposer selects a unique, monotonically increasing proposal number
nand sends aPrepare(n)request to a majority of Acceptors. - Promise Response: An Acceptor replies with a Promise not to accept any more proposals numbered less than
n. If it has already accepted a value, it includes that value and its corresponding proposal number in the response.
The Accept Phase (Phase 2)
The Accept Phase is where a Proposer attempts to get its value formally accepted by a majority. The value it proposes is constrained by promises received in Phase 1.
- Propose Value: If the Proposer receives promises from a majority, it sends an
Accept(n, v)request. The valuevis either its own intended value or, critically, the value associated with the highest-numbered proposal among the promises it received. - Accepted Response: An Acceptor accepts the proposal
(n, v)unless it has already promised not to (i.e., it has promised to a higher-numbered proposal). If a majority accepts, the valuevis formally chosen.
Proposal Number & Quorum
These two concepts are the linchpins of Paxos's safety and liveness guarantees.
- Proposal Number: A unique, totally ordered identifier (e.g., a timestamp + node ID). It establishes priority and resolves conflicts between competing Proposers. A higher number overrides promises made to lower numbers.
- Quorum: Any majority subset of the Acceptors. The protocol's correctness depends on the mathematical fact that any two quorums must intersect. This intersection guarantees that at most one value can be chosen, as information about a potentially chosen value is always preserved across quorums.
How the Paxos Algorithm Works
Paxos is a foundational family of consensus protocols that enables a distributed network of unreliable agents to agree on a single value or sequence of commands, forming the bedrock of fault-tolerant distributed systems.
The Paxos algorithm operates through a series of proposal rounds managed by three agent roles: Proposers, Acceptors, and Learners. A proposer initiates a round by broadcasting a prepare request with a unique, monotonically increasing proposal number. Acceptors respond with a promise not to accept any older proposals and, if they have already accepted a value, include that value. This two-phase process—Prepare/Promise followed by Accept/Accepted—ensures that only one value can be chosen by a majority quorum of acceptors, even amid concurrent proposals and agent failures.
For fault tolerance, Paxos guarantees safety (no two chosen values differ) as long as a majority of acceptors remain operational, ensuring consensus is never broken. Liveness (progress) requires a distinguished leader proposer to avoid conflicts. The protocol's core innovation is its use of proposal numbers to impose a total order, allowing agents to recover agreed-upon state after failures. This makes it essential for state machine replication in systems requiring Byzantine Fault Tolerance-like resilience to non-malicious crashes.
Frequently Asked Questions
Paxos is the foundational consensus protocol for building fault-tolerant distributed systems. These questions address its core concepts, practical applications, and how it compares to modern alternatives.
The Paxos algorithm is a family of protocols that enables a distributed system of unreliable processes (agents) to agree on a single value or a sequence of values, achieving consensus despite failures. It works through a series of proposal rounds, each with two key phases: the Prepare/Promise phase and the Accept/Accepted phase. In the first phase, a proposer agent sends a prepare request with a unique, increasing proposal number to a quorum of acceptor agents. Acceptors promise to ignore older proposals and reply with the highest-numbered value they have already accepted. In the second phase, the proposer sends an accept request for a value (either its own or the highest-value received from acceptors) to the quorum. If a majority of acceptors accept it, the value is chosen and can be learned by learner agents. This multi-round, majority-based voting ensures safety (no two different values are ever chosen) and liveness (a value will eventually be chosen if a majority of agents are responsive).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Paxos is a foundational consensus protocol within a broader ecosystem of distributed systems concepts. These related terms define the mechanisms and patterns that enable fault-tolerant coordination.
Consensus Protocol
A consensus protocol is a distributed algorithm that enables a group of independent agents or nodes to agree on a single data value or a sequence of actions, ensuring system consistency despite failures. Paxos is a canonical example. These protocols are the bedrock of reliable distributed systems, enabling state machine replication and forming the core of many databases and coordination services.
Byzantine Fault Tolerance (BFT)
Byzantine Fault Tolerance (BFT) is a property of a distributed system that allows it to reach consensus and continue operating correctly even when some components fail arbitrarily, including by sending malicious or conflicting information. While classic Paxos assumes crash-fault models (nodes stop working), BFT protocols like Practical Byzantine Fault Tolerance (PBFT) defend against arbitrary, potentially malicious behavior, a critical consideration for adversarial environments.
Raft Consensus Algorithm
Raft is a consensus algorithm designed for understandability, which manages a replicated log to ensure state machine replication across a cluster. Created as a more understandable alternative to Paxos, it explicitly separates the roles of leader election, log replication, and safety. Its clear specification has made it the foundation for systems like etcd and Consul.
State Machine Replication
State Machine Replication (SMR) is a fundamental fault-tolerance technique where a deterministic service is replicated across multiple machines. Each replica processes the same sequence of client requests in the same order, producing identical state transitions and outputs. Consensus protocols like Paxos and Raft are used to agree on this total order of requests, making SMR possible.
Quorum
A quorum is the minimum number of members of a distributed system that must agree on an operation or value for it to be considered valid. In Paxos, a majority quorum (N/2 + 1) is required to ensure that any two quorums intersect, guaranteeing that at least one node knows the most recent decision. This mathematical principle is key to the protocol's safety and liveness guarantees.
CAP Theorem
The CAP theorem is a fundamental principle stating that a distributed data store can provide only two of three guarantees simultaneously: Consistency (every read receives the most recent write), Availability (every request receives a response), and Partition tolerance (the system continues operating despite network failures). Paxos is a CP (Consistent and Partition-tolerant) system, prioritizing agreement over availability during a network partition.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us