Difference between revisions of "AWS Cloud Essentials"
Jump to navigation
Jump to search
| Line 54: | Line 54: | ||
* "Loosely coupled" applications use a message queue as a buffer between processes A and B so if one fails, the other doesn't (necessarily) | * "Loosely coupled" applications use a message queue as a buffer between processes A and B so if one fails, the other doesn't (necessarily) | ||
* '''SQS''' (Simple Queue Service): send/store/receive messages between software components at any volume, with no faults; where messages are placed until processed | * '''SQS''' (Simple Queue Service): send/store/receive messages between software components at any volume, with no faults; where messages are placed until processed | ||
| − | * '''SNS''' (Simple Notification Service): uses pub/sub model to send messages to end-users/subscribers. Compatible w/ push/SMS/email | + | * '''SNS''' (Simple Notification Service): uses pub/sub (publish/subscribe) model to send messages to end-users/subscribers. Compatible w/ push/SMS/email |
* Fault tolerance achieved through '''microservices''' architecture (i.e., loose coupling) | * Fault tolerance achieved through '''microservices''' architecture (i.e., loose coupling) | ||
Revision as of 21:05, 11 March 2021
Module 1: Intro to AWS
- Cloud computing is the on-demand delivery of IT resources over the internet with pay-as-you-go pricing
- The undifferentiated heavy lifting of IT: installs, backups, etc that have nothing to do w/ core business
- 3 types of cloud deployment
- Cloud-based: servers, databases, networking all live in the cloud
- On-premises: aka private cloud. Resources deployed locally using virtualization and resource management tools, which increase resource utilization
- Hybrid deployment: cloud-based resources are connected to on-premises infrastructure. Good for legacy apps, govt regulations
- Six reasons to use the cloud
- Trade upfront for variable costs
- Eliminate data center costs
- Stop guessing capacity
- Massive economies of scale (lower variable cost)
- Increase speed and agility
- Go global in minutes
Module 2: Compute in the Cloud
- Spinning up an instance of EC2 instigates a hypervisor to manage VMs using multitenancy. Guarantees security.
- Vertical scaling is the expansion in CPU/RAM that happens on the fly
- Server acquisition cheaper under the Compute-as-a-Service model
- Normal process: 1) purchase hardware, 2) wait for delivery, 3) install in data center, 4) configure
- AWS process: 1) provision/launch EC2 in mins, 2) stop using it, 3) PAYGO, 4) pay only for necessary server capacity (no "dark fiber" issue)
EC2
- Different instances for different use cases
- general purpose: application servers; gaming servers; backend servers; small/medium databases
- compute optimized: high-performance web servers, compute-intensive applications servers, and dedicated gaming servers
- memory optimized: a workload that requires large amounts of data to be preloaded before running an application; high-performance databases
- accelerated computing: floating-point number calculations, graphics processing, and data pattern matching
- storage optimized: distributed file systems, data warehousing applications, and high-frequency online transaction processing (OLTP) systems
- Input/output Operations Per Second (IOPS) measures performance of storage device
- Pricing
- On-demand: PAYGO, no contract
- Savings Plan: 72% off USD/hr for fixed usage contract over 1/3 yr term
- Reserved instances: 75% off On-Demand; 1/3yr term
- Spot instances: 90% off but revokable by AMZN w/ 2mins notice
- Dedicated Hosts: non-multitenancy dedicated machines; usually for compliance
- Scaling EC2
- EC2 Auto Scaling: automatically add/drop EC2 instances based on demand (dynamic, predictive or both)
- Scale up = increase depth (add more compute power), scale out = increase breadth (add machines)
- Parameters: Minimum, Desired, Scale as Needed, Maximum EC2 instances
Elastic Load Balancing
- Which EC2 instance handles a request is determined by a load balancer
- ELB = first "major managed services" to be discussed herein
- Regional rather than on individual EC2 instances guarantees high availability
- Automatically scales, with no additional cost
- Front-end independent
- Messaging and Queuing
- SNS and SQS facilitate application integration
- Tightly coupled applications (A talks directly to B and depends on its I/O) are subject to faults
- "Loosely coupled" applications use a message queue as a buffer between processes A and B so if one fails, the other doesn't (necessarily)
- SQS (Simple Queue Service): send/store/receive messages between software components at any volume, with no faults; where messages are placed until processed
- SNS (Simple Notification Service): uses pub/sub (publish/subscribe) model to send messages to end-users/subscribers. Compatible w/ push/SMS/email
- Fault tolerance achieved through microservices architecture (i.e., loose coupling)