CDN
stands for Content Delivery Network
.
- It is a system of distributed servers
that work together to deliver web content
, such as images, stylesheets, JavaScript files, and videos, to users based on their geographical location
.
- The primary purpose of using a CDN is to enhance the performance, reliability, and efficiency
of delivering web content to end-users.
Here are some key reasons why CDNs are used:
Content Distribution: The CDN provider distributes copies of your website's static content (like images, videos, and scripts) to multiple servers across different geographical locations.
Server Proximity: When a user requests a particular piece of content, the CDN serves it from the server closest to the user. This minimizes the physical distance that data has to travel, reducing latency and improving load times.
Caching: CDNs use caching mechanisms to store static content on their servers temporarily. This allows subsequent users to access the content more quickly, as it's already available on a nearby server.
Load Balancing: CDNs often use load balancing techniques to distribute incoming web traffic across multiple servers. This helps prevent any single server from becoming overwhelmed and ensures optimal performance.
Security: CDNs can provide security features like DDoS (Distributed Denial of Service) protection, SSL/TLS encryption, and web application firewalls, helping to enhance the security of the websites they serve.
Bootstrap CDN:
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
<script src = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
React CDN:
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>