CMU / CMU15-440已收录

Distributed Systems

学习网络通信、缓存、故障恢复、事务与共识,理解多台计算机如何可靠协作。

关于这组笔记

个人自学讲义,依据 Spring 2026 公开学习目标、阅读材料与项目说明重构讲次;原课 slides 与逐讲课表未公开,讲次并非官方课堂实录。

查看原课程资料

适合的起点

建议熟悉计算机系统、Unix 与基础网络,并具备 Python 阅读能力;原课要求 C 和 Java。

本系列为个人学习整理,非学校官方发布,不代表学校或授课教师的认可或背书。

沿着目录阅读

当前 28 篇

课程讲义

  1. Lecture 01Lecture 1 · Introduction: what is a distributed system, and why is it hard?
  2. Lecture 02Lecture 2 · Communication: latency, bandwidth and the network stack
  3. Lecture 03Lecture 3 · Remote procedure call I: the abstraction and its machinery
  4. Lecture 04Lecture 4 · RPC II: failure semantics, idempotence and the end-to-end argument
  5. Lecture 05Lecture 5 · Distributed file systems and naming: NFS, AFS and interposition
  6. Lecture 06Lecture 6 · Caching fundamentals: locality and cache quality
  7. Lecture 07Lecture 7 · Cache consistency and one-copy semantics: check-on-use, callbacks and leases
  8. Lecture 08Lecture 8 · Cache replacement: MIN, LRU and its rivals, ARC, S3-FIFO and variable sizes
  9. Lecture 09Lecture 9 · Prefetching, hints and buffer bloat
  10. Lecture 10Lecture 10 · Mobile and edge computing: constraints, offloading, cloudlets and adaptation
  11. Lecture 11Lecture 11 · Scaling out cloud services: queues, pooling, load balancing and bottlenecks
  12. Lecture 12Lecture 12 · Control loops, feedback and instrumentation: autoscaling, signals, measurement and tracing
  13. Lecture 13Lecture 13 · Failures I: what fails, how often, and why
  14. Lecture 14Lecture 14 · Failures II: fail-fast vs Byzantine, and the limits of resilience
  15. Lecture 15Lecture 15 · Checkpointing and message logging
  16. Lecture 16Lecture 16 · Atomic transactions I: ACID, shadowing and intentions lists
  17. Lecture 17Lecture 17 · Atomic transactions II: write-ahead logging, RVM and concurrency control
  18. Lecture 18Lecture 18 · Distributed transactions and two-phase commit
  19. Lecture 19Lecture 19 · Replication and one-copy semantics: quorums and voting
  20. Lecture 20Lecture 20 · Consensus I: leader election and Paxos
  21. Lecture 21Lecture 21 · Consensus II: Paxos in practice and replicated state machines
  22. Lecture 22Lecture 22 · Optimistic replication and disconnected operation: Coda
  23. Lecture 23Lecture 23 · Distributed lotteries: blockchains
  24. Lecture 24Lecture 24 · Programming paradigms: MapReduce, MPI and GraphLab
  25. Lecture 25Lecture 25 · Large-scale storage and peer-to-peer: GFS, Ceph and DHTs
  26. Lecture 26Lecture 26 · Security in distributed systems: resilience under attack

补充与延伸

  1. 补充 S1Supplement S1 · Time, clocks and the ordering of events
  2. 补充 S2Supplement S2 · Consistency models

从讲义到代码

按课程目录整理的配套示例,保留各单元的文件结构。阅读讲义时,可以下载整套代码,在本地逐步探索。

下载 CMU15-440 代码

请在独立虚拟环境中查看依赖后运行;未附模型权重和运行产物;示例未逐一验证。

返回全部课程