主题索引
分布式存储与复制
比较 GFS、HDFS、BigTable、MongoDB、RabbitMQ 等系统的租约、写确认、副本同步、选主与脑裂处理。
来源书籍
6/6
Skill 版本:未记录
类别:系统架构类
本次实际使用规则:book-notes v8(2026-09-27 P1→v8 批处理修订),详见 _workflow.md。书中 Redis、ZooKeeper、Storm、Hystrix、Kubernetes、Zabbix、Prometheus 等工具以出版时版本为准,Hystrix 已进入维护模式。
| 章节号 | 章节标题 | 精读/略读 | 状态(pending/done) | 卡片数 |
|---|---|---|---|---|
| 1 | 分布式架构设计的特征与问题 | 精读 | done | 4 |
| 2 | 分布式应用服务的拆分 | 精读 | done | 7 |
| 3 | 分布式调用 | 精读 | done | 10 |
| 4 | 分布式协同 | 精读 | done | 17 |
| 5 | 分布式计算 | 精读 | done | 6 |
| 6 | 分布式存储 | 精读 | done | 9 |
| 7 | 分布式资源管理和调度 | 精读 | done | 9 |
| 8 | 高性能与可用性 | 精读 | done | 11 |
| 9 | 指标与监控 | 精读 | done | 13 |
| 10 | 架构设计思路和要点 | 精读 | done | 8 |
| 序号 | 实践卡 | 实践方式 | 状态 |
|---|---|---|---|
| 001 | [[给调用加舱壁熔断]] | 行为实验 | 计划已写,未执行 |
| 002 | [[用四指标配告警]] | 真实任务 | 计划已写,未执行 |
| 必答维度 | 覆盖状态 | 关联卡片标题或未覆盖理由 |
|---|---|---|
| 服务拆分原则 | 已覆盖 | [[拆分要有边界]]、[[DDD源于需求]]、[[领域是边界]]、[[聚合根控一致]]、[[分层隔离变化]] |
| 通信机制 | 已覆盖 | [[RPC调用链路]]、[[注册发现解耦]]、[[网关是边界]]、[[领域事件解耦]]、[[Netty事件驱动]] |
| 一致性与事务权衡 | 已覆盖 | [[CAP取舍]]、[[BASE柔性一致]]、[[2PC先问后提交]]、[[TCC业务补偿]]、[[主从复制]] |
| 可观测性设计 | 已覆盖 | [[四黄金指标]]、[[三类监控]]、[[调用链还原路径]]、[[监控分层]]、[[告警路由分发]] |
| 容错设计 | 已覆盖 | [[限流保主体]]、[[降级保核心]]、[[熔断止传播]]、[[隔离限制连坐]]、[[缓存故障要恢复]] |
| 扩展性瓶颈与应对 | 已覆盖 | [[负载均衡分层]]、[[分库分表]]、[[扩容重在迁移]]、[[缓存分片]]、[[扩展立方]] |
| 部署与发布策略 | 部分覆盖 | [[K8s控制循环]]、[[Service稳定访问]];书中只讲 Kubernetes 部署与副本维持,未讲灰度发布和回滚 |
本书按拆分、调用、协同、计算、存储、调度、高性能与可用性、监控和架构思维展开;卡片全部复用既有主题(业务驱动演进、DDD、负载均衡、服务发现、RPC、分布式锁与事务、共识、大数据计算、分片与复制、缓存、调度与容器编排、过载保护、可观测性、架构设计与成长等),未新建主题。
| 卡片标题 | 结论 | 主题文件或原因 |
|---|---|---|
| 业务驱动架构 | 已复用 | notes/_topics/business-driven-tech-evolution.md |
| 分布式四特征 | 已复用 | notes/_topics/business-driven-tech-evolution.md |
| 分布式八问题 | 已复用 | notes/_topics/business-driven-tech-evolution.md |
| 拆分要有边界 | 已复用 | notes/_topics/microservice-boundaries-evolution.md |
| DDD源于需求 | 已复用 | notes/_topics/microservice-boundaries-evolution.md、notes/_topics/ddd-strategic-design.md |
| 通用语言 | 已复用 | notes/_topics/ddd-strategic-design.md |
| 领域是边界 | 已复用 | notes/_topics/ddd-strategic-design.md |
| 实体看身份 | 已复用 | notes/_topics/ddd-tactical-modeling.md |
| 聚合根控一致 | 已复用 | notes/_topics/ddd-tactical-modeling.md |
| 领域事件解耦 | 已复用 | notes/_topics/domain-events-eventual-consistency.md |
| 分层隔离变化 | 已复用 | notes/_topics/layered-architecture-ports.md |
| 负载均衡分层 | 已复用 | notes/_topics/load-balancing.md |
| 算法服务目标 | 已复用 | notes/_topics/load-balancing.md |
| 网关是边界 | 已复用 | notes/_topics/service-discovery-gateway.md |
| 注册发现解耦 | 已复用 | notes/_topics/service-discovery-gateway.md |
| 注册中心可用 | 已复用 | notes/_topics/service-discovery-gateway.md |
| RPC调用链路 | 已复用 | notes/_topics/rpc-rest-api.md |
| 动态代理隐藏远程 | 已复用 | notes/_topics/rpc-rest-api.md |
| 序列化是契约 | 已复用 | notes/_topics/rpc-rest-api.md、notes/_topics/data-interchange-formats.md |
| 协议编码定边界 | 已复用 | notes/_topics/rpc-rest-api.md |
| Netty事件驱动 | 已复用 | notes/_topics/server-io-concurrency-models.md |
| 互斥保护临界 | 已复用 | notes/_topics/distributed-lock-id.md |
| 分布式锁定义 | 已复用 | notes/_topics/distributed-lock-id.md |
| Redis锁易失 | 已复用 | notes/_topics/distributed-lock-id.md |
| ZK锁靠节点 | 已复用 | notes/_topics/distributed-lock-id.md |
| ACID边界 | 已复用 | notes/_topics/distributed-transactions.md |
| CAP取舍 | 已复用 | notes/_topics/distributed-transactions.md、notes/_topics/consistency-models.md |
| BASE柔性一致 | 已复用 | notes/_topics/distributed-transactions.md、notes/_topics/consistency-models.md |
| 2PC先问后提交 | 已复用 | notes/_topics/distributed-transactions.md |
| TCC业务补偿 | 已复用 | notes/_topics/distributed-transactions.md |
| Raft易理解 | 已复用 | notes/_topics/distributed-consensus.md |
| ZAB服务ZK | 已复用 | notes/_topics/distributed-consensus.md |
| DTP三角色 | 已复用 | notes/_topics/distributed-transactions.md |
| Bully按编号选主 | 已复用 | notes/_topics/distributed-consensus.md |
| Znode是状态载体 | 已复用 | notes/_topics/distributed-consensus.md |
| Watcher是通知 | 已复用 | notes/_topics/distributed-consensus.md |
| Version做乐观锁 | 已复用 | notes/_topics/distributed-lock-id.md |
| 会话绑定临时状态 | 已复用 | notes/_topics/distributed-consensus.md |
| MapReduce分治 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| MR架构协作 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| 流处理持续 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| Storm拓扑 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| 流分组决定路由 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| Storm并发粒度 | 已复用 | notes/_topics/big-data-compute-paradigms.md |
| 存储三要素 | 已复用 | notes/_topics/distributed-data-sharding.md |
| RAID是垂直扩展 | 已复用 | notes/_topics/distributed-storage-replication.md |
| 分库分表 | 已复用 | notes/_topics/distributed-data-sharding.md |
| 主从复制 | 已复用 | notes/_topics/distributed-storage-replication.md |
| 扩容重在迁移 | 已复用 | notes/_topics/distributed-data-sharding.md |
| 缓存分片 | 已复用 | notes/_topics/caching-strategies.md |
| Redis集群通信 | 已复用 | notes/_topics/distributed-storage-replication.md |
| 缓存路由找节点 | 已复用 | notes/_topics/caching-strategies.md |
| 缓存故障要恢复 | 已复用 | notes/_topics/distributed-storage-replication.md、notes/_topics/caching-strategies.md |
| 调度匹配资源 | 已复用 | notes/_topics/capacity-scheduling.md |
| 容器划分资源 | 已复用 | notes/_topics/container-orchestration.md |
| 任务资源匹配 | 已复用 | notes/_topics/capacity-scheduling.md |
| 中央调度瓶颈 | 已复用 | notes/_topics/capacity-scheduling.md |
| 两级调度让权 | 已复用 | notes/_topics/capacity-scheduling.md |
| 共享状态调度 | 已复用 | notes/_topics/capacity-scheduling.md |
| K8s控制循环 | 已复用 | notes/_topics/container-orchestration.md |
| APIServer是入口 | 已复用 | notes/_topics/container-orchestration.md |
| Service稳定访问 | 已复用 | notes/_topics/container-orchestration.md |
| 处处皆缓存 | 已复用 | notes/_topics/caching-strategies.md |
| 动静分离 | 已复用 | notes/_topics/web-transport-acceleration.md |
| HTTP两种缓存 | 已复用 | notes/_topics/web-transport-acceleration.md |
| CDN就近访问 | 已复用 | notes/_topics/web-transport-acceleration.md |
| DNS访问链路 | 已复用 | notes/_topics/web-transport-acceleration.md |
| 本地缓存有边界 | 已复用 | notes/_topics/caching-strategies.md |
| 限流保主体 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 降级保核心 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 熔断止传播 | 已复用 | notes/_topics/overload-protection-degradation.md |
| QPS衡量流量 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 隔离限制连坐 | 已复用 | notes/_topics/overload-protection-degradation.md |
| 监控是反馈 | 已复用 | notes/_topics/logging-observability.md |
| 四黄金指标 | 已复用 | notes/_topics/logging-observability.md |
| 监控闭环七步 | 已复用 | notes/_topics/logging-observability.md |
| 三类监控 | 已复用 | notes/_topics/logging-observability.md |
| 调用链还原路径 | 已复用 | notes/_topics/logging-observability.md |
| 度量看趋势 | 已复用 | notes/_topics/logging-observability.md |
| 监控分层 | 已复用 | notes/_topics/logging-observability.md |
| Prometheus拉取 | 已复用 | notes/_topics/logging-observability.md |
| 指标数据模型 | 已复用 | notes/_topics/logging-observability.md |
| 日志记录事件 | 已复用 | notes/_topics/logging-observability.md |
| LSM适合写入 | 已复用 | notes/_topics/storage-data-structures.md |
| Zabbix主动被动 | 已复用 | notes/_topics/logging-observability.md |
| 告警路由分发 | 已复用 | notes/_topics/logging-observability.md |
| 设计三阶段 | 已复用 | notes/_topics/architecture-design-process.md |
| 过程模型落地 | 已复用 | notes/_topics/architecture-design-process.md |
| 协作式设计 | 已复用 | notes/_topics/architecture-design-process.md |
| 扩展立方 | 已复用 | notes/_topics/architecture-design-process.md |
| 重构看时机 | 已复用 | notes/_topics/architecture-refactoring.md |
| 压测找高压线 | 已复用 | notes/_topics/testing-effectiveness.md |
| 观为得学习 | 已复用 | notes/_topics/architect-growth.md |
| 思维方式乘法 | 已复用 | notes/_topics/architect-growth.md |
从本书的主题进入跨书阅读,对照其他书籍的讲解。下方数量包含主题关联的全部卡片与书籍。
主题索引
比较 GFS、HDFS、BigTable、MongoDB、RabbitMQ 等系统的租约、写确认、副本同步、选主与脑裂处理。
主题索引
比较微服务拆分的边界依据、粒度与非业务因素,以及从单体演进和持续重组的策略。
主题索引
比较限流、减载、退避重试、分级依赖与防御成本的过载应对手段。
主题索引
时序模型与拉推采集、黄金指标与分位、探针与 APM、容量与负载、监控分层。
主题索引
比较分布式共识、领导者选举、副本数量与一致性模型的可靠性取舍。
主题索引
比较实体、值对象、聚合与聚合根、工厂等战术建模要素的判定标准与设计原则。
主题索引
比较单元测试、变异、模糊测试、静态分析与故障注入各自能证明什么。
主题索引
比较备选方案设计、评估选择、容量预估与详细设计等架构设计流程中的判断方法。
主题索引
比较缓存穿透、雪崩、热点等问题的成因与应对方案。
主题索引
比较冗余容量、故障域、逻辑与物理资源解耦等容量规划与调度方法。
主题索引
比较子域划分、通用语言、限界上下文与事件风暴等战略设计方法如何确定业务边界。
主题索引
比较容器隔离与镜像理念、Kubernetes 的资源模型与控制器、应用封装方案,以及容器存储的抽象与扩展机制。
主题索引
比较内部与外部一致性、XA/2PC/3PC、CAP 与 BASE,以及可靠事件队列、TCC、SAGA、AT 等柔性事务方案。
主题索引
比较 RPC 要解决的基本问题与历代框架取舍,以及 REST 的资源抽象、统一接口、成熟度与局限。
主题索引
比较分库分片主键选择、分布式数据库选型与跨库关联查询的解法。
主题索引
比较批处理、流式、交互式查询、图计算、分布式机器学习与增量计算的计算模型与取舍。
主题索引
比较服务发现范式、注册中心的 CAP 取舍与实现路线、网关与 BFF,以及地域与区域的流量边界。
主题索引
比较领域事件、消息中间件、事件总线与数据对账在跨聚合、跨服务一致性上的做法与取舍。
主题索引
比较进程/线程并发模型、I/O 多路复用、Reactor 与 Proactor 等单机高性能设计。
主题索引
Trace/Span 模型、标识与上下文传播、采样取舍、OpenTelemetry 与采集器管道。
主题索引
比较分层、洋葱与六边形架构如何隔离核心业务逻辑与外部技术细节,以及各层职责与调用规则。
主题索引
比较顺序一致性、线性一致性、外部一致性等一致性模型,以及 CAP、弱 CAP、HAT、PACELC 对系统取舍的刻画。
主题索引
日志该记什么、怎么分级与结构化,采集管道与存储成本,以及审计证据与安全事件还原。
主题索引
比较负载均衡的分层组合方式与各类分配算法的取舍。
主题索引
比较 HTTP 缓存、DNS 解析、HTTP/2 与 QUIC、分块传输与 CDN 等加速和分流手段。
主题索引
比较架构师所需的判断力、执行力、创新力及其积累方式与成长阶段。
主题索引
比较数据交换格式的简洁性、互通性与安全解析要求。
主题索引
跨进程互斥的分布式锁实现与取舍,以及全局唯一 ID 的生成方案和分布式计数。
主题索引
比较识别重构目标、沟通推动与分段实施等架构重构方法。
主题索引
比较布隆过滤器、跳表、LSM 树、Merkle 树、Cuckoo 哈希等在存储系统中以空间或精度换效率的数据结构。
主题索引
把流当成持续计算来看:拓扑与算子、无界与有界的区别、分组与重分区、键与时间的语义、CEP 与关联操作,以及批流合一与 Lambda/Kappa 的取舍。
主题索引
从浏览器到源站的每一跳能省掉什么:强制缓存与协商缓存、DNS 解析与 HTTPDNS、HTTP/2 多路复用与 QUIC、分块传输与范围请求、静态化与动静分离、CDN 就近分发与回源,以及移动网络下减少往返的手段。
主题索引
比较业务规模与复杂度变化如何驱动技术选型和架构分阶段演进。
主题索引
批量计算的执行模型:Map 与 Reduce 的边界、Shuffle 为什么是成本中心、本地性与重算代价、DAG 怎样突破两阶段落盘、作业链与调度怎样编排,以及 MapReduce 这类模型能解决与不能解决的边界。
主题索引
具体框架的执行模型与接入方式:Storm 拓扑与调优、Spark Streaming 的 RDD 与 DStream 微批、Kafka Streams 的表流对偶、Flume 管道,以及各框架的语义边界与已知坑。
主题索引
告警规则与路由、SLO 与错误预算、告警疲劳,以及怎样让告警对应可行动的响应。