© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
Cloudfront @The Toronto StarStephen EvansHead of Digital Technology
About The Toronto Star• Canada’s largest daily newspaper• Focused on metro Toronto• 3.3 million monthly unique visitors• S...
Why AWS?• Rebuild of thestar.com, tech team, hosting infrastructure• Evaluated various cloud-hosting options – capability,...
Why CloudFront?• Evaluated CloudFront vs. various more established players• CloudFront addressed all priority feature requ...
ArchitectureProduction - US East RegionElastic Load BalancerDispatcher/ApacheAmazon Linux 64 BitC1 MediumDispatcher/Apache...
Whole Site Delivery• Cache everything possible• No server side cookies written, only select pages pass querystrings• Contr...
Client Side Cookies
Behaviours
Success Metrics• 50% response timeimprovement• 99.99% uptime sincerelaunch (100% afterlaunch day)• Business impact: lowerh...
Lessons Learned• Understand the constraints of using a CDN and CloudFrontspecifically up front• Whole site caching present...
Thanks!Ping mesevans@thestar.ca@stephenaevans
NPR: Whole Site DeliveryScaling npr.org for the Election Night 12 and beyond.Irakli NadareishviliDirector of Engineering, ...
Irakli Nadareishvili @inadareiElection Night:Olympics of the News Websiteshttp://bit.ly/npraws
Irakli Nadareishvili @inadareiTraffic Spike:http://bit.ly/npraws
Irakli Nadareishvili @inadareiPreparation is KeyMeasure, Improve, Repeat.http://bit.ly/npraws
Irakli Nadareishvili @inadareiStep 1: Measurehttp://bit.ly/nprawshttps://github.com/npr/ec2-fleet
Irakli Nadareishvili @inadareiBottlenecks:1. Pipeline2. Geographyhttp://bit.ly/npraws
Irakli Nadareishvili @inadareiSolution:Serve HTML through a CDN....but how?http://bit.ly/npraws
Irakli Nadareishvili @inadareiScalability:Every Second Countshttp://bit.ly/npraws
Irakli Nadareishvili @inadareiPitfalls:1. No user-specific content...Sortof.2. Could not CDN API3. Content expiration take...
Irakli Nadareishvili @inadareiWe Use Multiple CDNshttp://bit.ly/npraws
Irakli Nadareishvili @inadarei http://bit.ly/nprawshttp://www.pbs.org/idealab/2013/03/ranking-the-slowest-loading-news-sit...
NATIONAL PUBLIC RADIOThank you.Irakli Nadareishvilitwitter: @inadareihttp://bit.ly/npraws
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
© 2013 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in...
AWS Webcast - Whole Site Delivery with Amazon CloudFront
AWS Webcast - Whole Site Delivery with Amazon CloudFront
AWS Webcast - Whole Site Delivery with Amazon CloudFront
AWS Webcast - Whole Site Delivery with Amazon CloudFront
Upcoming SlideShare
Loading in …5
×

AWS Webcast - Whole Site Delivery with Amazon CloudFront

1,338 views
1,111 views

Published on

In this webinar, we'll provide an overview on how you can use Amazon CloudFront to help architect your whole site. We’ll demonstrate 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). We’ll also walk through how you can configure multiple origin servers for your Amazon CloudFront distribution providing you the flexibility to keep your content in different origin locations without the need to create multiple distributions or manage multiple domain names on your website.. We also show you how you can use query string parameters to help customize your web pages for each viewer and how you can configure multiple cache behaviors for your download distribution based on URL patterns on your website. The content for this webinar will be similar to what the CloudFront team presented at the recent AWS Summits in NY and SF.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,338
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

AWS Webcast - Whole Site Delivery with Amazon CloudFront

  1. 1. © 2013 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 Amazon.com,© 2013 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 Amazon.com,Whole Site Delivery withAmazon CloudFrontNihar Bihani, Senior Product Manager - Amazon CloudFrontStephen Evans – Head of Digital Technology, Toronto StarIrakli Nadareishvili - Director of Engineering, Digital Media, NPR1
  2. 2. © 2013 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 Amazon.com,AgendaWhat is Whole Site Delivery?Why use CloudFront for Whole Site Delivery?DemoCustomer Stories:• Stephen Evans, Toronto Star Newspapers• Irakli Nadareishvili, National Public Radio
  3. 3. © 2013 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 Amazon.com,What is Whole Site Delivery?
  4. 4. © 2013 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 Amazon.com,DynamicStaticPersonalized Website Example
  5. 5. © 2013 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 Amazon.com,Typical Website ArchitectureElastic LoadBalancingDynamic ContentAmazon EC2Static ContentAmazon S3cdn.example.com/*.jpgwww.example.com/*.phpCustom OriginORORCustom Origin
  6. 6. © 2013 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 Amazon.com,Whole Site Delivery with CloudFrontElastic LoadBalancingDynamic ContentAmazon EC2Static ContentAmazon S3 Custom OriginORORCustom OriginAmazon CloudFrontwww.example.com*.jpg*.php
  7. 7. © 2013 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 Amazon.com,Whole Site Delivery: Common MythsMyths…None of my HTML pages are cacheable.My HTML pages are customized so thosecannot be cached.My pages are personalized and uniquefor each user, so a CDN won’t be useful.Debunked…Often, many pages are cacheable – e.g.search results pages.Use Cookies and Query Strings as cachekeys – e.g. local weather pages.Network and path optimizations allowCloudFront to speed up dynamic content– e.g. personalized pages.
  8. 8. © 2013 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 Amazon.com,Whole Site Delivery Use Cases• News• Weather• Sports• Social Media• Advertising• Travel• Stocks
  9. 9. © 2013 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 Amazon.com,Why use CloudFront for Whole Site Delivery?
  10. 10. © 2013 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 Amazon.com,Benefits of Whole Site Delivery with Amazon CloudFrontMaking your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less…by leveraging AWS’ presence at the edge of the Internet.
  11. 11. © 2013 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 Amazon.com,CloudFront can make your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less
  12. 12. © 2013 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 Amazon.com,Faster: The Performance ProblemLong Distance + Poor Network = Slow Load Times
  13. 13. © 2013 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 Amazon.com,Faster: How CloudFront HelpsCloudFront helps change this equation to…Short Distance + Optimized Network = Fast Load Times
  14. 14. © 2013 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 Amazon.com,Faster: Global CloudFront NetworkEuropeAmsterdam (2)DublinFrankfurt (2)London (2)MadridMilanParis (2)StockholmAsiaHong Kong (2)OsakaSeoulSingapore (2)Tokyo (2)South AmericaSao PauloNorth AmericaAshburn, VA (2)Dallas, TX (2)Hayward, CAJacksonville, FLLos Angeles, CA (2)Miami, FLNewark, NJNew York, NY (3)Palo Alto, CASeattle, WASan Jose, CASouth Bend, INSt. Louis, MOAustraliaSydney
  15. 15. © 2013 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 Amazon.com,Faster: Optimized Network PathsDynamic ContentStatic ContentAmazon CloudFrontwww.example.com*.jpg*.phpLow LatencyTCP/IP Window SizingPersistent ConnectionsMonitored Network Paths
  16. 16. © 2013 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 Amazon.com,CloudFront can make your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less
  17. 17. © 2013 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 Amazon.com,Scale Better: How CloudFront HelpsCaching static content at the Edge.Offloading connection set-up and SSL negotiation to the Edge.Persistent connections and collapse forwarding help scale yourorigin.
  18. 18. © 2013 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 Amazon.com,CloudFront can make your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less
  19. 19. © 2013 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 Amazon.com,More Available: How CloudFront HelpsCloudFront is architected for high availability.Serve cached content even when origin is unavailable.Availability SLA.
  20. 20. © 2013 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 Amazon.com,CloudFront can make your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less
  21. 21. © 2013 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 Amazon.com,Easier to Manage: How CloudFront HelpsNo need to write any custom code.Multiple origins and cache behaviors make it easy to architect forwhole site delivery.Self service signup and configuration via AWS ManagementConsole and APIs.
  22. 22. © 2013 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 Amazon.com,CloudFront can make your web applications…….FasterScale BetterMore AvailableEasier to ManageCost Less
  23. 23. © 2013 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 Amazon.com,Cost Less: How CloudFront HelpsSame price for dynamic and static content!Preferential pricing on origin fetches from S3 and EC2. NEW!CloudFront is less expensive than AWS Data Transfer (over 10 TB per month).Reserved Capacity Pricing for reduced rates with commitment.
  24. 24. © 2013 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 Amazon.com,Configuring CloudFront for Whole Site DeliveryDemo
  25. 25. © 2013 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 Amazon.com,Demo
  26. 26. © 2013 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 Amazon.com,Demo
  27. 27. © 2013 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 Amazon.com,Demo
  28. 28. Cloudfront @The Toronto StarStephen EvansHead of Digital Technology
  29. 29. About The Toronto Star• Canada’s largest daily newspaper• Focused on metro Toronto• 3.3 million monthly unique visitors• Small in-house digital group,technology team supported byvendors & corporate IT• Digital group run as “startup” withincorporate structure• Tech stack includes Java, PHP, Ruby• Relaunched flagship site thestar.comon Adobe CQ5 on Jan. 30, 2013
  30. 30. Why AWS?• Rebuild of thestar.com, tech team, hosting infrastructure• Evaluated various cloud-hosting options – capability, price• Ran short pilot phase• AWS clear overall winner in terms of flexibility, feature set,price• Began migration of smaller sites Spring 2012• Ongoing migration culminating thestar.com January 2013
  31. 31. Why CloudFront?• Evaluated CloudFront vs. various more established players• CloudFront addressed all priority feature requirements• Validated performance claims via prelaunch load testing• Simplicity of configuration a clear advantage• Ambitious roadmap to release additional features• Clear price and pricing model advantages
  32. 32. ArchitectureProduction - US East RegionElastic Load BalancerDispatcher/ApacheAmazon Linux 64 BitC1 MediumDispatcher/ApacheAmazon Linux 64 BitC1 MediumPublish CQ/CRXAmazon Linux 64 BitC1-XlargeMasterAuthor CQ/CRXAmazon Linux 64 BitC1-XlargeDispatcher/ApacheAmazon Linux 64 BitC1 MediumAvailability Zone A Availability Zone DAvailability Zone BCloudfrontVPCStandbyAuthor CQ/CRXAmazon Linux 64 BitC1-XlargePublish CQ/CRXAmazon Linux 64 BitC1-XlargePublish CQ/CRXAmazon Linux 64 BitC1-XlargePublish CQ/CRXAmazon Linux 64 BitC1-XlargePublish CQ/CRXAmazon Linux 64 BitC1-XlargePublish CQ/CRXAmazon Linux 64 BitC1-Xlarge
  33. 33. Whole Site Delivery• Cache everything possible• No server side cookies written, only select pages pass querystrings• Control caching granularly using 19 different rules• Use distributed load testing to validate performance againstmultiple CloudFront edge locations• We use a single origin, but ELB and multi-tiered multi-AZconfiguration on backend• Planning a multi-region DR architecture that will also leverageCloudFront
  34. 34. Client Side Cookies
  35. 35. Behaviours
  36. 36. Success Metrics• 50% response timeimprovement• 99.99% uptime sincerelaunch (100% afterlaunch day)• Business impact: lowerhosting cost, improvedconsumer experience, SEO
  37. 37. Lessons Learned• Understand the constraints of using a CDN and CloudFrontspecifically up front• Whole site caching presents unique challenges that aredifferent from static asset caching – cookies, post requests• The CDN does not remove the need to ensure your origin isscalable and has its own caching tiers• Think about reporting requirements - how will you trackusage?• Engage with the business on caching rules – what behaviourswill be applied to what parts of your site?
  38. 38. Thanks!Ping mesevans@thestar.ca@stephenaevans
  39. 39. NPR: Whole Site DeliveryScaling npr.org for the Election Night 12 and beyond.Irakli NadareishviliDirector of Engineering, Digital Media, @NPRTwitter: @inadarei @NPRTechTeam
  40. 40. Irakli Nadareishvili @inadareiElection Night:Olympics of the News Websiteshttp://bit.ly/npraws
  41. 41. Irakli Nadareishvili @inadareiTraffic Spike:http://bit.ly/npraws
  42. 42. Irakli Nadareishvili @inadareiPreparation is KeyMeasure, Improve, Repeat.http://bit.ly/npraws
  43. 43. Irakli Nadareishvili @inadareiStep 1: Measurehttp://bit.ly/nprawshttps://github.com/npr/ec2-fleet
  44. 44. Irakli Nadareishvili @inadareiBottlenecks:1. Pipeline2. Geographyhttp://bit.ly/npraws
  45. 45. Irakli Nadareishvili @inadareiSolution:Serve HTML through a CDN....but how?http://bit.ly/npraws
  46. 46. Irakli Nadareishvili @inadareiScalability:Every Second Countshttp://bit.ly/npraws
  47. 47. Irakli Nadareishvili @inadareiPitfalls:1. No user-specific content...Sortof.2. Could not CDN API3. Content expiration takeslong time.http://bit.ly/npraws
  48. 48. Irakli Nadareishvili @inadareiWe Use Multiple CDNshttp://bit.ly/npraws
  49. 49. Irakli Nadareishvili @inadarei http://bit.ly/nprawshttp://www.pbs.org/idealab/2013/03/ranking-the-slowest-loading-news-sites-and-how-they-can-speed-up074.html
  50. 50. NATIONAL PUBLIC RADIOThank you.Irakli Nadareishvilitwitter: @inadareihttp://bit.ly/npraws
  51. 51. © 2013 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 Amazon.com,
  52. 52. © 2013 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 Amazon.com,ResourcesGet Started at: http://aws.amazon.com/cloudfront/Office Hours with CloudFront EngineersJune 19th, 2013 at 10 am Pacific (1PM Eastern)Sign-Up: http://aws.amazon.com/cloudfront/
  53. 53. © 2013 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 Amazon.com,Thank You!nihar@amazon.com

×