CMSC389L
Week 3
S3 + CloudFront
February 9, 2018
Class Today
- S3 Review
- S3 Worksheet
- CloudFront
- CloudFront Worksheet
S3 Storage Types
S3 Default | S3 RRS | S3 IA | Glacier | |
---|---|---|---|---|
Durability | 99.999999999% | 99.99% | 99.999999999% | 99.999999999% |
Availability | 99.99% | 99.99% | 99.9% | 99.99% |
Extra Fees * | None | None | Retrieval | Retrieval |
Real-Time Access? | Yes | Yes | Yes | No (mins/hours) |
Frequently Accessed? | Yes | Yes | No | No |
* : Excludes the usual data storage (per-GB), external bandwidth (GB/month), and API call charges
This Semester
Networking
Compute
Data + Storage
- ALBs
- SQS
- API Gateway
- EC2
- Lambda
- ECS + Docker
- S3
- CloudFront
- DynamoDB
- Elasticsearch
Infrastructure Management
- Auto Scaling
- CloudFormation
CloudFront
CloudFront Concepts
-
Content Delivery Networks (CDN): a globally-distributed network of proxy servers which cache content
- Use cases: web streaming, static content acceleration
CDN Metrics
-
What CDNs help improve:
- Latency: Time taken until the first byte is downloaded
- Data Transfer Rates: Rate at which data is transferred to the client
-
But be careful of:
- Cache Hit Ratio: The percent of requests where the data can be retrieved from the cache
CloudFront Concepts
- Edge Locations: Proxy server in the CloudFront network
- Regional Edge Caches: Proxy servers that intermediates between origin server and edge locations.
CloudFront Concepts
- Origin Server: The definitive store of content that CloudFront will accelerate (f.e., S3 or EC2 web server)
-
Distribution: Configuration specifying your origin server, cache invalidation rules, etc.
- Shared with edge locations
CloudFront Costs
- Transfer from CloudFront to Internet (US): $0.085 / GB
- Varies by country and account throughput
- Drops to $0.020 / GB (if > 5 PB / month)
- Varies by country and account throughput
- Transfer from AWS (S3, etc.) to CloudFront: Free
- Per-request fee: $0.01 / 10k requests
Worksheet: CloudFront
Complete the worksheet on CloudFront.
Last Few Minutes
Join Piazza (see the syllabus)
Codelab 2 (S3) and 3 (CloudFront) due Thursday 11:59PM
Feedback form: ter.ps/feedback3
CMSC389L S18: Week 3
By Colin King
CMSC389L S18: Week 3
- 854