2. CloudFront & Serving Media from the Edge
Benefits
deliver service quicker
optimal user experience
minimal cost
massive scale
Review and Focus
products
architectures
best practices
Requirements
media storage
processing
delivery – static and dynamic
7. CloudFront in a nutshell
A Content delivery network that delivers:
• Low latency. Improves media load times.
• High bandwidth. Enables high bit rate
HD video and other media applications.
• Redundant. Eliminates single points of
failure.
• Scalable. Ensure great experience as
number of end users grows.
• Global. Worldwide network provides great
experience regardless of geography.
• Cost-effective. Pay-as-you go model
provides flexibility for your business.
8. Key features for CloudFront
• RTMP (Flash) and HTTP delivery
• Live and VOD
• Low Minimum Expiration (TTL = 0)
• Adaptive Bitrate Streaming
• HTTP/HTTPS File Delivery
• Private Content
• Programmatic Invalidation
• Industry-compliant, detailed access logs
• AWS Management Console
• Full control via APIs
• Support for dynamic content
9. Global infrastructure
Deployment & Administration
App Services
Compute Storage Database Regions
An independent collection of AWS resources in a
Networking defined geography
A solid foundation for meeting location-dependent
AWS Global Infrastructure privacy and compliance requirements
10. Global Infrastructure
Deployment & Administration
App Services
Compute Storage Database Availability Zones
Designed as independent failure zones
Networking Physically separated within a typical metropolitan
region
AWS Global Infrastructure
11. Global Infrastructure
Deployment & Administration
App Services
Compute Storage Database Edge Locations
To deliver content to end users with lower latency
Networking A global network of edge locations
Supports global DNS infrastructure (Route53) and
AWS Global Infrastructure Cloud Front CDN
12. Back to Basics
Delivery of Non-Cached Video Download
Object Request routed
End user
S3 bucket or requested from to optimal edge
CloudFront requests video
custom origin origin location
edge
with video
locations
content
Media
Data transfer of stored in Data transfer of
stored video to cache cached video to End user
CloudFront end user for enjoys video
edge location download
13
13. Back to Basics
Delivery of Cached Video Download
Request routed
End user
to optimal edge
CloudFront requests video
location
edge
locations
Skipping these
steps means
lower latency
and better
customer
experience
Media
read from Data transfer of
cache cached video to End user
end user for enjoys video
download
14
14. Instant Global Reach
Stockholm
San Jose
Hong Kong
Sao Paulo Web servers
in Singapore
15. Instant Global Reach
Stockholm
San Jose
Hong Kong
Sao Paulo Web servers
in Singapore
Dynamic pages (PHP, Java)
(from Web servers)
Static content or streaming
(with CloudFront)
16. We take care of the rest…
Origin Single / Multiple
S3 bucket / external web server
Behavior HTTP / HTTPS
Minimum TTL (time to live)
Cookies / Query Strings
Details Price Class
CNAMEs – with Route53
Logging
Enable Notify all 35 edge locations
Single CNAME for global latency based routing
17. Deliver the WHOLE SITE via CloudFront
User to CloudFront
Routing based on lowest latency Dynamic Content
TCP Optimizations
Persistent Connections
ELB EC2
Your Users Amazon CloudFront
Static Content
www.mysite.com
CloudFront to Origin
Separation of static and dynamic content S3
Persistent connections to each origin
Network paths monitored for performance
18. Static and Dynamic Content
Served
from S3
/images/*
London
Served
from EC2
Paris *.php
Single
CNAME NY
www.mysite.com
21. Reliable delivery to wide range of clients
• Multiple delivery protocols for
different platforms and devices
• Adobe RTMP
• HTTP streaming for iOS
• Microsoft Silverlight
• Options for live and on-demand
video
?
• Full control over origin for live streaming
• Reliability backed by CloudFront
Service Level Agreement
22. What customers are saying
“With CloudFront’s strong
performance, ease of use and
flexibility, our team can use the API or
the Console to quickly make changes
to our CDN configuration and see the
updates within minutes. And with the
low cost of delivering dynamic content
using CloudFront, we expect to see
significant cost savings as well.”
23. What customers are saying
AWS’ reliable infrastructure makes it
easier to focus on other tasks
“As with all the other AWS services we
leverage, using Amazon CloudFront is
so simple and reliable that the team
doesn’t have to think about it. It all just
works, freeing us to focus on building
cool applications.”
>1Pb/mo through Cloudfront
24. What customers are saying
NASA Tells the World About Mars
with AWS
Shortly before the landing, NASA/JPL
provisioned stacks of AWS
infrastructure, each capable of
handling 25 Gbps of traffic. As traffic
volumes returned to normal hours after
the landing, NASA/JPL used AWS
CloudFormation to de-provision
resources using a single command.
25. Best Practices
OFFLOAD static content
• reduce your compute demand and costs
• improve end-user experience
• increase reliability and durability
+
26. Best Practices
WHOLE SITE via CloudFront
• reduce your compute demand and costs
• improve end user experience
• minimize chatter and simpler model
+
27. Best Practices
DRY (don’t repeat yourself)
• original vs. derived assets : 33% savings
• single reference and consistency
• control, accurate logs and tracking
S3 (or Glacier) RRS
28. Best Practices
Route53 to host DNS zones
• leverage CloudFront edge locations
• highly available, reliable, scalable
• fast, easy and cost-effective
• flexible control with security
Region 1
Region 2
http://www.flickr.com/photos/scobleizer/3985020876/You created a great webapp and you're proud of it
Remember your great app ? Well, everyone loves it …
AWS’ Reliable Infrastructure Makes it Easier to Focus on Other Tasks. An example customer that has seen the benefits here is PBS.PBS is using Amazon’s CloudFront Content Delivery Network for its streamed media.They were using another CDN initially, but were having reliability issues so they wrote a monitoring tool to test other CDNs, including CloudFront.What they found was that CloudFront had a significantly lower error rate than the incumbent CDN, so within a matter of weeks they made the switch.PBS is now delivering over 1PB/mo through CloudFront.
AWS’ Reliable Infrastructure Makes it Easier to Focus on Other Tasks. An example customer that has seen the benefits here is PBS.PBS is using Amazon’s CloudFront Content Delivery Network for its streamed media.They were using another CDN initially, but were having reliability issues so they wrote a monitoring tool to test other CDNs, including CloudFront.What they found was that CloudFront had a significantly lower error rate than the incumbent CDN, so within a matter of weeks they made the switch.PBS is now delivering over 1PB/mo through CloudFront.