Xiaokun's Architecture Exploration Notes
Author

Xiaokun's Architecture Exploration Notes

10 years of backend architecture design | AI engineering infrastructure, storage architecture design, and performance optimization | Former senior developer at NetEase, Douyu, Inke, etc.

61
Articles
0
Likes
193
Views
0
Comments
Recent Articles

Latest from Xiaokun's Architecture Exploration Notes

61 recent articles
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
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Jul 15, 2020 · Fundamentals

Mastering Paxos: A Step‑by‑Step Guide to Distributed Consensus

This article provides a comprehensive, step‑by‑step explanation of the Paxos consensus algorithm—including its basic principles, roles, prepare and accept phases, Multi‑Paxos extensions, leader election, and state‑machine integration—while offering practical insights for building reliable distributed systems.

Multi-PaxosPaxosdistributed consensus
0 likes · 23 min read
Mastering Paxos: A Step‑by‑Step Guide to Distributed Consensus
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
May 29, 2020 · Fundamentals

How the Byzantine Generals Problem Shapes Modern Distributed Consensus

This article explains the Byzantine Generals Problem, maps its concepts to distributed consensus, distinguishes consensus from consistency, outlines oral‑message and signed‑message solutions, and analyzes their applicability and limitations in fault‑tolerant distributed systems.

Byzantine Generalsconsensus algorithmsdistributed consensus
0 likes · 21 min read
How the Byzantine Generals Problem Shapes Modern Distributed Consensus
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
May 21, 2020 · Fundamentals

Mastering Network Fundamentals: From OSI Layers to TCP/IP Handshakes

This article explains core network concepts—including protocols, packet structures, the OSI and TCP/IP layer models, TCP three‑way handshake, sliding windows, congestion control, packet sticking and splitting, as well as HTTP/HTTPS basics and their headers—providing a solid foundation for troubleshooting and designing distributed services.

OSI modelTCP/IPcommunication
0 likes · 28 min read
Mastering Network Fundamentals: From OSI Layers to TCP/IP Handshakes
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
May 15, 2020 · Backend Development

Mastering Distributed System Design: Key Principles, Techniques, and Best Practices

This comprehensive guide explains why distributed systems are needed, outlines design goals, explores essential technologies and architectural patterns, and provides practical strategies for scalability, high availability, service governance, DevOps automation, and monitoring to help engineers build robust distributed architectures.

Distributed SystemsScalabilityhigh availability
0 likes · 22 min read
Mastering Distributed System Design: Key Principles, Techniques, and Best Practices
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Apr 28, 2020 · Backend Development

How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction

This article explains Netty's channel pipeline lifecycle—including how the responsibility chain is created during channel initialization, how handlers are added and removed, and how the pipeline is torn down during channel closure—while providing detailed source‑code excerpts and diagrams to illustrate each step.

Backend DevelopmentChannelPipelineEventLoop
0 likes · 16 min read
How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Apr 24, 2020 · Backend Development

How Netty’s EventLoopGroup and EventLoop Drive Scalable Web Services

This article dissects Netty’s core components—EventLoopGroup, EventLoop, ServerBootstrap, and channel lifecycle—explaining their initialization, thread‑binding mechanisms, handler pipelines, and port‑binding process with detailed code excerpts and diagrams to reveal how the framework achieves scalable, reactor‑based networking.

Channel pipelineEventLoopJava networking
0 likes · 21 min read
How Netty’s EventLoopGroup and EventLoop Drive Scalable Web Services
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Apr 16, 2020 · Backend Development

Unlock Netty’s Core: Deep Dive into ServerBootstrap, EventLoop, and ByteBuf

This article provides a comprehensive walkthrough of Netty’s core components—including ServerBootstrap, EventLoop, Channel, ChannelFuture, ChannelHandler, and ByteBuf—illustrated with a simple server example, code snippets, diagrams, and detailed explanations of threading, zero‑copy, and pipeline processing.

ByteBufEventLoopJava
0 likes · 30 min read
Unlock Netty’s Core: Deep Dive into ServerBootstrap, EventLoop, and ByteBuf