Global Content Delivery and Optimization Flashcards
CloudFront
content delivery network improves the delivery of the content to viewers using caching and a global network
Cloud Front Origin
the source location of your content
can be S3 origin or a custom origin (anything publicly routable)
CloudFront Distribution
The configuration unit of Cloudfront
CloudFront Edge Location
local cache of you data
CloudFront Regional Edge Cache
Larger version of an edge location. Provides another layer of caching.
Is CloudFront capable of read and write caching ?
No only does read caching uploads goes directly to origin
CloudFront Behaviors
control much of the TTL, protocol and privacy settings within CloudFront
How may behaviors can a distribution have?
a distribution can have many behaviors and one default behavior
How do behaviors work ?
for any request that are incoming to an edge location they are pattern matched against any behaviors for that distribution using the path pattern
CloudFront TTL
defined in the behavior default 24hr validity
you can also set min TTL and max TTL
Per Object TTL Values
if you don’t specify an object TTL the default one attached in the behavior is used
origin can direct Cloudfront to used object specific TTL Values via headers
What are some of the headers that can be used to set an object TTL values ?
origin header: cache-control max-age(seconds)
Origin Header: cache-control s-maxage(seconds)
Origin Header: Expires (Date & Time)
Invalidation
performed on a distribution
applies to all edge Location.. takes time
Done by pattern matching Example:
/images/whiskers1.jpg - invalidates 1 item
/Images/*- invalidates all items in the images path
Version names in with Invalidations
Versioning can help if your performing to many invalidations you can upload an item with a new version which wouldn’t require a invalidation
you would just point your application to the new object version
How are you charged for invalidations ?
cost the same no matter how many objects are invalidated
should be though of as a way to correct errors