AWS - Network and Content Delivery

Network and Content Delivery


  1. Virtual Private Cloud(VPC) are virtual systems that are used to host services and application.
  2. Amazon DNS service is Route53(53 is DNS port).
  3. CloudFront is used for content delivery.
  4. Direct connect is used to physically connect AWS data centre through telephone lines.

CloudFront

  1. Content delivery network(CDN) is a system of distributed servers (network) that deliver webpages and web contents to requestor based on geographic locations of user.
  2. Edge location are the locations where the content will be cached, separate entity from AZ or region.
  3. Origin of content that is distributed by CDN are EC2, S3, Elastic load balancer or route53.
  4. Distribution is name given to the CDN which consists of the edge locations. Two type distribution Web for websites and RTMP(real time messg protocol) for adobe flash.
  5. User hits URL, a request is first sent to edge location, if the object found request is served else request sent to S3 bucket that contains requested object.
  6. Object from S3 is cached to edge location and then served to requestor.
  7. Time to live (TTL, in seconds, default 1day) a parameter that determines, How long the object will be available on edge location.
  8. Edge location, we can put object on edge location as well as read.
  9. To clear cached object manually, it is charged.
  10. Using CloudFront to Serve Private Content

Distribution

A distribution allows you to distribute content using a worldwide network of edge locations that provide low latency and high data transfer speeds.
  1. Create a web distribution if you want to:
    • Speed up distribution of static and dynamic content, for example, .html, .css, .php, and graphics files.
    • Distribute media files using HTTP or HTTPS.
    • Add, update, or delete objects, and submit data from web forms.
    • Use live streaming to stream an event in real time.
    You store your files in an origin - either an Amazon S3 bucket or a web server. After you create the distribution, you can add more origins to the distribution.
  2. Create an RTMP distribution to speed up distribution of your streaming media files using Adobe Flash Media Server's RTMP protocol. An RTMP distribution allows an end user to begin playing a media file before the file has finished downloading from a CloudFront edge location. Note the following:
    • To create an RTMP distribution, you must store the media files in an Amazon S3 bucket.
    • To use CloudFront live streaming, create a web distribution.






















Comments