CDN - CONTENT DELIVERY NETWORK
CDN - CONTENT DELIVERY NETWORK
Internet ?
Content Delivery Networks
(CDNs)
Presented by,
Sachin
2303864
M.Sc. (Int)
What is CDN ?
Definition:
A content delivery network (CDN) is a geographically
distributed group of servers that caches content close to
end users.
Why use CDN ?
• A CDN allows for the quick transfer of assets needed for
loading Internet content, including HTML pages,
JavaScript files, stylesheets, images, and videos.
• If the user is located far from that server, it will take a
long time to load a large file, such as a video or website
image.
• Instead, the website content is stored on CDN servers
geographically closer to the users and reaches their
computers much faster.
How does a CDN work?
Some terminologies…
• Original Server: Server that is hosting original
content.
• Edge Server: Server that is handling user requests and
caching a copy of original content.
• Client: Device that is sending request to access the
content.
Two key technologies…
• Caching
• Dynamic Acceleration
Caching
• Caching is the process of storing multiple copies of the
same data for faster data access.
• In computing, the principle of caching applies to all
types of memory and storage management.
• In CDN technology, the term refers to the process of
storing static website content on multiple servers in the
network.
How does caching works?
• A client makes the first request for the content.
• The request reaches geographically closest edge server.
• The edge server forwards the request to the original server.
• The origin server sends the response to the edge server.
• The edge server forwards the response to the client. At the
same time it stores a copy of the response as a cached file.
• Next time any visitor in that location, makes the same
request, the edge server (not the original server) looks for
the cached file and sends the response.
Dynamic acceleration
• Dynamic acceleration is the reduction in server response
time for dynamic web content requests because of an
intermediary edge server between the web applications
and the client.
• Caching doesn't work well with dynamic web content
because the content can change with every user request.
• Edge servers have to reconnect with the origin server for
every dynamic request, but they accelerate the process
by optimizing the connection between themselves and
the origin servers.
Dynamic acceleration
• If the client sends a dynamic request directly to the
Original server over the internet, the request might get
lost or delayed due to network latency.
• Time might also be spent opening and closing the
connection for security verification.
• On the other hand, if the nearby CDN server forwards
the request to the origin server, they would already
have an ongoing, trusted connection established.
Benefits of CDNs
Reduce page load time
• Website traffic can decrease if your page load times are
too slow.
• A CDN can reduce bounce rates and increase the time
users spend on your site.
Benefits of CDNs
Reduce bandwidth costs
• Bandwidth costs are a significant expense because
every incoming website request consumes network
bandwidth.
• CDNs can reduce the amount of data an origin server
must provide, reducing the costs of hosting for website
owners.
Benefits of CDNs
Increase content availability
• Too many visitors at one time or network hardware
failures can cause a website to crash.
• CDN services can handle more web traffic and reduce
the load on web servers.
• Also, if one or more CDN servers go offline, other
operational servers can replace them to ensure
uninterrupted service.
Benefits of CDNs
Improve website security
• Distributed denial-of-service (DDoS) attacks attempt to
take down applications by sending large amounts of
fake traffic to the website.
• CDNs can handle such traffic spikes by distributing the
load between several intermediary servers, reducing
the impact on the origin server.
Use cases
• High-speed content delivery
• Real-time streaming
• Multi-user scaling
Some CDN services
• Cloudflare
• Akamai
• Amazon CloudFront
• Google Cloud CDN
References
• https://www.ibm.com/topics/content-delivery-networks
• https://www.cloudflare.com/learning/cdn/what-is-a-cdn/
• https://aws.amazon.com/what-is/cdn/
Questions?
Thank You