Tagged articles
18 articles
Page 1 of 1
JD Cloud Developers
JD Cloud Developers
Dec 8, 2025 · Fundamentals

Why Raft Guarantees Linear Consistency in Unreliable Networks

This article explains how unreliable networks, clock instability, and node failures can cause data inconsistency in distributed clusters, introduces the Raft consensus algorithm, details its roles, election process, log replication, read/write handling, consistency models, and mechanisms to avoid split-brain and livelock.

ConsensusConsistencyDistributed Systems
0 likes · 13 min read
Why Raft Guarantees Linear Consistency in Unreliable Networks
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
Programmer DD
Programmer DD
Oct 30, 2024 · Fundamentals

How Raft Elects a Leader and Replicates Logs: Step-by-Step Walkthrough

This article explains the Raft consensus algorithm's leader election, log replication, and log alignment processes using a three‑node cluster example, detailing heartbeat timeouts, RequestVote handling, AppendEntries messaging, and the iterative steps required to keep followers consistent with the leader.

Log ReplicationRaftalgorithm
0 likes · 9 min read
How Raft Elects a Leader and Replicates Logs: Step-by-Step Walkthrough
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
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
Oct 27, 2021 · Backend Development

Understanding and Implementing the Raft Consensus Algorithm in Go

This guide walks readers through building a complete Raft consensus system in Go, detailing leader election, log replication, state persistence, snapshotting, and committed‑entry application, while explaining key structures, RPCs, golden rules, and offering advice on using mature libraries versus custom implementations.

GoLog ReplicationRaft
0 likes · 42 min read
Understanding and Implementing the Raft Consensus Algorithm in Go
Sohu Tech Products
Sohu Tech Products
Jun 30, 2021 · Fundamentals

Raft Log Replication: Format, Process, and Consistency Guarantees

This article explains the Raft consensus algorithm’s log format, the step‑by‑step log replication process, how leaders ensure consistency through forced overwrites, and details the AppendEntries RPC parameters, illustrated with diagrams and examples.

ConsistencyLog ReplicationRaft
0 likes · 11 min read
Raft Log Replication: Format, Process, and Consistency Guarantees
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
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 1, 2021 · Fundamentals

Mastering Distributed Consensus: Inside Raft and the SOFAJRaft Library

This article explains the fundamentals of distributed consensus algorithms, compares Paxos, Zab, and Raft, dives deep into Raft's leader election, log replication, and commit mechanics, and showcases the Java‑based SOFAJRaft library with its architecture, linearizable read optimizations, and real‑world use cases.

Log ReplicationRaftSOFAJRaft
0 likes · 19 min read
Mastering Distributed Consensus: Inside Raft and the SOFAJRaft Library
vivo Internet Technology
vivo Internet Technology
Apr 14, 2021 · Fundamentals

An Overview of the Raft Distributed Consensus Algorithm

Raft is a fault‑tolerant distributed consensus protocol that simplifies Paxos by electing a single leader each term to coordinate client requests, replicate logs to a majority of servers, ensure safety through up‑to‑date voting, handle failures with randomized timeouts, resolve log conflicts, and compress logs via snapshots.

Log ReplicationRaftdistributed consensus
0 likes · 19 min read
An Overview of the Raft Distributed Consensus Algorithm
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
360 Tech Engineering
360 Tech Engineering
Mar 31, 2020 · Backend Development

Implementing Raft Command Handling and Log Replication in Go

This article explains how to extend a Go implementation of the Raft consensus algorithm to handle client commands, replicate logs across the cluster, manage commit pipelines, and ensure election safety, while providing detailed code examples and discussion of underlying concepts.

BackendConsensusGo
0 likes · 15 min read
Implementing Raft Command Handling and Log Replication in Go