• Distributes traffic across multiple edge locations
  • It sorts requests so that valid HTTP/HTTPS requests are sent to backend hosts.
  • Supports geoblocking, to prevent requests from particular geographic locations.
  • Helps to distribute content with less delay and higher speeds of data transfer
  • It is a self-service and easily configurable
  • It is pay-per-use service
  • No long term commitment or minimum fees is charged.
  • files are sent to end-users by utilizing edge locations spread globally
  • To use,
    • For static files, store definitive versions of files in one or more origin servers.
    • Register origin servers with Amazon CloudFront through a simple API call.
    • Include cloudfront.net domain name, or a CNAME alias that you create, in web application, media player, or website.
  • global network of edge locations and regional edge caches are used to speed delivery
  • apt for distribution of frequently accessed static content
  • supports content that can be sent using HTTP or WebSocket protocols.
  • works with any origin server that holds original, definitive versions of content, both static and dynamic.
  • For every origin for CloudFront distribution, assign a backup origin to serve traffic if primary fails
  • use AWS Management Console to configure and manage CloudFront
  • edge locations  are worldwide network of data centers called edge locations.
  • regional edge caches are located between origin web server and global edge locations
  • Geo Restriction feature needs list of countries in which users can access content.
  • can create custom error messages for HTTP 4xx and 5xx error responses.
  1. specify origin servers, like S3 bucket or HTTP server
  2. upload files to origin servers, called as objects. It can be
    1. web pages,
    1. images
    1. media files
    1. anything that can be served over HTTP
  3. create a CloudFront distribution, to tell which origin servers to get files from
  4. CloudFront assigns a domain name to new distribution
  5. CloudFront sends distribution’s configuration to all of its edge locations

CloudFront Reporting

Various CloudFront reports in CloudFront console are

  • CloudFront Cache Statistics Reports
  • CloudFront Popular Objects Report
  • CloudFront Top Referrers Report
  • CloudFront Usage Reports
  • CloudFront Viewers Reports
Menu