

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 2
click for more info
Not enough gems
Cost: 6 gems
1: Regions
incomplete
2: CDNs
incomplete
3: Use CloudFront
incomplete
4: Invalidations
incomplete
5: Why CDNs?
incomplete
This lesson's interactive features are locked, please to keep using them
A CDN like CloudFront has two purposes (as far as the context of this course is concerned):
Some CDNs, like CloudFlare, (not to be confused with CloudFront) are known for their incredibly robust security features. Things like DDoS protection, Web Application Firewalls, etc.
Images and videos are certainly common, but in reality any static asset is a good fit for a CDN. Here at Boot.dev, we use CloudFlare's CDN to serve the static assets for our frontend:
We deploy on their edge network, which means that our users get the initial HTML document quickly. That said, our backend server is a Go application running in a single region in the United States, so any dynamic requests to our API still have to come all the way back to the US.