WeChat Backend Team
Author

WeChat Backend Team

Official account of the WeChat backend development team, sharing their experience in large-scale distributed system development.

47
Articles
0
Likes
12
Views
0
Comments
Recent Articles

Latest from WeChat Backend Team

47 recent articles
WeChat Backend Team
WeChat Backend Team
Dec 4, 2016 · Backend Development

How We Scaled a New Year Gala Shake‑to‑Win System to 10 Million Requests per Second

This article revisits the technical design and evolution of the 2015 Chinese New Year Gala "shake" activity, detailing how the backend architecture was progressively refined—from a simple prototype to a production‑grade system capable of handling tens of millions of concurrent requests—through resource pre‑download, access‑layer integration, load‑balancing, and robust fail‑over mechanisms.

Load Testingdistributed-systemshigh-concurrency
0 likes · 21 min read
How We Scaled a New Year Gala Shake‑to‑Win System to 10 Million Requests per Second
WeChat Backend Team
WeChat Backend Team
Nov 30, 2016 · Fundamentals

Mastering Paxos: From Theory to Engineering in Large‑Scale Systems

This article explains the Paxos consensus protocol, its core concepts, step‑by‑step process, common misunderstandings, and rigorous inductive and contradiction proofs, while also discussing practical engineering considerations and how large‑scale systems like WeChat implement Paxos at billions of operations per minute.

Consensus AlgorithmPaxosengineering
0 likes · 13 min read
Mastering Paxos: From Theory to Engineering in Large‑Scale Systems
WeChat Backend Team
WeChat Backend Team
Nov 19, 2016 · Databases

How PhxSQL Achieves MySQL-Compatible High Availability with Strong Consistency

PhxSQL is an open‑source, MySQL‑compatible relational database cluster that provides high availability and strong data consistency through a single‑master multi‑slave architecture, automatically switching masters when over half the nodes are alive, without relying on external services like Zookeeper, and requiring no code changes for migration.

Database ClusterMySQLOpen Source
0 likes · 6 min read
How PhxSQL Achieves MySQL-Compatible High Availability with Strong Consistency
WeChat Backend Team
WeChat Backend Team
Nov 18, 2016 · Backend Development

How WeChat Scales to Millions with libco: A Deep Dive into C/C++ Coroutines

libco, the high‑performance C/C++ coroutine library powering WeChat’s backend since 2013, enables agile synchronous‑style programming with massive concurrency, offering features like CGI support, shared‑stack mode, hook‑based API interception, and coroutine‑private variables, allowing seamless, non‑intrusive async transformation of hundreds of services.

Asynchronous ProgrammingC++High Concurrency
0 likes · 10 min read
How WeChat Scales to Millions with libco: A Deep Dive into C/C++ Coroutines
WeChat Backend Team
WeChat Backend Team
Oct 27, 2016 · Fundamentals

Understanding Basic Paxos Through the Three-Generals Problem Analogy

By adapting the classic Two Generals problem into a Three-Armies scenario, this article demystifies the Basic Paxos algorithm, illustrating its prepare/commit phases, proposal handling, and consensus challenges with detailed step-by-step examples and insights into its practical implications for distributed systems.

Paxosalgorithmdistributed consensus
0 likes · 14 min read
Understanding Basic Paxos Through the Three-Generals Problem Analogy
WeChat Backend Team
WeChat Backend Team
Oct 26, 2016 · Fundamentals

Why Fixed Membership Is Crucial for Paxos and How to Handle Dynamic Changes

The article explains that Paxos relies on a fixed set of voters (the majority) for consistency, shows why configuration‑driven member changes break the protocol, and introduces a simple dynamic membership algorithm that uses delayed activation windows to achieve atomic member updates without violating Paxos guarantees.

ConsistencyPaxosalgorithm
0 likes · 8 min read
Why Fixed Membership Is Crucial for Paxos and How to Handle Dynamic Changes
WeChat Backend Team
WeChat Backend Team
Oct 25, 2016 · Backend Development

Reinventing WeChat’s Distributed Storage with Paxos: Inside the Memory Cloud Upgrade

This article details how WeChat transformed its massive memory‑cloud storage by replacing the QuorumKV NWR protocol with a non‑lease Paxos design, optimizing PaxosLog, adopting DirectIO on HDDs, and implementing operational safeguards, resulting in dramatically lower latency, higher availability, and reduced failure rates.

ConsistencyPaxosWeChat
0 likes · 15 min read
Reinventing WeChat’s Distributed Storage with Paxos: Inside the Memory Cloud Upgrade
WeChat Backend Team
WeChat Backend Team
Sep 8, 2016 · Databases

Why PhxSQL Rejects Multi-Write, Sharding, and Serializability: Design Trade‑offs

This article explains how PhxSQL prioritizes strong linearizable consistency, high availability, serializable isolation, and full MySQL compatibility, and why it deliberately forgoes features such as multi‑write, sharding, and strict serializable isolation due to the high cost of distributed transactions and protocol complexity.

ConsistencyMySQL compatibilityPhxSQL
0 likes · 17 min read
Why PhxSQL Rejects Multi-Write, Sharding, and Serializability: Design Trade‑offs