Should you use a content delivery network (CDN)? 03-08-2018, 09:54 PM
#1
Hello folks!
I recently noticed that many unexperienced devs tend to host files by themselves rather than using a CDN. So I just thought it might be worth mentioning CDNs do exist. Feel free to suggest additional advantages and disadvantages.
What is a CDN?
A CDN (content delivery network) is a network of servers that deliver content to a user, based on the location of the user, the location of the webserver and the location of the content delivery server. The idea behind such a system is that static content such as CSS, JS or often used images like logos can be delivered way faster due to the content delivery server being close (in terms of the minimum amount of nodes between the server and the user) to the user.
Advantages of using a CDN
- Accelerate site load times (due to caching and the close distance to the content delivery server)
- Reduce bandwidth (big public CDNs like the bootstrap CDN are used on many websites so the chances of the content it delivers already being cached is very high)
Disadvantages of using a CDN
- Content isn't hosted and managed by the website developer in case it's a public CDN like bootstrap (unannounced changes may result in issues on your website)
- Setting up/Running your own CDN can be very complex and expensive depending on your needs
I recently noticed that many unexperienced devs tend to host files by themselves rather than using a CDN. So I just thought it might be worth mentioning CDNs do exist. Feel free to suggest additional advantages and disadvantages.
What is a CDN?
A CDN (content delivery network) is a network of servers that deliver content to a user, based on the location of the user, the location of the webserver and the location of the content delivery server. The idea behind such a system is that static content such as CSS, JS or often used images like logos can be delivered way faster due to the content delivery server being close (in terms of the minimum amount of nodes between the server and the user) to the user.
Advantages of using a CDN
- Accelerate site load times (due to caching and the close distance to the content delivery server)
- Reduce bandwidth (big public CDNs like the bootstrap CDN are used on many websites so the chances of the content it delivers already being cached is very high)
Disadvantages of using a CDN
- Content isn't hosted and managed by the website developer in case it's a public CDN like bootstrap (unannounced changes may result in issues on your website)
- Setting up/Running your own CDN can be very complex and expensive depending on your needs


![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)











