Download as pdf or txt
Download as pdf or txt
You are on page 1of 40

Amazon

CloudFront Overview
Tal Saraf
General Manager
Amazon CloudFront and Route 53

Agenda

Provide a brief introduc2on to Amazon Web Services


Present an overview of Amazon CloudFront
Demo how to set up RTMP Streaming with JW Player on
Amazon CloudFront (2me permiEng)
Learn how to get started on CloudFront

Introduc2on to Amazon Web Services

Amazons Three Businesses

Consumer (Retail)
Business
Tens of millions of
active customer
accounts
Seven countries:
US, UK, Germany,
Japan, France,
Canada, China

Seller
Business
Sell on Amazon
websites
Use Amazon
technology for your
own retail website
Leverage Amazons
massive fulfillment
center network

IT Infrastructure
Business
Cloud computing
infrastructure for
hosting web-scale
solutions
Hundreds of
thousands of
registered customers
3

Introduc2on to Amazon Web Services

What is Amazon Web Services?


Amazon Web Services is a cloud computing platform that provides
flexible, scalable, and cost-effective technology infrastructure for
businesses of all sizes around the world

utilizing the knowledge,


expertise, and tools used to run
Amazon.coms global web
properties for over a decade.
4

Introduc2on to Amazon Web Services

AEributes of Cloud CompuGng


No capital expenditure
Pay as you go and pay only for what you use
True elas2c capacity; Scale up and down
Improves 2me to market
Focus your engineering resources on what dieren2ates your business vs.
the infrastructure required to run it

Introduc2on to Amazon Web Services

AWS CompuGng PlaIorm

Introduc2on to Amazon Web Services

AWSs global presence.

Europe
AWS Region
Europe (Dublin)

North America
AWS Regions
US West (Northern California)
US East (Northern Virginia)
CloudFront LocaGons
Ashburn, VA
Dallas, TX
Jacksonville, FL
Los Angeles, CA (2)
Miami, FL
Newark, NJ
New York, NY
Palo Alto, CA
Sea_le, WA
St. Louis, MO

CloudFront LocaGons
Amsterdam
Dublin
Frankfurt
London
Paris
Stockholm

Asia
AWS Regions
Asia Pacic (Singapore)
Asia Pacic (Tokyo)
CloudFront LocaGons
Hong Kong
Tokyo
Singapore

South America
CloudFront LocaGon
Sao Paulo

AWS Regions
CloudFront Edge Loca;ons
7

Overview of Amazon CloudFront

Key features for CloudFront.


RTMP (Flash) and HTTP Adap2ve
Bitrate Streaming for Live and VOD
HTTP/HTTPS File Delivery
Private Content
Programma2c Invalida2on
Amazon CloudFront

Industry-compliant, detailed Access


Logs
AWS Management Console
Full control via APIs
8

Overview of Amazon CloudFront

Great performance to a global audience.


Gomez Large Object Test
Japan

Amazon is a metrics
driven company.

Your customers do not


live in data centers.

Download Time (Seconds)

We focus on metrics
that capture the end
user experience: the
last mile, not internet
backbone data
centers.

12.000
9.673

10.000

8.000

6.000

4.000

3.126

3.688

3.441

2.000

0.000

Last Mile
CloudFront

Comparison A

Comparison B

Comparison C

Last mile data based on 7,907 observa2ons taken between 17-SEP-2011 and 1-Oct-2011

*The Gomez tests were designed and conducted by Amazon using the Compuware Corpora:on performance network. The
test results have not been reviewed, approved or endorsed by Compuware Corpora:on

Overview of Amazon CloudFront

Great performance to a global audience.


Gomez Large Object Test
Europe

Gomez Small Object Test


North America

8.000

2.500
7.441

7.284

7.538

2.283
2.149

7.709

Download Time (Seconds)

Download Time (Seconds)

9.000

7.000
6.000
5.000
4.000
3.000
2.000

2.000

1.943

2.068

1.500

1.000

0.500

1.000
0.000

0.000

Last Mile
CloudFront

Comparison A

Comparison B

Last Mile
Comparison C

Last mile data based on 65,907 observa2ons taken between 17-


SEP-2011 and 01-OCT-2011

CloudFront

Comparison A

Comparison B

Comparison C

Last mile data based on 88,871 observa2ons taken between 17-


SEP-2011 and 01-Oct-2011

*The Gomez tests were designed and conducted by Amazon using the Compuware Corpora:on performance network. The
test results have not been reviewed, approved or endorsed by Compuware Corpora:on

10

Overview of Amazon CloudFront

Easy to congure and manage soluGons.


Self service signup and congura2on
any2me, from anywhere
AWS Management Console to create
and manage CloudFront
distribu2ons
Programma2c APIs for integra2on
into your own systems and workow

11

Overview of Amazon CloudFront

Access controls and authenGcaGon


Private Content Feature authen2cate users with signed URLS
Uses policy-driven access controls for control and exibility
Restrict on resource or path, 2me, source IP
Signatures generated using asymmetric encryp2on

SSL delivery and RTMPE streaming encrypt bytes on the wire


Origin Access Iden22es secure your content in Amazon S3
Iden2fy and Access Management (IAM) to control who can
congure your CloudFront distribu2ons

12

Overview of Amazon CloudFront

Scalability for unpredictable spikes.


Opera2ng reliability at scale is in our DNA.
Self-service signup and congura2on gives lets you set up new
distribu2ons when you need it.
On demand scalability: Access to our en2re global network of
loca2ons
Designed for Capacity: Ensures customer success with a
guaranteed SLA and con2nuous investment and updates to
servers/services

13

Overview of Amazon CloudFront

Scale on Demand
Volume of Data Delivered (Gbps)

80
70

Peak usage over 60 Gbps

60
50
40
30
20
10
0
8:00 AM 9:00 AM 10:00 AM 11:00 AM 12:00 PM 1:00 PM 2:00 PM 3:00 PM 4:00 PM 5:00 PM 6:00 PM 7:00 PM 8:00 PM 9:00 PM

14

Overview of Amazon CloudFront

Low-overhead, cost-eecGve soluGons


Low cost: reduced CloudFront pricing four
2mes in last 3 years
Pay-as-you-go pricing with or without
commitments making it aordable to
distribute streaming media
Tiered pricing, rates go down as volume
increases
Reserved CloudFront Capacity pricing
reduces rates with a longer term
commitment

15

Overview of Amazon CloudFront

ReporGng and analyGcs


Amazon CloudFront Log Analyzer for Elas2c MapReduce
Generate usage reports containing total trac volume, object
popularity, a break down of trac by client IPs and edge loca2on.
Reports are forma_ed as tab delimited text les, and delivered to
the Amazon S3 bucket that you specify.
Standard W3C format creates partner ecosystem solu2ons
For instance, S3stat automa2cally tracks your CloudFront and S3
Usage Sta2s2cs through graphical reports generated on a nightly
basis.
Iden2fy performance bo_lenecks caused by slow loading content.

16

Overview of Amazon CloudFront

Reliable delivery to wide range of clients.


Mul2ple delivery protocols for dierent
plaqorms and devices
Adobe RTMP
HTTP Streaming for iOS
Microsor Silverlight

Op2ons for live and on-demand video


Full control over origin for live streaming

Reliability backed by CloudFront Service


Level Agreement

17

Overview of Amazon CloudFront

18

RTMP Streaming on Amazon CloudFront

CloudFront Streaming
Benets:
No server hardware infrastructure to set up or maintain
No up-front investment in sorware licenses or cost for future sorware upgrades
No long-term commitment
Global delivery using CloudFront
Pay for what you use (data transfer)

Ensure great experience as number of end users grows.

Easy to get started with self service management console


CloudFront supports the following variants of the RTMP protocol: RTMP, RTMPT,
RTMPE, & RTMPTE

19

RTMP Streaming on Amazon CloudFront

Streaming Server and Media Player


Media player les can be hosted
in S3 or custom origin and
delivered using CloudFront
h_p:// distribu2on

Host your video les in S3 and


create a streaming distribu2on
to stream the video

20

RTMP Streaming on Amazon CloudFront

RTMP Streaming with Amazon CloudFront


Simple 5 step process
1. Download Media Player les
2. Upload the video and media player les to S3 (media player can use a custom
origin). Make the les (not the bucket) publicly readable.
3. Create distribu2ons. Create the streaming and downloadable distribu2ons ( if
using S3 for your media player les)
4. Congure your media player with the correct path to the le. How you congure
the media depends on which media player you're using and how you're using it.
5. Create the HTML page for your video.

Step by Step Instruc2ons: h_p://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/


21
index.html?RTMPStreaming.html

DEMO

22

Gebng Started.
Simply sign up for CloudFront at
h_p://aws.amazon.com/cloudfront
Amazon S3 or your own custom origin for
storing the objects
Create a streaming or download distribu2on
using CloudFront
Place the CloudFront URL on your site
.
23

THANK YOU!

24

Case Studies

25

Overview of Amazon CloudFront

Example: IMDB
IMDB uses Amazon CloudFront to distribute content
globally. IMDb uses Amazon CloudFront to stream
the latest movie trailers and also for search data for
the IMDb magic search feature.
CloudFront makes this experience the fastest
possible by distribu:ng the content physically close
to our worldwide user base.
By hos:ng our search and video les on Amazon
CloudFront, we have zero servers to maintain, which
makes our reliability sky-high. Amazon CloudFront
gives us ultrafast, scalable, and reliable search all
over the world"

26

Overview of Amazon CloudFront

Example: PBS
PBS Interac2ve says it has experienced ry percent
fewer errors in its video streaming performance
using CloudFront compared to its previous CDN.
We are extremely pleased with the performance
and ease of use that CloudFront oers for streaming
videos to dierent devices. With fewer errors,
CloudFront delivers a great experience to our
viewers, and thats very important for the success of
our business..using Amazon CloudFront is so
simple and reliable that the team doesnt have to
think about it. It all just works, freeing us to focus on
building cool applica:ons.

27

Overview of Amazon CloudFront

Example: Mediay.
Mediay uses CloudFront to provide security for
downloads as well as to handle trac spikes.
Migra:ng to AWS was a strategic decision for
Mediay, one that we didnt take lightly. It has
turned out to be one of the best decisions we have
made as an organiza:on. Our latest integra:on
with CloudFront furthers that belief. We are able to
oer advanced security while handling trac spikes
and scaling with ease."

28

Overview of Amazon CloudFront

Example: vid.ly
Vid.ly uses access logs from CloudFront to build
usage reports for customers.
"The CloudFront access logs have been extremely
valuable for Vid.ly, our new universal video delivery
plaXorm. We analyze these logs daily to build
specic usage reports for our customers so they can
see how many :mes each of their Vid.ly videos have
been played

29

DEMO BACKUP

30

Demo Step 1

Conguring Amazon CloudFront Streaming


Using JW Player
Step 1. Download JW Player Files
Go to h_p://www.longtailvideo.com/players/jw-v-
player/ to download the JW PLAYER. You'll receive a
compressed folder in which you will nd two items
that you will need:
1. player.swf
2. swfobject.js

31

Demo: Step 1

Two les from JW Player will be uploaded to S3

32

Demo: Step 2

Create an S3 Bucket

33

Demo: Step 2

Upload JW Player and MP4 File to S3 Bucket

34

Demo: Step 2

Set Permissions on Files as Public

35

Demo: Step 3

Create Streaming DistribuGon

36

Demo: Step 3

Create Download DistribuGon for Player

37

Demo: Step 3

Ensure DistribuGons Deployed

38

Demo: Step 4

Create an HTML Page for Your Video


<!-- THIS IS A BASIC HTML FILE TO PLAY MP4's USING JW PLAYER The following code is from longtailvideo.com's 'Setup
Wizard', found at h_p://www.longtailvideo.com/support/jw-player-setup-wizard --> <HTML> <HEAD> <TITLE> Streaming
Video with JW Player </TITLE> </HEAD> <BODY> <!-- Put a header above your video, if you like --> <H1>This is my header</
H1>
<script type='text/javascript' src='h_p://s3.amazonaws.com/YOUR_BUCKET/swfobject.js'></
script> <div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'> var so = new SWFObject('h_p://s3.amazonaws.com/

YOUR_BUCKET/player.swf','mpl','470','290','9'); so.addParam('allowfullscreen','true'); so.addParam


('allowscriptaccess','always'); so.addParam('wmode','opaque');

so.addVariable('le','mp4:YOUR_VIDEO_FILE
so.addVariable('streamer','rtmp://

YOUR_CLOUDFRONT_STREAMING_DISTRIBUTION.cloudfront.net/cfx/st/'); so.write
('mediaspace'); </script> </BODY> </HTML>

39

Demo: Step 5

Test HTML

40

You might also like