Professional Documents
Culture Documents
Day 6 - CloudFront
Day 6 - CloudFront
Day 6 - CloudFront
Day 6: CloudFront
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Introduction to AWS Elastic Beanstalk
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Elastic Beanstalk
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 4
Benefits of Elastic Beanstalk
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 5
To complete this activity:
Activity: AWS
Elastic Beanstalk • Go to the hands-on lab environment and
launch the AWS Elastic Beanstalk activity.
6 © 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• AWS Elastic Beanstalk enhances developer
productivity.
key takeaways • Simplifies the process of deploying your
application.
• Reduces management complexity.
7 © 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudFront
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Content delivery and network latency
Hop
Router
Hop Hop
Origin server
Hop
Router
Router
Hop
Hop
Client
Router Hop
User
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 9
Content delivery network (CDN)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 10
Amazon CloudFront
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 11
Amazon CloudFront infrastructure
Edge locations
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 13
Amazon CloudFront pricing
15 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Load Balancing
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Elastic Load Balancing
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 17
Types of load balancers
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 18
How Elastic Load Balancing works
• With Application Load
Balancers and Network Load
Balancers, you register
targets in target groups, and AWS Cloud
route traffic to the target Load balancer accepts
incoming traffic
groups. Availability Zone A
from clients.
Availability Zone B
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 19
Elastic Load Balancing use cases
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 20
Activity: Elastic Load Balancing
You have extremely spiky and unpredictable TCP Network Load Balancer
traffic.
You need simple load balancing with multiple Classic Load Balancer
protocols.
You need a load balancer that can handle millions of Network Load Balancer
requests per second while maintaining low latencies.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 21
Load balancer monitoring
23 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudWatch
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Monitoring AWS resources
To use AWS efficiently, you need insight into your AWS resources:
• How do you know when you should launch more Amazon EC2 instances?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 25
Amazon CloudWatch
• Monitors –
• AWS resources
• Applications that run on AWS
• Collects and tracks –
Amazon • Standard metrics
CloudWatch • Custom metrics
• Alarms –
• Send notifications to an Amazon SNS
topic
• Perform Amazon EC2 Auto Scaling or
Amazon EC2 actions
• Events –
• Define rules to match changes in AWS
environment and route these events to
one or more target functions or
streams for processing
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 26
CloudWatch alarms
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why is scaling important?
Unused Over
capacity capacity
Su M T W Th F Sa Su M T W Th F Sa
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 31
Amazon EC2 Auto Scaling
© 2019 Amazon Web Services, Inc. or its Affiliates. All rights reserved. 32
Typical weekly traffic at Amazon.com
Provisioned capacity
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 33
November traffic to Amazon.com
November
24 percent
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 34
Auto Scaling groups
Desired capacity
Maximum size
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 35
Scaling out versus scaling in
Elastic Load
Balancing
Scheduled scaling
Launch configuration Auto Scaling group • Scheduled actions
• AMI • VPC and subnets
• Instance type • Load balancer Dynamic scaling
• IAM role • Scaling policies
• Security groups
• EBS volumes Predictive scaling
• AWS Auto Scaling
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 37
Implementing dynamic scaling
CPU
utilization If average CPU
utilization is
> 60% for 5
minutes…
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 39
• Scaling enables you to respond quickly to
changes in resource needs.
key takeaways • Amazon EC2 Auto Scaling maintains
application availability by automatically
adding or removing EC2 instances.
• An Auto Scaling group is a collection of EC2
instances.
• A launch configuration is an instance
configuration template.
• Dynamic scaling uses Amazon EC2 Auto
Scaling, CloudWatch, and Elastic Load
Balancing.
• AWS Auto Scaling is a separate service
from Amazon EC2 Auto Scaling.
40 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab:
Scale and Load
Balance Your
Architecture
41 © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab 6: Scenario
AWS Cloud
Region
Availability Zone A Availability Zone B
VPC: 10.0.0.0/16 Internet Public subnet 2:
Public subnet 1: gateway 10.0.2.0/24
10.0.0.0/24
Security group
NAT gateway
Web Server 1
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 42
Lab 6: Tasks
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 43
Lab 6: Final product
AWS Cloud
Region Availability Zone A Availability Zone B
VPC: 10.0.0.0/16 Internet
Public subnet 1: gateway Public subnet 2:
10.0.0.0/24 10.0.2.0/24
Security group
NAT gateway
Application
Private subnet 1: Load Balancer Private subnet 2:
10.0.1.0/24 10.0.3.0/24
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 44
Complete the knowledge check
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 45
Thank you
© 2019 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon
Web Services, Inc. Commercial copying, lending, or selling is prohibited. Corrections or feedback on the course, please email us at: aws-course-feedback@amazon.com. For all other
questions, contact us at: https://aws.amazon.com/contact-us/aws-training/. All trademarks are the property of their owners.