AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content Using Amazon CloudFront, Al

3,289 views

Published on

Published in: Technology

AWS 201 - A Walk through the AWS Cloud: Delivering Static and Dynamic Content Using Amazon CloudFront, Al

  1. 1. AWS 201 - Delivering Static and Dynamic Content Using Amazon CloudFront Alagappan M |Account Manager – APAC, AWS Certified Solutions Architect – Associate Level | Amazon Asia Pacific Resources Private Limited | alme@amazon.com
  2. 2. AGENDA • Why do you need a CDN? • Amazon Cloudfront – Introduction • Architecting with Amazon Cloudfront • Amazon Cloudfront – Features • Amazon Cloudfront – Demo • Amazon Cloudfront – Benefits • Amazon Cloudfront – Case Studies • Next Steps
  3. 3. WHY DO YOU NEED A CDN?
  4. 4. Rising consumption of content for longer time across an ever-growing range of devices Expectation for excellent performance – no buffering, loading or delays Explosion of online video consumption Limit storage and delivery costs Increased global broadband penetration requires serving a widely dispersed audience Industry trends & common challenges for content providers
  5. 5. AMAZON CLOUDFRONT The AWS Content Delivery Solution
  6. 6. CloudFront Edge Locations S3 bucket or custom origin with content Data transfer of cached content to end user (if cached) End-user requests content Data transfer of content to CloudFront edge location to cache Cached copies of objects If content not cached – object requested from origin 12 3 4 Request routed to most optimal edge location How CloudFront Works: Non-Cached Object 6
  7. 7. How CloudFront Works: Cached Object 7 CloudFront Edge Locations S3 bucket or custom origin with content Data transfer of cached content to end user (if cached) End-user requests content Cached copies of objects 1 2 Request routed to most optimal edge location
  8. 8. CloudFront in a Nutshell • Low latency: Improves content load times • High bandwidth: Enables high bit rate HD video and other bandwidth-heavy applications • Redundant: Eliminates single points of failure • Scalable: Ensure great experience as number of end users grows • Global: Worldwide network provides great experience regardless of geography • Cost-effective: Pay as you go model provides flexibility for your business 8
  9. 9. the cloud provides a better way instant elasticity no upfront capital expense extensive partner ecosystem complete platform of services to support hosting, processing, storage and delivery global infrastructure
  10. 10. ARCHITECTURE Where does Amazon Cloudfront figure in the AWS platform?
  11. 11. Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking AWS Platform
  12. 12. Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking Content Delivery Solution
  13. 13. Global infrastructure Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking AWS uses a Super-POP architecture for our CDN network, with larger edge locations strategically placed at internet exchange points (IXPs) to enable more efficient cache storage and quick transfer between ISPs
  14. 14. Vertical Scaling From $0.02/hr Elastic Compute Cloud (EC2) Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking Low Cost Multiple pricing options, pay only for resources used Elastic Easily scale up & down automatically Secure Secure and durable technology platform with industry- recognized certifications and audits Highly Available Highly reliable services and multiple fault-tolerant Availability Zones Integrated with CloudFront In-Region Data Transfer enables lower cost than S3/RRS + any other CDN
  15. 15. Simple Storage Service (S3) Highly Scalable Object Storage Unlimited storage of objects of any type Multiple Storage Options Lower costs with Reduced Redundancy Storage (RRS) by storing non-critical, reproducible data at lower levels of redundancy Reliable 99.999999999% durability for S3 99.99% durability for RRS Secure Secure and durable technology platform with industry- recognized certifications and audits Highly Available Access through CDN or directly Integrated with CloudFront In-Region Data Transfer enables lower cost than S3/RRS + any other CDN Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking
  16. 16. London Paris NY CloudFront Compute Storage AWS Global Infrastructure Database App Services Deployment & Administration Networking Fast Global Delivery Worldwide network of edge locations Top performance, as defined by internal, 3rd party and customer testing Easy to Use Via API or Web Console Whole Site Delivery Acceleration for static and dynamic content AWS Integration One piece a complete platform of cloud services Transparent Low Pricing Multiple pricing options
  17. 17. FEATURES
  18. 18. Key features commoditised for one flat price • Static and Dynamic HTTP delivery • HTTP/HTTPS File Delivery • Live and Video on Demand Adaptive Bitrate and RTMP Streaming • Low Minimum Content Expiration Periods (Zero seconds) • AWS Management Console Support • Full control via APIs • Programmatic/Console Invalidation • Industry-compliant, detailed Access Logs • Private Content for Increased Security • Price Classes for Cost Optimization • Cookie Support 18 Amazon CloudFront
  19. 19. Whole site delivery Support for acceleration of static (images, video, css, js, etc.) and dynamic content AWS provides… What do content providers require of a CDN? Elastic Load Balancing Amazon CloudFront Dynamic Content Amazon EC2 Static Content Amazon S3 User to CloudFront Routing based on lowest latency CloudFront to Origin TCP Optimizations Persistent connections Network paths monitored for performance
  20. 20. Dynamic Content Support 20 Dynamic content is the interactive or personalized portion of a website, created on-the-fly for each end user • News • Weather • Sports • Social media • Advertising • Travel
  21. 21. Dynamic Content Support •Simple DIY configuration with web console •No consultants to hire, No proprietary languages to learn Simple to Use •Connections to AWS regions closely monitored •Standard AWS resources (like CloudFormation) •Designed to work with origins in Amazon EC2 AWS Integration •No additional charges or set up fees •Pay only for requests and data transfer Low Cost •Multiple Cache Behaviors, Minimum Expiration Period •Multiple Origin Servers Origin Connection Protocol, Query String Parameters •Viewer Connection Protocol ∙ Cookie Support Features
  22. 22. DEMO
  23. 23. London Paris NY CloudFront Whole Site Acceleration Simple to use DIY configuration with Web Console or API No consultants to hire No need to write custom code AWS Integration Designed to work with origins in Amazon EC2 Connections to AWS regions closely monitored Standard AWS resources (like CloudFormation) Cost effective No additional charges or setup fees Same rates for dynamic and static content
  24. 24. London Paris NY Content Delivery Architecture Single CNAME www.mysite.com 1 Served from EC2 *.php 2 Served from S3 /images/* 3
  25. 25. © 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 Amazon.com, Inc. Amazon Whole Site Delivery for Websites Delivery of your entire website via CloudFront Fast performance using reliable AWS network connections Simple, self-configuration using API or Management Console Cost-effective with no minimum commits or required long-term contracts Client to CloudFront connections: Routing based on lowest latency Persistent connections TCP optimizations CloudFront to origin server connections: Persistent connections to each origin Concurrent requests collapsed to a single origin request Connection to AWS origins over Amazon monitored networks CloudFront Edge Locations: Multiple layers of caching inside each edge location Mobile Clients Browsers/Desktop Clients Tablets/Devices minTTL = 86400 query strings = false cookies = none trusted signers = false viewer protocol = allow-all *.jpg Amazon S3 minTTL = 0 query strings = true cookies = phpsessid trusted signers = true viewer protocol = allow-all *.php Route 53‡ minTTL = 900 query strings = true cookies = all trusted signers = false viewer protocol = allow-all /ads/* Route 53‡ Custom Origin Amazon Elastic Compute Cloud Amazon Elastic Load Balancing Alternate AWS origin configuration‡ Route 53 with Latency Based Routing EC2/ELB in US East (N. Virginia) EC2/ELB in EU West (Dublin, Ireland) EC2/ELB in AP Southeast (Singapore) Optional component‡ CloudFront abc123.cloudfront.net Route 53 www.mysite.com ‡
  26. 26. Live and VOD Streaming Support for all device types HTTP protocols - HDS, HLS, Smooth Streaming RMTP (VOD only) Simple to configure Live streaming stack managed through CloudFormation script VOD - upload .flv to S3, stream via RTMP Flexible Full control over streaming origin enables freedom to enable and configure supported features
  27. 27. BENEFITS
  28. 28. Global delivery Audience dispersed across the globe What do content providers require of a CDN? Low latency High performance regardless of scale or location Deliver all types of content Support for acceleration of static (images, video, css, js, etc.) dynamic content and SSL support Ease of use Simple implementation, configuration and management Reporting Track and analyze content usage data Cost effective Competitive, flexible pricing options
  29. 29. Global delivery Audience dispersed across the globe AWS provides… = What do content providers require of a CDN? Global Infrastructure: 9 Regions 42 Edge Locations Continuous Expansion
  30. 30. Low latency High performance regardless of scale or location AWS provides… What do content providers require of a CDN? CloudFront,1.044 CloudFront,0.568 CloudFront,0.382 CloudFront,0.693 CloudFront,0.369 Akamai,1.126 Akamai,0.591 Akamai,0.376 Akamai,0.526 Akamai,0.368 Level3,1.608 Level3,1.470 Level3,0.497 Level3,1.078 Level3,0.457 Limelight,2.686 Limelight,0.667 Limelight,0.438 Limelight,1.064 Limelight,0.403 0 0.5 1 1.5 2 2.5 3 3.5 4 ASIA Australia Europe So. AMERICA USA Seconds CDN Last Mile Gomez* Testing 12 KB Object Size * Source: Frost & Sullivan: Comparing CDN Performance: Amazon CloudFront’s Last Mile Testing Results Tests. The Gomez tests were designed and conducted by Amazon using the Compuware Corporation performance network. The test results have not been reviewed, approved or endorsed by Compuware Corporation”
  31. 31. What do content providers require of a CDN? Deliver all types of content Support for acceleration of static (images, video, css, js, etc.) dynamic content and SSL support Amazon Web Services has just released support for SSL certificates and Zone Apex Support.
  32. 32. Ease of use Simple implementation, configuration and management AWS provides… What do content providers require of a CDN? POST /2012-07-01/distribution HTTP/1.1 Host: cloudfront.amazonaws.com Authorization: AWS authentication string Date: time stamp Other required headers <?xml version="1.0" encoding="UTF-8"?> <DistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2012-07-01/"> Full management control via API and Web Console
  33. 33. AWS provides… What do content providers require of a CDN? W3C compliant log files which can be processed through any number of tools provided by AWS, our partner ecosystem or externally Reporting Track and analyze content usage data Amazon Elastic Map Reduce (EMR)
  34. 34. AWS provides… What do content providers require of a CDN? Multiple pricing options to address a customer’s specific traffic pattern and requirements Cost effective Competitive, flexible pricing options
  35. 35. OnDemand Pricing No contract, no commitment Pay-as-you-go Tiered pricing – rates go down as volume increases Private Pricing Significant discount on rates in exchange for volume commitment on 12 month agreement Aggressive, competitive rate structure Cost Effective
  36. 36. Partner Ecosystem
  37. 37. NEXT STEPS
  38. 38. Get started right away at aws.amazon.com

×