Tagged articles
22 articles
Page 1 of 1
Ma Wei Says
Ma Wei Says
Mar 30, 2025 · Fundamentals

How Kafka 4.0’s KRaft Replaces ZooKeeper with Raft Consensus

Kafka 4.0 introduces KRaft, a ZooKeeper‑free metadata layer built on the Raft consensus algorithm, detailing role transitions, leader election, log replication, controller and broker responsibilities, and fault‑tolerance mechanisms, enabling a more scalable and self‑managed architecture for large‑scale distributed streaming.

Consensus AlgorithmDistributed SystemsKRaft
0 likes · 13 min read
How Kafka 4.0’s KRaft Replaces ZooKeeper with Raft Consensus
dbaplus Community
dbaplus Community
Dec 4, 2024 · Fundamentals

Mastering Raft: Building a Distributed KV Store in Elixir from Scratch

This article walks through the core concepts of the Raft consensus algorithm, explains why Elixir is a good fit, details the leader election and log‑replication mechanisms, and shows how to integrate a user state machine to create a fully functional distributed key‑value database with snapshots and recovery.

Consensus AlgorithmElixirKV Store
0 likes · 37 min read
Mastering Raft: Building a Distributed KV Store in Elixir from Scratch
Tencent Cloud Developer
Tencent Cloud Developer
Nov 14, 2024 · Cloud Native

ZooKeeper Core Knowledge and Typical Application Scenarios

Although many platforms are dropping ZooKeeper, this guide explains its CP‑oriented architecture, znode structure, watcher mechanism, Zab consensus, leader election, and common patterns such as publish/subscribe, load balancing, naming, master election, distributed locks and queues, giving architects essential fundamentals for coordination services.

Consensus AlgorithmDistributed CoordinationKafka
0 likes · 25 min read
ZooKeeper Core Knowledge and Typical Application Scenarios
JD Cloud Developers
JD Cloud Developers
Feb 20, 2023 · Fundamentals

How Raft Tackles the Byzantine Generals Problem

This article explains the Byzantine Generals problem, its fault‑tolerant challenges in distributed systems, and how the Raft consensus algorithm addresses these issues by using leader election, log replication, and safety mechanisms, while also comparing Raft with other algorithms such as Paxos, ZAB and PBFT.

Byzantine Fault ToleranceConsensus AlgorithmRaft
0 likes · 17 min read
How Raft Tackles the Byzantine Generals Problem
JD Tech
JD Tech
Feb 2, 2023 · Fundamentals

Understanding the Byzantine Generals Problem and the Raft Consensus Algorithm

This article explains the Byzantine Generals problem, its fault‑tolerance limits, and how the Raft consensus algorithm solves a simplified version of the problem through leader election, log replication, and safety mechanisms, while also comparing Raft with Paxos, ZAB, and PBFT and providing Go code examples.

Byzantine GeneralsConsensus AlgorithmDistributed Systems
0 likes · 20 min read
Understanding the Byzantine Generals Problem and the Raft Consensus Algorithm
Thoughts on Knowledge and Action
Thoughts on Knowledge and Action
Dec 10, 2022 · Fundamentals

How Raft Guarantees Consistent Log Replication and Leader Election

This article explains the Raft consensus algorithm, detailing how it breaks consistency into leader election, log replication, and safety, and describes the roles, term handling, election rules, log matching, snapshotting, and the RPC mechanisms that ensure a reliable distributed state machine.

Consensus AlgorithmDistributed SystemsLog Replication
0 likes · 12 min read
How Raft Guarantees Consistent Log Replication and Leader Election
Code Ape Tech Column
Code Ape Tech Column
Aug 26, 2022 · Fundamentals

Understanding the Raft Consensus Algorithm: Roles, Elections, Log Replication, and Split‑Brain Scenarios

This article explains the Raft consensus algorithm in detail, covering its three node roles, leader election process, state‑machine log replication, handling of leader failures, multiple candidates, and split‑brain situations, providing clear diagrams and step‑by‑step descriptions for distributed system fundamentals.

Consensus AlgorithmDistributed SystemsLog Replication
0 likes · 16 min read
Understanding the Raft Consensus Algorithm: Roles, Elections, Log Replication, and Split‑Brain Scenarios
MaGe Linux Operations
MaGe Linux Operations
Jun 10, 2022 · Fundamentals

Demystifying Paxos: How Distributed Systems Achieve Consensus

This article explains the Paxos consensus algorithm—its origins, core concepts, roles of proposers, acceptors and learners, safety and liveness constraints, the two-phase protocol, proposal generation, and practical variations—showing why Paxos remains a foundational solution for fault‑tolerant distributed systems.

Consensus AlgorithmDistributed SystemsPaxos
0 likes · 16 min read
Demystifying Paxos: How Distributed Systems Achieve Consensus
dbaplus Community
dbaplus Community
Mar 22, 2022 · Fundamentals

Master Raft in 10 Minutes: A Clear Guide to Consensus Algorithms

This article demystifies consensus algorithms by explaining the difference between consistency and consensus, introducing the replicated state machine concept, and providing a concise, step‑by‑step walkthrough of the Raft algorithm—including state simplification, leader election, log replication, and safety guarantees.

Consensus AlgorithmDistributed SystemsLog Replication
0 likes · 12 min read
Master Raft in 10 Minutes: A Clear Guide to Consensus Algorithms
Tencent Cloud Developer
Tencent Cloud Developer
Jan 23, 2022 · Fundamentals

Understanding Paxos and Consensus Algorithms in Distributed Systems

Understanding Paxos and other consensus algorithms, this article explains how crash‑fault‑tolerant protocols like Paxos, Raft, and ZAB achieve sequential consistency through two‑phase voting, contrasts them with Byzantine‑fault‑tolerant methods, and details Multi‑Paxos optimizations, leader election, and practical trade‑offs for distributed systems.

Byzantine Fault ToleranceConsensus AlgorithmCrash Fault Tolerance
0 likes · 20 min read
Understanding Paxos and Consensus Algorithms in Distributed Systems
Tech Musings
Tech Musings
Jul 11, 2021 · Fundamentals

Why Distributed Consistency Algorithms Matter and How Raft Achieves Consensus

This article explains why distributed systems need consistency algorithms, compares weak and strong consistency, outlines the challenges of unreliable networks and clocks, and provides a detailed walkthrough of the Raft consensus protocol, its node states, state variables, RPCs, and a practical lab implementation for leader election.

Consensus AlgorithmDistributed SystemsRaft
0 likes · 12 min read
Why Distributed Consistency Algorithms Matter and How Raft Achieves Consensus
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 7, 2021 · Fundamentals

Understanding EPaxos: A Leaderless Consensus Algorithm Explained

This article provides a comprehensive, step‑by‑step explanation of EPaxos, a leaderless distributed consensus algorithm, covering its basic concepts, instance model, three‑phase protocol, sorting algorithm, practical case study, challenges, and key discussion points for readers familiar with Paxos or Raft.

Consensus AlgorithmEPaxosPaxos
0 likes · 18 min read
Understanding EPaxos: A Leaderless Consensus Algorithm Explained
Tencent Cloud Developer
Tencent Cloud Developer
Jun 15, 2021 · Fundamentals

Understanding the Raft Consensus Algorithm: Principles, Workflow, and Comparison with Paxos

Raft is a leader-based consensus algorithm designed to be easier to understand and implement than Paxos, decomposing consensus into leader election, log replication, and safety rules; it ensures consistent, gap‑free logs, comparable performance, and simpler deployment for distributed systems.

Consensus AlgorithmLog ReplicationPaxos Comparison
0 likes · 16 min read
Understanding the Raft Consensus Algorithm: Principles, Workflow, and Comparison with Paxos
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 3, 2021 · Fundamentals

How Raft Powers Reliable Distributed Systems – From Consensus Basics to SOFAJRaft

This article explains distributed consensus, compares Paxos, ZAB and Raft, details Raft's leader election, log replication and commit mechanics, introduces read‑optimisation techniques such as ReadIndex and Lease Read, and showcases the Java‑based SOFAJRaft library with its architecture, performance tricks and real‑world use cases.

Consensus AlgorithmDistributed SystemsLog Replication
0 likes · 19 min read
How Raft Powers Reliable Distributed Systems – From Consensus Basics to SOFAJRaft
Tencent Cloud Middleware
Tencent Cloud Middleware
Mar 8, 2021 · Backend Development

Understanding CAP, BASE, Paxos and Raft: Core Distributed Consistency Algorithms

This article explains the evolution of backend service architectures, introduces the CAP and BASE theories, and provides detailed walkthroughs of the Paxos and Raft consensus algorithms, covering their roles, constraints, protocol steps, and practical considerations for building reliable distributed systems.

BASE theoryCAP theoryConsensus Algorithm
0 likes · 22 min read
Understanding CAP, BASE, Paxos and Raft: Core Distributed Consistency Algorithms
58 Tech
58 Tech
Sep 28, 2020 · Fundamentals

WPaxos: A Production‑Grade Java Implementation of the Paxos Consensus Algorithm – Design and Engineering Analysis

This article introduces the open‑source WPaxos project, explains the core Basic Paxos algorithm, analyzes various failure scenarios, and details the production‑level engineering optimizations and Java code implementations that enable high‑performance, reliable distributed consensus.

Consensus AlgorithmDistributed SystemsJava
0 likes · 19 min read
WPaxos: A Production‑Grade Java Implementation of the Paxos Consensus Algorithm – Design and Engineering Analysis
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Sep 7, 2020 · Fundamentals

How Raft Guarantees Strong Consistency: Leader Election & Log Replication Explained

This article provides a comprehensive overview of the Raft consensus algorithm, detailing its strong‑leader model, node states, leader election process, log replication mechanics, consistency checks, and single‑node configuration changes, while illustrating each concept with diagrams and code examples.

Consensus AlgorithmLog ReplicationRaft
0 likes · 25 min read
How Raft Guarantees Strong Consistency: Leader Election & Log Replication Explained
Tencent Cloud Developer
Tencent Cloud Developer
Jun 9, 2020 · Blockchain

Tencent Cloud Blockchain Engine Architecture: High-Performance, Secure, and Scalable Blockchain Technology Implementation

Tencent Cloud Blockchain Engine delivers a high‑performance, secure, and scalable three‑layer SMR architecture that enables massive cross‑organizational collaboration through hierarchical governance, BFT consensus, homomorphic encryption, zero‑knowledge proofs, and efficient cross‑chain transaction and identity management, supporting 20,000+ TPS and diverse government, education, healthcare, and copyright use cases.

Consensus AlgorithmIdentity ManagementSMR System
0 likes · 15 min read
Tencent Cloud Blockchain Engine Architecture: High-Performance, Secure, and Scalable Blockchain Technology Implementation
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 AlgorithmEngineeringPaxos
0 likes · 13 min read
Mastering Paxos: From Theory to Engineering in Large‑Scale Systems