Skip to content

Commit 0f84f8c

Browse files
author
Joseph Luce
authored
Update content_delivery_network.md
1 parent 9a385c8 commit 0f84f8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system_design/content_delivery_network.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Mainly used when a user or users from a remote geographic location requests for
1818
The closest CDN to that request will check if that content is avaliable, if its not, it will then ask the main server for that content.
1919
Then the main server will deliver the content to the CDN, the CDN then caches that request and finally returns the content to the user.
2020

21-
So this is basically a process a request if asked approach.
21+
So this is basically a process a request if asked approach. The con is that this approach decreases speeds, its like a CDN never existed in the first place for that specific user.
2222

2323
## Push Based CDNs
24-
Roughly the opposite of pull based CDNs, instead of waiting for a user to ask for the content. When the main server as an update, it will automatically push that content to the CDNs. So when the user does ask for the content, it will be avaliable immediately.
25-
Obviously, this may result in extra processing that may or may not be needed if the new content is never asked, especially in locations with little to no traffic or a location that likes one sub section of a website more than other sections.
24+
Roughly the opposite of pull based CDNs, instead of waiting for a user to ask for the content. When the main server has an update, it will automatically push that content to the CDNs. So when the user does ask for the content, it will be avaliable immediately.
25+
Obviously, this may result in extra processing that may or may not be needed if the new content is never asked, especially in locations with little to no traffic or a location that likes one sub section of a website more than other sections. Another con is that the content needs to be packaged up by the main server per update, increasing its load.
2626

2727
## When to use CDNs?
2828
A great scenario to use CDNs is if most of the website content is static, say images, videos, documents that do not require input from your main server.

0 commit comments

Comments
 (0)