Documente Academic
Documente Profesional
Documente Cultură
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Go beyond
servers and storage
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Migration and reinvention
Reinvention
Time
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Improving your initial project
AWS Cloud
Instance challenges:
• Performance
• Scalability S3 bucket
• Utilization
(static content)
Database challenges:
EC2 • Infrastructure management
• Patching
Internet • Scalability
gateway Web application EBS volume
(database files) Management challenges:
• Monitoring
• Planning for failures
Instance store • Deployment
(ephemeral)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monitor AWS resources
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon CloudWatch?
• Monitors:
• AWS resources
• Applications running on AWS
• Collects and tracks:
• Standard metrics
• Custom metrics
• Alarms:
• Send notifications
• Automatically make changes
based on rules you define
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How CloudWatch works
CloudWatch
CloudWatch
Supported CPUUtilization alarm SNS email
AWS resource notification
StatusCheckFailed
PageViewCount
CloudWatch metrics Available
statistics
Amazon EC2
Auto Scaling
Custom
application-specific
metrics AWS Management
Console
Statistics
consumer
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Manage demand efficiently
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why scaling matters
Su M T W Th F Sa
Demand Capacity
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why scaling matters
Unused
capacity
Su M T W Th F Sa
Demand Capacity
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why scaling matters
Over
capacity
Su M T W Th F Sa
Demand Capacity
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why scaling matters
Demand Capacity
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dynamic scaling with Amazon EC2 Auto Scaling
Follow the demand curve for your applications
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dynamic scaling with Amazon EC2 Auto Scaling
Follow the demand curve for your applications
High demand
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dynamic scaling with Amazon EC2 Auto Scaling
Follow the demand curve for your applications
Low demand
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fleet management with Amazon EC2 Auto Scaling
Replace impaired Amazon EC2 instances without intervention
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fleet management with Amazon EC2 Auto Scaling
Replace impaired Amazon EC2 instances without intervention
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fleet management with Amazon EC2 Auto Scaling
Replace impaired Amazon EC2 instances without intervention
P
Instance
Desired 10
• Balance capacity across
Availability Zones AZ2
Instance Instance Instance Instance Instance
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Load Balancing
Automatically distribute traffic across multiple targets
High availability
Operational monitoring
Instance Instance Instance Instance Instance
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer example
EC2 instance
/images
Application 1
/api
Application 2
Application 3
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Load Balancer example
EC2
AutoScaling
5442 EC2
5442 EC2
Streaming Data
Network Load Balancer 5442 EC2
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deploy database services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DIY vs. AWS database services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Relational Database Service?
A database service that makes it easy to set up,
operate, and scale a relational database in the cloud
• Automated backups
• Database snapshots
• Multi-AZ deployments
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Aurora?
• MySQL- or PostgreSQL-compatible
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Relational vs key-value databases
Relational (SQL) Key-value (NoSQL)
Data storage Rows and columns Key-value, document, graph
Schemas Fixed Dynamic
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon DynamoDB?
• Fully managed
• Low-latency queries
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon DynamoDB use cases
• Mobile backends
• Ad tech
• Gaming
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Other purpose-built database services
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is AWS Database Migration Service?
Migrate databases to AWS quickly and securely
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The right tool for the right job
What are my requirements?
Amazon Relational
Enterprise class relational database Database Service
(Amazon RDS)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate deployment
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is AWS CloudFormation?
Code your infrastructure Check out your template Create a stack based AWS CloudFormation
template in either YAML code locally or upload on your template code provisions the resources
or JSON format to an S3 bucket.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CloudFormation example
VPC (10.1.0.0/16)
Public Subnet 1
(10.1.11.0/24)
Template-file
(YAML/JSON) Web
----- -- -- --- -- ----- Internet server
-- -- --- --
----- -- -- --- -- gateway
----- -- -- --- -- Security group
CloudFormation Designer
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Putting it all together (1 of 4)
AWS Cloud
S3 bucket
(static content)
EC2
Internet
Internet
gateway Web application
EBS volume
(database files)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Putting it all together (2 of 4)
AWS Cloud
S3 bucket
(static content)
EC2
Internet
Internet
gateway Web application
Amazon RDS
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Putting it all together (3 of 4)
AWS Cloud
S3 bucket
Auto Scaling group (static content)
CloudWatch
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Putting it all together (4 of 4)
AWS Cloud
S3 bucket
Auto Scaling group (static content)
AWS
CloudWatch
CloudFormation
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How can I deploy without managing infrastructure?
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Connect and share data
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenge: hybrid cloud
Network challenges: AWS Cloud Communications challenge:
• Performance
• Cloud instances cannot
• Reliability Amazon EC2
Clients route to onsite servers
Auto Scaling group
Internet
gateway
Storage challenges:
• Duplication of data onsite/offsite
• Too much network traffic
Corporate data center
• Cost inefficient
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is AWS Direct Connect?
A dedicated network connection from your premises to AWS
Scales easily
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect example
AWS Direct AWS Cloud
Connect location
VPC
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Route 53?
A highly available and scalable Domain Name System (DNS) web service
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Routing traffic
https://sales.example.com
Amazon Route 53
VPC
EC2 instances
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Elastic File System (Amazon EFS)?
A scalable, elastic, cloud-native file system for Linux
Dynamic elasticity
Scalable performance
Fully managed
Cost-effective
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Putting it all together
AWS Cloud
Internet
gateway Amazon Virtual AWS Direct Connect
EFS private
gateway
EC2 instances
Amazon Route 53
Corporate data center
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deliver content faster
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenge: media streaming service
Transcode
Ingest Catalog Stream
video to
encoded video video to
multiple
video metadata clients
formats
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda: run code without servers
AWS HTTP
SERVICES ENDPOINTS
MOBILE APPS
Upload your code Set your code to trigger Lambda runs your code Pay only for the
to AWS Lambda from an event source only when triggered compute time you use
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of Lambda
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda example: create thumbnails
AWS Cloud
1
3
2
User
Lambda 4
Source
bucket
Execution
5
role
Access
policy
JSON
Target bucket
Lambda function
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Simple Notification Service (Amazon SNS)?
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SNS overview
Message Queues
HTTP/S
SNS topics Message filters
Publisher Subscribers
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon CloudFront?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How CloudFront delivers content to users
www.example.com/content
cache
S3 bucket
Edge location
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon ElastiCache?
Amazon ElastiCache
Extreme performance for Redis
Versatile in-memory data store
Fully Managed
Amazon ElastiCache
for Memcached
Scalable Scalable caching tier
for data-intensive apps
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenge: Media streaming service
AWS Cloud Video metadata
480p
Audio only
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Takeaways
Amazon CloudWatch Have complete visibility of your cloud resources and applications
AWS Database Services Run SQL or NoSQL databases without the management overhead
AWS Elastic Beanstalk Deploy your application in the simplest way possible
AWS Direct Connect Provision a dedicated network connection from your premises to AWS
Amazon Route 53 Run a highly available and scalable Domain Name System (DNS) web service
Amazon CloudFront Deliver your content across a massively scaled and globally available network
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.