Contenu connexe Similaire à Webinar: Delivering Static and Dynamic Content Using CloudFront (20) Plus de Amazon Web Services (20) Webinar: Delivering Static and Dynamic Content Using CloudFront1. Delivering Static and Dynamic
Content Using Amazon CloudFront
Alex Dunlap, Senior Manager - Amazon CloudFront
Andy Rosenbaum, Director of Web & Desktop Dev.- Earth Networks
1
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
2. Agenda
Understand how to use Amazon CloudFront’s
features to deliver your website – with a focus on
the features we’ve built for dynamic content
See a hands-on demo of CloudFront “in action”
Hear from Andy Rosenbaum at Earth Networks
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
3. Sites Mix Static & Dynamic Content
Dynamic
Static
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
4. Static Content
Static content is the objects
on your website that don’t
change from user to user
• Images
• Media
• CSS
• JavaScript
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
5. Dynamic Content
Dynamic content is the
interactive or personalized
portion of a website, created
on-the-fly for each end user
• Customer names
• News & Weather
• Sports
• Stocks
• Travel
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
6. The Old Way: Two Bad Choices
Deliver dynamic content from Use solutions from traditional
your own origin servers content delivery networks
• Slow • Expensive
• Hard to scale • Complicated
• Single points of failure • Proprietary code
• Increased load to the origin
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
7. Dynamic Content with CloudFront
Simple DIY configuration with web console
Simple to Use No consultants to hire
No proprietary languages to learn
Designed to work with origins in Amazon EC2
AWS Integration Connections to AWS regions closely monitored
Standard AWS resources (like CloudFormation)
No additional charges or set up fees
Low Cost Pay only for requests and data transfer
7
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
8. How It Works
User to CloudFront Dynamic Content
Routing based on lowest latency
TCP Optimizations
Persistent Connections
Elastic Load Amazon
Balancer EC2
Static Content
CloudFront to Origin
Separation of static and dynamic content
Persistent connections to each origin
Network paths monitored for performance
Amazon S3
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
9. CloudFront’s Global Presence
Europe
Amsterdam (2)
Dublin
North America Frankfurt (2)
Ashburn, VA (2) London (2)
Dallas, TX (2) Asia
Madrid
Jacksonville, FL Hong Kong
Milan
Los Angeles, CA (2) Osaka
Paris (2)
Miami, FL Singapore (2)
Stockholm
Newark, NJ Sydney
New York, NY (3) Tokyo (2)
Palo Alto, CA
Seattle, WA South America
San Jose, CA Sao Paulo
South Bend, IN
St. Louis, MO
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
10. Great Performance
• Amazon CloudFront had to win Amazon.com’s CDN business just like any other CDN
• Testing on Amazon.com shows that Amazon CloudFront is 7% faster than CDN A and 51% faster than CDN B.
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
11. DEEP DIVE INTO FEATURES
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
12. Features for Delivering Static Objects
HTTP/HTTPS file delivery
RTMP & HTTP streaming
Private content
Programmatic invalidation
Access logs
Full control via APIs
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
13. Features for Dynamic Content
1. Connection optimizations
2. Multiple cache behaviors
3. Multiple origin servers
4. Query string parameters and
cookie support
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
14. 1. Optimized Connections
Origin to CloudFront CloudFront to User
• Persistent connections • Routing optimizations
• Collapsed forwarding • TCP optimizations
• AWS monitored paths • Persistent connections
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
15. 2. Multiple Origins
Separate static and dynamic
content (S3 versus ELB)
Organize your content into
different buckets or origins
Incorporate different back-end
services
All using a single domain name
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
16. 3. Cache Behaviors
• Select a different origin
Based on pattern • Require SSL
matching of each • Use private content
request, you can: • Change the minimum TTL
• Cache cookies or query strings
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
17. 4. Cookies and Query Strings
Ways to personalize and
customize pages and sites
Whitelist of cookies and query
strings to forward to your origin
Cookies and query strings you
specify are part of cache
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
18. DEMO
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
19. Earth Networks
Andy Rosenbaum – Director of Development
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
20. Introduction
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
21. Introduction
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
22. CDN Use Case
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
23. Challenges
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
24. Why Amazon CloudFront?
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
25. Challenges
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
26. Sample Case
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
27. Validation
Create duplicate environments
where load can be run against
both CDNs in parallel
• Isolate CDN as only variable
impacting results
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
28. Outcome
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
29. Outcome
Move all web
properties under
Amazon CloudFront
Continued
optimization
Continued
investment in the
AWS platform
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
30. © 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of
31. Additional Information
http://aws.amazon.com/cloudfront
http://aws.amazon.com/cloudfront
http://aws.amazon.com/cloudfront/dynamic-content
www.aws.amazon.com/cloudfront
© 2011 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of