High Availability (HA) ensures your applications and systems remain operational with minimal downtime, even in case of failures.
Key points:
Example (kaptaindevops):
kaptaindevops runs a web app across multiple EC2 instances in different Availability Zones (AZs). If one AZ goes down, traffic automatically redirects to healthy instances, ensuring the app remains accessible.
Scalability is the ability of a system to handle growing or shrinking workloads efficiently.
Types of scalability:
t2.medium to t2.2xlargeExample (kaptaindevops):
During a product launch, kaptaindevops’s web traffic spikes. Horizontal scaling with Auto Scaling Groups (ASG) automatically launches new EC2 instances to handle the load, then scales down when traffic decreases.
| Aspect | High Availability | Scalability |
|---|---|---|
| Goal | Minimize downtime | Handle increased load |
| Focus | Redundancy & failover | Resource addition/removal |
| Example | Multiple AZs with ELB | Auto Scaling EC2 instances |
| Metric | Uptime % (e.g., 99.99%) | Throughput, response time |