From 2b7dcb2b2da1745778a1e6ffe02a80fbfb213620 Mon Sep 17 00:00:00 2001 From: Xargin Date: Mon, 6 Aug 2018 18:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=9B=AE=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUMMARY.md | 5 +++-- ch5-web/ch5-10-ext.md | 7 +++++++ ch5-web/ch5-11-ext.md | 3 --- ch5-web/ch5-12-dist-config.md | 1 - .../ch6-05-load-balance.md | 4 ++-- ch6-cloud/{ch6-03-config.md => ch6-06-config.md} | 0 ch6-cloud/{ch6-05-ext.md => ch6-06-ext.md} | 2 +- 7 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 ch5-web/ch5-10-ext.md delete mode 100644 ch5-web/ch5-11-ext.md delete mode 100644 ch5-web/ch5-12-dist-config.md rename ch5-web/ch5-10-load-balance.md => ch6-cloud/ch6-05-load-balance.md (98%) rename ch6-cloud/{ch6-03-config.md => ch6-06-config.md} (100%) rename ch6-cloud/{ch6-05-ext.md => ch6-06-ext.md} (97%) diff --git a/SUMMARY.md b/SUMMARY.md index 34a3df1..9bfbdf2 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -52,13 +52,14 @@ * [5.8 interface 和 table-driven 开发](ch5-web/ch5-08-interface-and-web.md) * [5.9 灰度发布和 A/B test](ch5-web/ch5-09-gated-launch.md) * [5.10 Load-balance负载均衡](ch5-web/ch5-10-load-balance.md) - * [5.11 补充说明(TODO)](ch5-web/ch5-11-ext.md) + * [5.10 补充说明](ch5-web/ch5-10-ext.md) * [第6章 分布式系统](ch6-cloud/readme.md) * [6.1 分布式锁](ch6-cloud/ch6-01-lock.md) * [6.2 分布式 id 生成器](ch6-cloud/ch6-02-dist-id.md) * [6.3 延时任务系统](ch6-cloud/ch6-03-delay-job.md) * [6.4 分布式搜索引擎](ch6-cloud/ch6-04-search-engine.md) - * [6.5 补充说明(TODO)](ch6-cloud/ch6-05-ext.md) + * [6.5 负载均衡](ch6-cloud/ch6-05-load-balance.md) + * [6.6 补充说明](ch6-cloud/ch6-06-ext.md) * [附录](appendix/readme.md) * [附录A: Go语言常见坑](appendix/appendix-a-trap.md) * [附录B: 有趣的代码片段](appendix/appendix-b-gems.md) diff --git a/ch5-web/ch5-10-ext.md b/ch5-web/ch5-10-ext.md new file mode 100644 index 0000000..f093224 --- /dev/null +++ b/ch5-web/ch5-10-ext.md @@ -0,0 +1,7 @@ +# 5.10 补充说明 + +现代的软件工程是离不开 web 的,广义地来讲,web 甚至可以不用非得基于 http 协议。只要是 CS 或者 BS 架构,都可以认为是 web 系统。 + +即使是在看起来非常封闭的游戏系统里,因为玩家们与日俱增的联机需求,也同样会涉及到远程通信,这里面也会涉及到很多 web 方面的技术。 + +所以这个时代,web 编程是一个程序员所必须接触的知识领域。无论你的目标是成为架构师,是去创业,或是去当技术顾问。web 方面的知识都会成为你的硬通货。 diff --git a/ch5-web/ch5-11-ext.md b/ch5-web/ch5-11-ext.md deleted file mode 100644 index 40bc29e..0000000 --- a/ch5-web/ch5-11-ext.md +++ /dev/null @@ -1,3 +0,0 @@ -# 5.11 补充说明 - -TODO diff --git a/ch5-web/ch5-12-dist-config.md b/ch5-web/ch5-12-dist-config.md deleted file mode 100644 index 2643d29..0000000 --- a/ch5-web/ch5-12-dist-config.md +++ /dev/null @@ -1 +0,0 @@ -# 5.12 Dist-config 分布式配置服务 diff --git a/ch5-web/ch5-10-load-balance.md b/ch6-cloud/ch6-05-load-balance.md similarity index 98% rename from ch5-web/ch5-10-load-balance.md rename to ch6-cloud/ch6-05-load-balance.md index 63a2b10..c31ac1a 100644 --- a/ch5-web/ch5-10-load-balance.md +++ b/ch6-cloud/ch6-05-load-balance.md @@ -1,6 +1,6 @@ -# 5.10 Load-Balance 负载均衡 +# 6.5 Load-Balance 负载均衡 -本节将会讨论常见的 web 后端服务之间的负载均衡手段。 +本节将会讨论常见的分布式系统负载均衡手段。 ## 常见的负载均衡思路 diff --git a/ch6-cloud/ch6-03-config.md b/ch6-cloud/ch6-06-config.md similarity index 100% rename from ch6-cloud/ch6-03-config.md rename to ch6-cloud/ch6-06-config.md diff --git a/ch6-cloud/ch6-05-ext.md b/ch6-cloud/ch6-06-ext.md similarity index 97% rename from ch6-cloud/ch6-05-ext.md rename to ch6-cloud/ch6-06-ext.md index e97974a..a4d67b2 100644 --- a/ch6-cloud/ch6-05-ext.md +++ b/ch6-cloud/ch6-06-ext.md @@ -1,4 +1,4 @@ -# 6.5 补充说明 +# 6.6 补充说明 分布式是很大的领域,本章中的介绍只能算是对领域的管中窥豹。因为大型系统流量大,并发高,所以往往很多朴素的方案会变得难以满足需求。人们为了解决大型系统场景中的各种问题,而开发出了各式各样的分布式系统。有些系统非常简单,比如本章中介绍的分布式 id 生成器,而有一些系统则可能非常复杂,比如本章中的分布式搜索引擎(当然,本章中提到的 es 不是 Go 实现)。