1,2 Flashcards
Amazon EC2
Amazon Elastic compute Cloud
Virtual server
Dynamic vs predictable
Dynamic- responds to changing demand
Predictive- automatically schedules the right number of Amazon EC2 instances based on predicted demand.
Can use both together
CaaS
Compute as a service
EC2 pricing
On demand - savings plan - reserved instance
On demand- pay for what you use
Savings plan-commitment to a consistant amount of usage for 1-3 year term
Reserved instance- for predictable use, 1-3 year term
EC2 pricing
Spot instance - dedicated hosts
Spot instance- request spare Amazon computing, instance can be taken away anytime with 2 min warning
Dedicated host- used mostly for compliance requirements
EC2 Instances using auto scaling
minimum capacity- minimum required to work
Desired- what you desire to be, if not set, minimum is defaulted
maximum capacity- max amount of instances
scale as needed- as many instances you want till max capacity
ELB
Elastic Load Balancing
sits between front end and back end
Tightly Coupled Architecture
if a single component fails or changes, it causes issues for other components or even the whole system
Loosely Coupled Architecture
if one component fails, it is isolated and therefore won’t cause cascading failures throughout the whole system
How Loose couple architecture works
a message queue sits between applications, A sends data to the “buffer” then the “buffer” to B
Amazon SNS
Simple Notification Service
used to send out messages to services, but it can also send out notifications to end users. It does this in a different way called a publish/subscribe or pub/sub model.
A channel to post messages to subscribers
Amazon SQS
Simple Queue Service
SQS allows you to send, store, and receive messages between software components at any volume. This is without losing messages or requiring other services to be available
(where messages are posted, until processing)
What is an Application Made of
made of multiple components. The components communicate with each other to transmit data, fulfill requests, and keep the application running.
Monolithic Architecture
is made of tightly coupled components,(if a single point fails, other components fail)
Micro services
Amazon SQS and SNS
loosely coupled architecture
Amazon ECS
Elastic Container services
container orchestration tools
Designed to help you run your containerized applications at scale without the hassle of managing your own container orchestration software.
Amazon EKS
Elastic Kubernetes service
container orchestration tools
similar thing, but uses different tooling and with different features.
Docker
a platform that uses operating system level virtualization to deliver software in containers. Now a container is a package for your code where you package up your application
Container orchestration
they run on top of EC2 instances and separate from each container
Containers running across multiple EC2 instances
cluster
AWS Fargate
serverless compute platform for ECS or EKS.
Use EC2
-traditional applications
-want full access to the underlying operating system
Use serverless Amazon Lambda
-host short running functions
service-oriented or event driven applications and you don’t want to manage the underlying environment at all
Running Docker Container
- Orchestration Tool
-Amazon ECS or EKS - Platform
-EC2 instances or serverless environment Fargate
(OS for containers)