Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

AWS re:Invent 2016: Host a massively scalable website around the world for a fraction of the cost in a DevOps model (CMP212)

478 views

Published on

A worldwide dynamic website infrastructure at the cost and simplicity of a static deployment was once an unachievable dream. That’s no longer the case with the tools and services that AWS offers like Amazon CloudFront, Amazon S3, Amazon API Gateway and AWS Lambda. During this session we will discuss a DevOps approach to managing your code repositories, code quality, continuous integration and deployments. We discuss some static website generators such as mkdocs, Jekyll, and middleman for building knowledge bases, blogs and websites in a serverless architecture.

Featuring an ideal use case for implementing a serverless architecture combining Amazon CloudFront, Amazon S3 and Amazon API Gateway; we explore how we deployed a massively scaled web application for a fraction of the cost of traditional dynamic websites leveraging a world-wide CDN. Going serverless significantly reduced operational costs and complexity because the infrastructure scales on demand without having to manually provision new servers on the ready. Finally, we share the lessons learned and the advantages of this move, leveraging Cloudnexa’s vNOC product which allows for a faster, more affordable user experience. Session sponsored by Cloudnexa.

AWS Competency Partner

Published in: Technology
  • Be the first to comment

AWS re:Invent 2016: Host a massively scalable website around the world for a fraction of the cost in a DevOps model (CMP212)

  1. 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. MJ DiBerardino, CTO, Cloudnexa Paul Andrushkiw, Senior AWS Cloud Architect December 2016 Host a Massively Scalable Website Around the World for a Fraction of the Cost in a DevOps Model CMP212
  2. 2. What to Expect from the Session Speakers Going serverless Design & scalability Cost effectiveness Use cases
  3. 3. Speaker Bios • 16+ years experience • Cloudnexa Cloud Warriors • Works closely with AWS product teams MJ DiBerardino CTO Paul Andrushkiw Senior AWS Cloud Architect
  4. 4. I. Going Serverless Traditional vs. Serverless Architecture
  5. 5. Evolution of Cloud Computing Data center • The physical hosting environment is abstracted. IAAS • The hardware is abstracted. PAAS • The operating system is abstracted. Serverless (BAAS, FAAS, etc.) • The language runtime is abstracted.
  6. 6. Server-Based Computing Sample Characteristics 1. Multi-tier application (three-tier, n-tier, etc.) - Presentation layer (Amazon EC2 instances) - Logic layer (EC2 instances) - Data tier (EC2 or Amazon RDS instances) 2. Management of operating system and server resources 3. Ownership of principal and supporting software, integration points, etc. 4. Responsible for scalability, forecasting capacity, and performance planning
  7. 7. Serverless Computing Sample Characteristics 1. Multi-tier application (three-tier, n-tier, etc.) - Presentation layer (Amazon S3 & Amazon CloudFront) - Logic layer (Amazon API Gateway & AWS Lambda) - Data tier (Amazon DynamoDB) 2. Zero management of server resources & supporting software - Operating system eliminated (no need to choose, secure, patch, or manage) 3. Functions run in containers that are event-triggered and fully managed Q&A Break
  8. 8. II. Design & Scalability
  9. 9. Serverless Design Components & Patterns Supporting AWS services - Lambda, API Gateway, Cognito, S3, CloudFront, DynamoDB, ElastiCache, etc. Simple architectural patterns - Persistent data, web form submissions, authentication, etc. Advanced architectural patterns - S3 hosted websites, mobile back end, microservices architectures, etc.
  10. 10. Scalability Fundamentals Serverless compute is the next layer of abstraction in cloud compute - No forecasting or capacity planning needed (automatic!) - No risk of over-provisioning (only pay for what you need!) - No risk of under-provisioning (performance guaranteed!)
  11. 11. WordPress (Server-based) vs. Serverless WordPress (Server-based) • Higher baseline resource investment • Web and database server requirements • High overhead for larger infrastructure investment • Continuous infrastructure maintenance Serverless • Minimal baseline resource investment • Serverless platform • Pay per request infrastructure • AWS maintained and secured
  12. 12. Real World Example (Server-based): WordPress
  13. 13. Real World Example (Serverless): Persistent Data
  14. 14. Real World Example (Serverless): Web Form Submission
  15. 15. Real World Example (Serverless): Authentication
  16. 16. Simple Build Workflow Simple, Unstructured Development Code Development & Deployment
  17. 17. Advanced Build Workflow Structured DevOps Model Code Repository Build Service Automated Code Review Q&A Break
  18. 18. III. Cost Effectiveness
  19. 19. Load Test Examples WordPress (Server-based) • Requests per second on base EC2/RDS – 1,000 (approx.) • Increase – additional EC2/RDS resources, performance tuning, conversion Auto Scaling, RI planning, load testing, etc. • EC2 Data transfer rate – Highest available 20 Gbps on a x1.32xlarge ($13.338/hr) Serverless • Requests per second per distribution default – 100,000 • Increase – simple AWS support request to increase limit • Data transfer rate per distribution – 40 Gbps
  20. 20. Traditional Servers • Native vulnerability issues • Patching • Maintenance • Development • Price point Cost of Ownership Serverless • AWS-maintained • Development
  21. 21. Price Example WordPress (Server-based) • 1 EC2 m3.medium • 1 RDS Single-AZ m3.medium • 100 GB storage • 50 GB of data transfer • On demand = $1,584/yr • No high availability or redundancy Serverless • S3 1 GB • CloudFront 50 GB Transfer • $168/yr • Fully redundant across many geo locations around the world • Best practice
  22. 22. Where do I go from here? Blog Generator Public Knowledge Base Website Generator Q&A Break
  23. 23. Thank you! Visit Cloudnexa at Booth #722
  24. 24. Remember to complete your evaluations!

×