Upload
amazon-web-services
View
103
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Cloud Front & Serving Media From the Edge from the AWS Summit in India
Citation preview
CloudFront & Serving Media from the Edge
Kingsley WoodAWS Business Development
Benefitsdeliver service quickeroptimal user experienceminimal costmassive scale
Review and Focusproductsarchitecturesbest practices
Requirementsmedia storageprocessingdelivery – static and dynamic
CloudFront & Serving Media from the Edge
The dream : you create a fantastic app
people love it!
and everyone wants to use it…
Do-It-Yourself Headaches
UptimeGuarantees
BandwidthCapacity
ConcurrentConnections
AcceptableLatency
DownloadSpeed
AccessControl
AuditLogs
CustomerLocations
?
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.
CloudFront in a nutshell
• 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
Key features for CloudFront
Compute Storage
AWS Global Infrastructure
Database
App Services
Deployment & Administration
Networking
Global infrastructure
RegionsAn independent collection of AWS resources
in a defined geography
A solid foundation for meeting location-
dependent privacy and compliance
requirements
Compute Storage
AWS Global Infrastructure
Database
App Services
Deployment & Administration
Networking
Global Infrastructure
Availability ZonesDesigned as independent failure zones
Physically separated within a typical
metropolitan region
Compute Storage
AWS Global Infrastructure
Database
App Services
Deployment & Administration
Networking
Global Infrastructure
Edge LocationsTo deliver content to end users with lower
latency
A global network of edge locations
Supports global DNS infrastructure
(Route53) and Cloud Front CDN
CloudFront
edge locations
S3 bucket or custom origin
with video content
Data transfer of cached video to
end user for download
End user requests video
Data transfer of stored video to
CloudFront edge location
Object requested from
origin
Request routed to optimal edge
location
13
Delivery of Non-Cached Video Download
End user enjoys video
Back to Basics
Media stored in
cache
CloudFront
edge locations
Data transfer of cached video to
end user for download
End user requests video
Request routed to optimal edge
location
14
Delivery of Cached Video Download
End user enjoys video
Back to Basics
Media read from
cache
Skipping these steps means
lower latency and better customer
experience
Stockholm
Hong Kong
Sao Paulo
San Jose
Instant Global Reach
Web servers in Singapore
Stockholm
Dynamic pages (PHP, Java) (from Web servers)Static content or streaming (with CloudFront)
Instant Global Reach
Web servers in Singapore
Hong Kong
Sao Paulo
San Jose
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
We take care of the rest…
ELB
Amazon CloudFrontwww.mysite.com
Dynamic Content
EC2
Static Content
S3
Your Users
User to CloudFrontRouting based on lowest latencyTCP OptimizationsPersistent Connections
CloudFront to OriginSeparation of static and dynamic content
Persistent connections to each originNetwork paths monitored for performance
Deliver the WHOLE SITE via CloudFront
London
Paris
NY
Static and Dynamic Content
Served from EC2
*.phpSingle
CNAMEwww.mysite.com
Served from S3/images/*
Behind CloudFront
MediaStorage
S3
RelationalDatabase
RDS
ComputeEC2
NoSQL Database
DynamoDB
ScalabilityELB &
AutoScaling
Putting it all together
?
• 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
Reliable delivery to wide range of clients
“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.”
What customers are saying
>1Pb/mo through Cloudfront
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.”
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.
Best Practices
OFFLOAD static content• reduce your compute demand and costs• improve end-user experience• increase reliability and durability
+
Best Practices
WHOLE SITE via CloudFront• reduce your compute demand and costs• improve end user experience• minimize chatter and simpler model
+
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
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
CloudFront
EC2
ELB
S3
Route53