Webinar: Delivering Static and Dynamic Content Using CloudFront

1,566 views
1,387 views

Published on

In this presentation from our webinar titled “Delivering Static and Dynamic Content using Amazon CloudFront”, we provide an overview on how you can use Amazon CloudFront to help architect your site to deliver both static and dynamic content (portions of your site that change for each end-user). Andy Rosenbaum, Director of Desktop Development at Earth Networks, also joined and presented on why Earth Networks chose Amazon CloudFront to deliver their dynamic weather content.

Published in: Technology

Webinar: Delivering Static and Dynamic Content Using CloudFront

  1. 1. Delivering Static and Dynamic Content Using Amazon CloudFront Alex Dunlap, Senior Manager - Amazon CloudFrontAndy 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. 2. AgendaUnderstand how to use Amazon CloudFront’sfeatures to deliver your website – with a focus onthe features we’ve built for dynamic contentSee 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. 3. Sites Mix Static & Dynamic ContentDynamic 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. 4. Static ContentStatic content is the objectson your website that don’tchange 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. 5. Dynamic ContentDynamic content is theinteractive or personalizedportion of a website, createdon-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. 6. The Old Way: Two Bad ChoicesDeliver dynamic content from Use solutions from traditionalyour 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. 7. Dynamic Content with CloudFront Simple DIY configuration with web consoleSimple to Use No consultants to hire No proprietary languages to learn Designed to work with origins in Amazon EC2AWS 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. 8. How It WorksUser to CloudFront Dynamic ContentRouting based on lowest latencyTCP OptimizationsPersistent 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. 9. CloudFront’s Global Presence Europe Amsterdam (2) DublinNorth America Frankfurt (2)Ashburn, VA (2) London (2)Dallas, TX (2) Asia MadridJacksonville, FL Hong Kong MilanLos Angeles, CA (2) Osaka Paris (2)Miami, FL Singapore (2) StockholmNewark, NJ SydneyNew York, NY (3) Tokyo (2)Palo Alto, CASeattle, WA South AmericaSan Jose, CA Sao PauloSouth Bend, INSt. 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. 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. 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. 12. Features for Delivering Static ObjectsHTTP/HTTPS file deliveryRTMP & HTTP streamingPrivate contentProgrammatic invalidationAccess logsFull 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. 13. Features for Dynamic Content1. Connection optimizations2. Multiple cache behaviors3. Multiple origin servers4. 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. 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. 15. 2. Multiple OriginsSeparate static and dynamiccontent (S3 versus ELB)Organize your content intodifferent buckets or originsIncorporate different back-endservicesAll 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. 16. 3. Cache Behaviors • Select a different originBased on pattern • Require SSLmatching of each • Use private contentrequest, 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. 17. 4. Cookies and Query StringsWays to personalize andcustomize pages and sitesWhitelist of cookies and querystrings to forward to your originCookies and query strings youspecify 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 31. Additional Information http://aws.amazon.com/cloudfront http://aws.amazon.com/cloudfronthttp://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
  32. 32. Thank you!http://aws.amazon.com/cloudfront/dynamic-content cloudfront-sales@amazon.com 32 © 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

×