Skip to content

Step 3 - What are CDNs?

Course: Frontend Deployments on AWS - chapter 3

A CDN stands for Content Delivery Network. As the name suggests, it’s an optimal way for you to deliver content (mp4 files, jpgs and even HTML/CSS/JS files) to your users.

It is better than serving it from a VM/EC2 instances because of a few reasons -

  1. For frontends, mp4 files, images, Object stores + CDNs are a better approach.
  2. You can’t use the same for backends, since every request returns a different response. Caching doesn’t make any sense there.

💡 You can use edge networks for backends (deploy your backend on various servers on the internet) but data can’t be cached in there.

Great video on how Hotstar scales their infrastructure during cricket matches (they use CDNs heavily)

video: https://www.youtube.com/watch?v=9b7HNzBB3OQ