29
CloudFront & Serving Media from the Edge Kingsley Wood AWS Business Development

Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Embed Size (px)

DESCRIPTION

Cloud Front & Serving Media From the Edge from the AWS Summit in India

Citation preview

Page 1: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

CloudFront & Serving Media from the Edge

Kingsley WoodAWS Business Development

Page 2: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Benefitsdeliver service quickeroptimal user experienceminimal costmassive scale

Review and Focusproductsarchitecturesbest practices

Requirementsmedia storageprocessingdelivery – static and dynamic

CloudFront & Serving Media from the Edge

Page 3: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

The dream : you create a fantastic app

Page 4: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

people love it!

Page 5: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

and everyone wants to use it…

Page 6: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Do-It-Yourself Headaches

UptimeGuarantees

BandwidthCapacity

ConcurrentConnections

AcceptableLatency

DownloadSpeed

AccessControl

AuditLogs

CustomerLocations

?

Page 7: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 8: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

• 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

Page 9: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 10: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 11: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 12: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 13: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 14: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Stockholm

Hong Kong

Sao Paulo

San Jose

Instant Global Reach

Web servers in Singapore

Page 15: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 16: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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…

Page 17: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 18: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

London

Paris

NY

Static and Dynamic Content

Served from EC2

*.phpSingle

CNAMEwww.mysite.com

Served from S3/images/*

Page 19: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Behind CloudFront

MediaStorage

S3

RelationalDatabase

RDS

ComputeEC2

NoSQL Database

DynamoDB

ScalabilityELB &

AutoScaling

Page 20: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Putting it all together

Page 21: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

?

• 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

Page 22: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

“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

Page 23: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

>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.”

Page 24: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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.

Page 25: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Best Practices

OFFLOAD static content• reduce your compute demand and costs• improve end-user experience• increase reliability and durability

+

Page 26: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

Best Practices

WHOLE SITE via CloudFront• reduce your compute demand and costs• improve end user experience• minimize chatter and simpler model

+

Page 27: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 28: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

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

Page 29: Cloud Front & Serving Media From the Edge - AWS India Summit 2012

CloudFront

EC2

ELB

S3

Route53