Skip to content

Commit e2e3bff

Browse files
committed
docs: 更新文档
1 parent 8e68b2c commit e2e3bff

File tree

68 files changed

+93
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+93
-87
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*.less text
2323
*.sql text
2424
*.properties text
25+
*.md text
2526

2627
# unix style
2728
*.sh text eol=lf

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,22 @@ package-lock.json
3737
node_modules
3838

3939
# temp folders
40-
.temp
40+
build
4141
dist
4242
_book
4343
_jsdoc
44+
.temp
45+
.deploy*/
4446

4547
# temp files
4648
*.log
4749
npm-debug.log*
4850
yarn-debug.log*
4951
yarn-error.log*
5052
bundle*.js
53+
.DS_Store
54+
Thumbs.db
55+
db.json
5156
book.pdf
5257

5358

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</a>
1616

1717
<a href="https://github.com/dunwu/design/commits/master">
18-
<img alt="commit" class="no-zoom" src="https://img.shields.io/github/workflow/status/dunwu/design/CI?style=for-the-badge">
18+
<img alt="build" class="no-zoom" src="https://img.shields.io/github/actions/workflow/status/dunwu/design/deploy.yml?style=for-the-badge">
1919
</a>
2020

2121
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">

docs/03.设计/01.架构/00.综合/00.如何设计系统.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ permalink: /pages/0a89f3/
7171
## 参考资料
7272

7373
- [system-design-primer](https://github.com/donnemartin/system-design-primer)
74-
- [System Design for Tech Interviews](https://www.hiredintech.com/courses/system-design)
74+
- [System Design for Tech Interviews](https://www.hiredintech.com/courses/system-design)

docs/03.设计/01.架构/00.综合/01.系统架构面试.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ permalink: /pages/000a7b/
5959
## 参考资料
6060

6161
- [如何设计秒杀系统? - 阿里云云栖社区的回答 - 知乎](https://www.zhihu.com/question/54895548/answer/146924420)
62-
- [如何设计秒杀系统? - 网易云的回答 - 知乎](https://www.zhihu.com/question/54895548/answer/259218876)
62+
- [如何设计秒杀系统? - 网易云的回答 - 知乎](https://www.zhihu.com/question/54895548/answer/259218876)

docs/03.设计/01.架构/00.综合/02.系统架构概述.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,4 +476,4 @@ permalink: /pages/db2390/
476476

477477
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)
478478
- 《从 0 开始学架构》
479-
- [软件架构入门- 阮一峰的网络日志](http://www.ruanyifeng.com/blog/2016/09/software-architecture.html)
479+
- [软件架构入门- 阮一峰的网络日志](http://www.ruanyifeng.com/blog/2016/09/software-architecture.html)

docs/03.设计/01.架构/00.综合/03.系统高性能架构.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Reactor 模式的核心组成部分包括 Reactor 和处理资源池(进程池
258258

259259
**高性能集群的复杂性主要体现在需要增加一个任务分配器,以及为任务选择一个合适的任务分配算法**
260260

261-
> 缓存解决方案请参考:[负载均衡](https://github.com/dunwu/blog/blob/master/source/_posts/theory/load-balance.md)
261+
> 缓存解决方案请参考:[负载均衡](https://dunwu.github.io/blog/pages/98a1c1/)
262262
263263
### 代码优化
264264

@@ -309,13 +309,13 @@ Reactor 模式的核心组成部分包括 Reactor 和处理资源池(进程池
309309

310310
**读写分离的基本原理是将数据库读写操作分散到不同的节点上**
311311

312-
> 详细解决方案参考:[分布式存储](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-storage.md)
312+
> 详细解决方案参考:[读写分离](https://dunwu.github.io/blog/pages/3faf18/)
313313
314314
#### 数据库分库分表
315315

316316
**数据分片指按照某个维度将存放在单一数据库中的数据分散地存放至多个数据库或表中以达到提升性能瓶颈以及可用性的效果**
317317

318-
> 详细解决方案参考:[分布式存储](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-storage.md)
318+
> 详细解决方案参考:[分库分表](https://dunwu.github.io/blog/pages/e1046e/)
319319
320320
#### Nosql
321321

@@ -400,4 +400,4 @@ CDN 的本质仍然是一个缓存,而且将数据缓存在离用户最近的
400400
## 参考资料
401401

402402
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)
403-
- [Java 性能调优实战](https://time.geekbang.org/column/intro/100028001)
403+
- [Java 性能调优实战](https://time.geekbang.org/column/intro/100028001)

docs/03.设计/01.架构/00.综合/04.系统高可用架构.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ permalink: /pages/9a462f/
7777

7878
学习高可用架构,首先需要了解分布式基础理论:CAP 和 BASE。
7979

80-
然后,很多著名的分布式系统,都利用选举机制,来保证主节点宕机时的故障恢复。如果要深入理解选举机制,有必要了解:[Paxos 算法](https://github.com/dunwu/blog/blob/master/source/_posts/theory/paxos.md)[Raft 算法](https://github.com/dunwu/blog/blob/master/source/_posts/theory/raft.md)。Paxos 和 Raft 是为了实现分布式系统中高可用架构而提出的共识性算法,已经成为业界标准。
80+
然后,很多著名的分布式系统,都利用选举机制,来保证主节点宕机时的故障恢复。如果要深入理解选举机制,有必要了解:[Paxos 算法](https://dunwu.github.io/blog/pages/0276bb/)[Raft 算法](https://dunwu.github.io/blog/pages/4907dc/)。Paxos 和 Raft 是为了实现分布式系统中高可用架构而提出的共识性算法,已经成为业界标准。
8181

8282
CAP 定理又称为 CAP 原则,指的是:**在一个分布式系统中, `一致性(C:Consistency)``可用性(A:Availability)``分区容忍性(P:Partition Tolerance)`,最多只能同时满足其中两项**
8383

8484
BASE 是 **`基本可用(Basically Available)`****`软状态(Soft State)`****`最终一致性(Eventually Consistent)`** 三个短语的缩写。BASE 理论是对 CAP 中一致性和可用性权衡的结果,它的理论的核心思想是:即使无法做到强一致性,但每个应用都可以根据自身业务特点,采用适当的方式来使系统达到最终一致性。
8585

86-
> CAP 和 BASE 理论的详细说明请参考:[分布式理论](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-base-theory.md)
86+
> CAP 和 BASE 理论的详细说明请参考:[分布式一致性](https://dunwu.github.io/blog/pages/dac0e2/)
8787
>
88-
> Paxos 和 Raft 的详细说明请参考:[Paxos 算法](https://github.com/dunwu/blog/blob/master/source/_posts/theory/paxos.md)[Raft 算法](https://github.com/dunwu/blog/blob/master/source/_posts/theory/raft.md)
88+
> Paxos 和 Raft 的详细说明请参考:[Paxos 算法](https://dunwu.github.io/blog/pages/0276bb/)[Raft 算法](https://dunwu.github.io/blog/pages/4907dc/)
8989
9090
## 架构模式
9191

@@ -171,7 +171,7 @@ BASE 是 **`基本可用(Basically Available)`**、**`软状态(Soft State
171171

172172
无状态的应用实现高可用架构十分简单,由于服务器不保存请求状态,那么所有服务器完全对等,在任意节点执行同样的请求,结果总是一致的。这种情况下,最简单的高可用方案就是使用负载均衡。
173173

174-
> 负载均衡原理可以参考:[负载均衡基本原理](https://github.com/dunwu/blog/blob/master/source/_posts/theory/load-balance.md)
174+
> 负载均衡原理可以参考:[负载均衡基本原理](https://dunwu.github.io/blog/pages/98a1c1/)
175175
176176
### 分布式 Session
177177

@@ -185,7 +185,7 @@ BASE 是 **`基本可用(Basically Available)`**、**`软状态(Soft State
185185
- 应用服务器间的 session 复制共享
186186
- 基于缓存的 session 共享 ✅
187187

188-
> 分布式会话原理可以参考:[分布式会话基本原理](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-session.md)
188+
> 分布式会话原理可以参考:[分布式会话基本原理](https://dunwu.github.io/blog/pages/95e45f/)
189189
190190
## 高可用的服务
191191

@@ -379,4 +379,4 @@ BASE 是 **`基本可用(Basically Available)`**、**`软状态(Soft State
379379

380380
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)
381381
- [《亿级流量网站架构核心技术:跟开涛学搭建高可用高并发系统》](https://item.jd.com/12153914.html)
382-
- [左耳听风](https://time.geekbang.org/column/intro/48)
382+
- [左耳听风](https://time.geekbang.org/column/intro/48)

docs/03.设计/01.架构/00.综合/05.系统伸缩性架构.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ IP 负载均衡在内核完成数据分发,所以处理性能优于反向代
137137

138138
## 参考资料
139139

140-
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)
140+
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)

docs/03.设计/01.架构/00.综合/06.系统扩展性架构.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,4 @@ SOA 提出了 3 个关键概念。
168168

169169
## 参考资料
170170

171-
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)
171+
- [《大型网站技术架构:核心原理与案例分析》](https://item.jd.com/11322972.html)

0 commit comments

Comments
 (0)