Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donne Martin
system-design-primer
Commits
6063b5bc
Unverified
Commit
6063b5bc
authored
6 years ago
by
Wan Huang Yang
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Correct Chinese CDN translation
parent
33431e61
github/fork/oney/patch-1
1 merge request
!290
zh-Hans: Correct Chinese CDN translation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README-zh-Hans.md
+3
-3
README-zh-Hans.md
with
3 additions
and
3 deletions
+3
-3
README-zh-Hans.md
+
3
-
3
View file @
6063b5bc
...
...
@@ -599,16 +599,16 @@ DNS 和 email 等系统使用的是此种方式。最终一致性在高可用性
### CDN 拉取(pull)
CDN 拉取是当第一个用户请求该资源时,从服务器上拉取资源。你将内容留在自己的服务器上并重写 URL 指向 CDN 地址。直到内容被缓存在 CDN
上为止,这样请求只会更慢,
CDN 拉取是当第一个用户请求该资源时,从服务器上拉取资源。你将内容留在自己的服务器上并重写 URL 指向 CDN 地址。
请求会比较慢,
直到内容
已
被缓存在 CDN
。
[
存活时间(TTL)
](
https://en.wikipedia.org/wiki/Time_to_live
)
决定缓存多久时间。CDN 拉取方式最小化 CDN 上的储存空间,但如果
过期文件并
在实际更改之前被拉取,则会导致冗余的流量。
[
存活时间(TTL)
](
https://en.wikipedia.org/wiki/Time_to_live
)
决定缓存多久时间。CDN 拉取方式最小化 CDN 上的储存空间,但如果
文件过期或
在实际更改之前被拉取,则会导致冗余的流量。
高流量站点使用 CDN 拉取效果不错,因为只有最近请求的内容保存在 CDN 中,流量才能更平衡地分散。
### 缺陷:CDN
*
CDN 成本可能因流量而异,可能在权衡之后你将不会使用 CDN。
*
如果在 TTL 过期之前更新内容,CDN 缓存内容可能
会过时
。
*
如果在 TTL 过期之前更新内容,CDN 缓存内容可能
不是最新的
。
*
CDN 需要更改静态内容的 URL 地址以指向 CDN。
### 来源及延伸阅读
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets