Page 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
Page 2
What to Expect from the Session
Speakers
Going serverless
Design & scalability
Cost effectiveness
Use cases
Page 3
Speaker Bios
• 16+ years experience
• Cloudnexa Cloud Warriors
• Works closely with AWS product teams
MJ DiBerardino
CTO
Paul Andrushkiw
Senior AWS Cloud Architect
Page 4
I. Going ServerlessTraditional vs. Serverless Architecture
Page 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.
Page 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
Page 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
Page 8
II. Design & Scalability
Page 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.
Page 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!)
Page 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
Page 12
Real World Example (Server-based): WordPress
Page 13
Real World Example (Serverless): Persistent Data
Page 14
Real World Example (Serverless): Web Form Submission
Page 15
Real World Example (Serverless): Authentication
Page 16
Simple Build Workflow
Simple, Unstructured Development
Code Development & Deployment
Page 17
Advanced Build Workflow
Structured DevOps Model
Code Repository Build Service Automated Code Review
Q&A Break
Page 18
III. Cost Effectiveness
Page 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
Page 20
Traditional Servers
• Native vulnerability issues
• Patching
• Maintenance
• Development
• Price point
Cost of Ownership
Serverless
• AWS-maintained
• Development
Page 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
Page 22
Where do I go from here?
Blog Generator Public Knowledge Base Website Generator
Q&A Break
Page 23
Thank you!
Visit Cloudnexa at Booth #722
Page 24
Remember to complete
your evaluations!