Please enable JavaScript.
Coggle requires JavaScript to display documents.
AWS Module 2 - Coggle Diagram
AWS Module 2
Amazon Elastic Compute Cloud - EC2
Introduction
highly flexible
cost-effective
quick comparing on-premises
EC2 Getting started
AWS secured datacenters
AWS purchased servers
AWS built datacenters
AWS Installed servers
The servers are online and ready to use
only pay for what u use (running)
EC2 features
runs physical host machines
managed by AWS using virtualization technology
sharing hosts other instances
hypervisor run host machine
Multitenancy: sharing underlying hardware between virtual machines
responsible for sharing physical resources
coordinating multitenancy
managed by AWS
isolate virtual machines same host
means ec2 instance is secure
EC2 configurations
Windows or Linux
Internal business app
Web apps
Database
Third-party software
Resizable
Vertical scaling instance
You control the networking aspect of Amazon EC2
type request
private ou public accessible
acquire servers
Computer as a service - CaaS
EC2 Works
Launch
Choose a template basic config
op system, app server or app
specify security settings
network traffic and more
Connect
multiple different methods to connect
programs and apps
users
Use
can run commands
install software
add storage
copy and organize files and more
EC2 Pricing
On-demand
short-term
workloads cannot be interrupted
app usage unpredictable patterns
not recommended workloads run a year or longer
much cost
use reserved instances instead
saving plans
72% save costs
low prices
commitment amount of usage
measured in dollars per hour
one or three years term
charged of saving plans rate
usage beyond charged regular on-demand rates
Reserved instances
steady state workloads
offer 75% vs on-demand pricing
one or three year term
three options pag
all upfront when u commit
partial upfront
no upfront
standard reserved
convertible reserved instances
schedule reserved instances
the end of term will charged on-demand rates
Spot instances
90% off
aws can request instance 2 minutes before use it
sure workloads can be interrupted
Dedicated hosts
physical hosts
compliance requirements
no multitenancy
no share hosts
the most expensive
Messagin and queuing
Amazon Simple Notification Service (SNS)
Amazon SNS Topic: A channel for messages to be delivered
works as pub/subscribers
1 publisher to send to many subscribers
can send to endpoints
AWS SQS
AWS Lambda functions
HTTPS
HTTP Web hooks
end users mobile push, sms and email
Amazon Simple Queue Service (SQS
store messages
receive messages
between softwares components
send messages
at any volume
Payload: data within a message
Queue: where message are placed until they are processed
Loosely coupled architecture
single failure won't cause cascading failures
Tighlty coupled architecture
communication each other directly (app)
EC2 Instance types
Each Amazon EC2 instance type is grouped under an instance family
Amazon EC2 instance families differences are
General purpose
balanced resources
diverses workloads
web servers
code repositories
can use for
app servers
gaming servers
backend servers for enterprise app
small and medium databases
uses when resources is quite equivalent (memory, cpu networking)
Compute optimized
Compute intensive tasks
Gaming servers
High performance computing (HPC)
Scientific modeling
can use for
uses when high-performance processor
game dedicated server
web app
batch processing workloads
Memory optimized
memory intensive tasks
can use for
workload needs large memory
amount of unstructured data
high-performance database
Accelerated computing
floating point numbers calculations
Graphics processing
Data pattern matching
Utilize hardwares accelerators
can use for
game streaming
app streaming
Storage optimized
High performance for locally store data
can use for
high read and write local storage
OLTP online transactions processing
high IOPS input/output operations per second
data warehousing applications
Directing traffic with Elastic Load Balancing
Properly distribute traffic
cost-efficient
highly available
high performance
automatically scalable
ELB - Elastic load balancing
Regional construct
highly available
its not only for external traffic
communicate front-end and back-end internal
decoupled architecture
new instance alert ELB and direct traffic to it
direct all web traffic to auto scaling group
ELB e Auto scaling are separate services but can work together
Scalability and Elasticity
Scability
only resources you need
design architecture to automatically
change demand by scaling out or in
pay only the resources u use
Automatic? Amazon EC2 Auto Scaling
add or remove EC2 automatic
dynamic scaling
changing demand
predictive scaling
schedule right number EC2
to scale faster, use predictive and dynamic scaling
Auto scaling group
set minimum number instance
set desired capacity
maximum capacity
with this config you have cost-effective
Additional compute services
Serverless
AWS Lambda is a serverless compute option
Trigger active AWS Function
AWS FUnction is code u upload
Act in environment management and maintain by AWS
1k triggers Lambda will scale function to meet demand
Run time < 15 minutes
Suited for quick processing
each invocation take less than 15 minutes
pay only the compute time u use
Amazon Elastic Container Service (ECS)
Help to run container at scale
U cannot see or acess underlying infrastructure
Amazon Elastic Kubernetes Service (EKS)
Do the same of ECS but with Kubernetes
ECS e EKS: Container orchestration tools
Help to manage containers
can run on top of EC2
You can use AWS fargate instead of EC2
Fargate is serverless compute platform
can use in ECS and EKS
Container package of the code
uses Docker container (widely used)
Run on top of EC2
Running isolate each other
Docker container AWS
processes start, stop, restart and monitor
Not just one EC2 but a several numbers
called cluster
Doing those task is called container orchestration
Compute Services
EC2
Host traditional apps
full access to OS
AWS Lambda
Host short running functions
Service-oriented apps
Event driven apps
No provisioning or managing servers
Docker container
ECS or EKS
EC2 or Serverless Amazon Fargate
Meaning: code runs on servers, but you do not need to provision or manage these servers
Summary
Cloud Computing
The on-demand delivery IT resources over the internet with pay-as-you-go pricing