# Tencent/phxpaxos

The Paxos library implemented in C++ that has been used in the WeChat production environment.

Repository: https://github.com/Tencent/phxpaxos
Canonical: https://ross.abutalabs.com/products/phxpaxos
Language: C++
License: NOASSERTION
License Family: other
Last push: 2023-12-04T07:53:14+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3764, "days_push": 1003, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3374, forks 852 (observed 2026-08-28T04:07:58.452896+00:00)

## What it is
PhxPaxos is a C++ library implementing the Paxos consensus protocol for state synchronization across a multi-node cluster, battle-tested in WeChat's production environment. It provides automatic fail-over, master election, reconfiguration, checkpoint management, and pluggable network/storage modules.

## Use cases
- build a highly available replicated state machine cluster
- implement master election among service nodes
- synchronize state across multiple servers with strong consistency
- add fault-tolerant fail-over to a distributed service
- store replicated logs with guaranteed consistency
- learn about Paxos consensus in production-grade C++ code

## When to choose
- you need proven, production-hardened Paxos consensus in C++
- you want automatic master election and cluster reconfiguration
- you need strong durability guarantees via fsync on every write
- you want pluggable network, storage, and monitoring modules

## When to avoid
- you need a client-server protocol out of the box - you must wrap your own server
- you target non-Linux or 32-bit platforms - only Linux 64-bit is tested
- you need multi-process access to a single Paxos instance
- you prefer higher-level consensus frameworks like etcd/Raft with built-in APIs

## Facets
- artifact type: library
- maturity: maintenance
- function: concurrency, message-queue, rpc, logging, monitoring, caching
- domain: microservices, databases, developer-tools, backend
- platform: cpp, cross-platform
- tags: paxos, consensus, distributed-consensus, replication, state-machine-replication, master-election, fault-tolerance, wechat, linux

## Member repositories
- Tencent/phxpaxos (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.452896+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:39:55.713216+00:00, confidence not recorded.
  - readme: https://github.com/Tencent/phxpaxos (fetched 2026-08-28T04:07:58.452896+00:00, sha 98fdc0bbe3ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
