Distributed Systems
学习网络通信、缓存、故障恢复、事务与共识,理解多台计算机如何可靠协作。
关于这组笔记
个人自学讲义,依据 Spring 2026 公开学习目标、阅读材料与项目说明重构讲次;原课 slides 与逐讲课表未公开,讲次并非官方课堂实录。
查看原课程资料适合的起点
建议熟悉计算机系统、Unix 与基础网络,并具备 Python 阅读能力;原课要求 C 和 Java。
本系列为个人学习整理,非学校官方发布,不代表学校或授课教师的认可或背书。
沿着目录阅读
当前 28 篇课程讲义
- Lecture 01Lecture 1 · Introduction: what is a distributed system, and why is it hard?
- Lecture 02Lecture 2 · Communication: latency, bandwidth and the network stack
- Lecture 03Lecture 3 · Remote procedure call I: the abstraction and its machinery
- Lecture 04Lecture 4 · RPC II: failure semantics, idempotence and the end-to-end argument
- Lecture 05Lecture 5 · Distributed file systems and naming: NFS, AFS and interposition
- Lecture 06Lecture 6 · Caching fundamentals: locality and cache quality
- Lecture 07Lecture 7 · Cache consistency and one-copy semantics: check-on-use, callbacks and leases
- Lecture 08Lecture 8 · Cache replacement: MIN, LRU and its rivals, ARC, S3-FIFO and variable sizes
- Lecture 09Lecture 9 · Prefetching, hints and buffer bloat
- Lecture 10Lecture 10 · Mobile and edge computing: constraints, offloading, cloudlets and adaptation
- Lecture 11Lecture 11 · Scaling out cloud services: queues, pooling, load balancing and bottlenecks
- Lecture 12Lecture 12 · Control loops, feedback and instrumentation: autoscaling, signals, measurement and tracing
- Lecture 13Lecture 13 · Failures I: what fails, how often, and why
- Lecture 14Lecture 14 · Failures II: fail-fast vs Byzantine, and the limits of resilience
- Lecture 15Lecture 15 · Checkpointing and message logging
- Lecture 16Lecture 16 · Atomic transactions I: ACID, shadowing and intentions lists
- Lecture 17Lecture 17 · Atomic transactions II: write-ahead logging, RVM and concurrency control
- Lecture 18Lecture 18 · Distributed transactions and two-phase commit
- Lecture 19Lecture 19 · Replication and one-copy semantics: quorums and voting
- Lecture 20Lecture 20 · Consensus I: leader election and Paxos
- Lecture 21Lecture 21 · Consensus II: Paxos in practice and replicated state machines
- Lecture 22Lecture 22 · Optimistic replication and disconnected operation: Coda
- Lecture 23Lecture 23 · Distributed lotteries: blockchains
- Lecture 24Lecture 24 · Programming paradigms: MapReduce, MPI and GraphLab
- Lecture 25Lecture 25 · Large-scale storage and peer-to-peer: GFS, Ceph and DHTs
- Lecture 26Lecture 26 · Security in distributed systems: resilience under attack
补充与延伸
从讲义到代码
按课程目录整理的配套示例,保留各单元的文件结构。阅读讲义时,可以下载整套代码,在本地逐步探索。
下载 CMU15-440 代码请在独立虚拟环境中查看依赖后运行;未附模型权重和运行产物;示例未逐一验证。