Scaling - Cloudfront Flashcards
What is Cloudfront?
can deliver content to your users faster by caching static and dynamic content at edge locations;
How is dynamic content delivered?
via HTTP cookies forwarded from the origin;
What other delivery methods are supported?
supports RTMP but it must be selected; web distributions also support media/live streaming via http/https
What objects can be origins?
S3, EC2, ELB or another web server; multiple origins can be configured
What the methods of invalidating a Cloudfront cache?
- Simply delete the file from the origin; wait for the TTL to expire
- Use AWS Console to request invalidation of all content or specific path
- Use CloudFront API to submit an invalidation request
- 3rd party tools
How are you charged?
charged for S3 storage, data transfer from edge locations and your origin, also HTTP/HTTPS request from your origin, invalidation requests, Custom SSL certs
What is cache behavior?
allows configuration of any CloudFront URL path pattern for files on your website
How does configuration of the cache behavior affect website files?
- path pattern
- if multiple origins, which origin should cloudfront forward to
- forward query strings to your origin?
- access of certain files requires signed URLs?
- is HTTPs required or not for user access to files
- amount of time files remain in Cloudfront
What are geo-restrictions?
prevents users in selected countries from access your content; the request from a restricted country prompts a HTTP 403 code
Can zone apex records be leveraged and how?
yes; with Route 53, an alias record can be configured to map to the apex or root of your DNS name to your Cloud distribution (example.com versus www.example.com)