[ SRE_ARENA ]
EDGE & CDN (CLOUDFRONT, WAF)

Edge & CDN: CloudFront, WAF & Route53

Visualization: 1. The Edge (CloudFront CDN)
DOWNLOADING CONCEPT: 1. THE EDGE (CLOUDFRONT CDN)...
  • ↳The speed of light is a physical limit.
  • ↳If your S3 bucket is in Virginia, USA, a user in London will always experience ~150ms of latency to download an image.
Amazon CloudFront
  • ↳is a Content Delivery Network (CDN).
  • ↳AWS has hundreds of 'Edge Locations' (mini-datacenters) placed in almost every major city on Earth.
  • ↳When the London user requests the image, they connect to the London Edge Location (10ms latency).
  • ↳If the image isn't there, CloudFront fetches it from Virginia, serves it, and *caches* it in London.
  • ↳The next million users in London who request that image get it instantly from the local cache, completely bypassing your Origin server in Virginia.
▲ LIVE INCIDENTYou deployed a new version of your frontend React application to S3. However, users in Europe are complaining that they are still seeing the old version of the website.
sre@arena:~/cloud-edge
sre@arena:~$ curl -I https://my-cloudfront-url.com/index.html