Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
支援大規模流量的網站應用程式雲端架構 (Web Applications on AWS)
1. Web Applications in the AWS Cloud
Harry Lin, AWS Solutions Architect
linharry@amazon.com
2. Web applications encompass everything from static
websites to online gaming and media serving
applications that deliver personalized content to millions.
What are Web Applications?
3. What Types of Web Applications Run on AWS?
E-commerce Social Media
Video and
Photo Sharing
Content and
Media Serving
Business
Websites
Gaming
4. “1-second delay page load time meant a 16% decrease in customer
satisfaction”
- Aberdeen Research Group
“An increase in page response time from 2 to 10 seconds increased
page abandonment rates by 38%.”
-Gomez
High Availability and Low Latency Drive
Great Customer Experiences
5. AWS’s Set of On-Demand and Scalable Services Help
Solve the Problems Created by Unexpected and Variable
Demand
Scalable On-Demand
Reliable Cost EffectiveSecurity
6. What Are the AWS Services that Help at
Each Tier?
7. Web Tier: Handle Increased Demand by Serving
Static Content With Amazon CloudFront
Static Content Examples:
Media Files
HTML
CSS
JS
Amazon Simple
Storage Service
(S3)
Amazon
CloudFront
8. AWS
Regions
CloudFront
Edge
Loca7ons
Amazon CloudFront Also Helps to Reduce
Application Latency
9. Web and Application Tier: Manage Demand
with Amazon EC2’s Instant Elasticity
Web Tier Application Tier
10. • Simplest approach
• Can now leverage PIOPS
• High I/O instances
• High memory instances
• High CPU instances
• High storage instances
• Easy to change instance size
• Will hit an endpoint eventually
We’re gonna need a bigger box!
c4.8xlarge
m3.4xlarge
t2.micro
11. • Simplest approach
• Can now leverage PIOPS
• High I/O instances
• High memory instances
• High CPU instances
• High storage instances
• Easy to change instance size
• Will hit an endpoint eventually
We’re gonna need a bigger box!
c3.8xlarge
m3.2xlarge
t2.micro
12. Web and Application Tier: Manage Demand
with Amazon EC2’s Instant Elasticity
Web Tier Application Tier
ELB
13. Database Tier: Simply Manage Increased
Queries with Amazon ElastiCache
Application Tier DB TierElastiCache
15. Benefits:
Farmville scaled to handle 30
million daily active users
CafeWorld scaled to handle 10
million users in its first two weeks
“There is no way we could have kept up with the growth of Farmville in our
existing datacenter… Everyday the population of France logs into Farmville.”
– Jayme Cox, Manager, Cloud Operations
Use of AWS:
Zynga powers its most popular
games, like Farmville and Restraunt
City
Use Amazon EC2 and Amazon S3
Zynga Scaled Farmville to Handle 30
Million Daily Active Users
16. Problem: On-premises infrastructure
could not effectively handle
processing fluctuations
Solution: AWS’s Set of Scalable
Global Services
Benefits
• Reduced Latency by 400%
• Reduced Costs 30-40%
17. All Services Are Designed to be Highly Reliable
Designed for
99.99%
availability
Synchronous
replication and auto
failover
Amazon Simple Storage
Service (S3)
Amazon Relational Database
Service (RDS)
99.95%
SLA
Amazon Elastic Compute Cloud
(EC2)
18. Use Multiple AZs for Higher Availability
Leverage multiple global
datacenters to build highly
available applications
“Everything fails all the time” – Werner Vogels, CTO, Amazon.com
Availability Zone 1 Availability Zone 2
Replication
19. Use of AWS:
Runs nearly 100% of its online video
service on AWS
Global Use of Amazon EC2, Amazon S3,
Amazon SQS, Amazon EMR
Business Benefits:
Application achieves near zero
downtime
Scaled to handle Netflix’s rapid online
growth, 37x in 2010, over 20B
requests per month by Jan 2011
“AWS is the market leader and has been able to create a continuous and virtuous
cycle.”
– Kevin McEntee, VP Content Engineering, Netflix
Netflix Runs Nearly 100% of its Online Video
Service on AWS, Achieves Near Zero Downtime
21. AWS On-Demand Services Lowers Costs
Efficient Asset Utilization:
Match IT Resources to
Application Demand
Serve Web Parts with Amazon
S3 and Amazon CloudFront
Instead of Using Web Servers
28. Auto Scaling
Automatic resizing of
compute clusters based on
demand
Feature
Details
Control
Define
minimum
and
maximum
instance
pool
sizes
and
when
scaling
and
cool
down
occurs.
Integrated
with
Amazon
CloudWatch
Use
metrics
gathered
by
CloudWatch
to
drive
scaling.
Instance
types
Run
Auto
Scaling
for
on-‐demand
and
Spot
Instances.
CompaDble
with
VPC.
Auto Scaling Group
EC2 EC2
29. Newsweek, Sonico.com, and foursquare Reduced
Costs
Reduced costs by over 50%
Reduced Costs by 70%
Reduced Costs by 75%
30. Availability Zone
Amazon
Route 53User
Amazon S3
Amazon
CloudFront
Availability Zone
ELB
Balancer
DynamoDB
RDS DB Instance
Read Replica
Web
Instance
Web
Instance
Web
Instance
ElastiCache RDS DB Instance
Read Replica
Web
Instance
Web
Instance
Web
Instance
ElastiCacheRDS DB Instance
Standby (Multi-AZ)
RDS DB Instance
Active (Multi-AZ)
Web Application Architecture with Million Users
31. AWS’s set of On-Demand and Scalable Services
Help Business Achieve their Desired Level of
Performance and Availability
Scalable On-Demand
Reliable Cost EffectiveSecurity
32. When Should I Think About Running My Web
Application on AWS?
1. New application
2. New application feature
1. Application failure
2. Poor Performance
3. Security Breach
4. Upgrade
5. Cost reduction
6. Datacenter reduction
New Development Migration