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