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.
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 by
vendors & corporate IT
• Digital group run as “startup” within
corporate structure
• Tech stack includes Java, PHP, Ruby
• Relaunched flagship site thestar.com
on Adobe CQ5 on Jan. 30, 2013
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. 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. Architecture
Production - US East Region
Elastic Load Balancer
Dispatcher/Apache
Amazon Linux 64 Bit
C1 Medium
Dispatcher/Apache
Amazon Linux 64 Bit
C1 Medium
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Master
Author CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Dispatcher/Apache
Amazon Linux 64 Bit
C1 Medium
Availability Zone A Availability Zone DAvailability Zone B
Cloudfront
VPC
Standby
Author CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
Publish CQ/CRX
Amazon Linux 64 Bit
C1-Xlarge
33. Whole Site Delivery
• Cache everything possible
• No server side cookies written, only select pages pass query
strings
• Control caching granularly using 19 different rules
• Use distributed load testing to validate performance against
multiple CloudFront edge locations
• We use a single origin, but ELB and multi-tiered multi-AZ
configuration on backend
• Planning a multi-region DR architecture that will also leverage
CloudFront
40. Success Metrics
• 50% response time
improvement
• 99.99% uptime since
relaunch (100% after
launch day)
• Business impact: lower
hosting cost, improved
consumer experience, SEO
41. Lessons Learned
• Understand the constraints of using a CDN and CloudFront
specifically up front
• Whole site caching presents unique challenges that are
different from static asset caching – cookies, post requests
• The CDN does not remove the need to ensure your origin is
scalable and has its own caching tiers
• Think about reporting requirements - how will you track
usage?
• Engage with the business on caching rules – what behaviours
will be applied to what parts of your site?
43. NPR: Whole Site Delivery
Scaling npr.org for the Election Night '12 and beyond.
Irakli Nadareishvili
Director of Engineering, Digital Media, @NPR
Twitter: @inadarei @NPRTechTeam