Concept
Making legacy apps reliable without code changes
Make an application that cannot be changed more reliable, using AWS services around it.
A single server can fail
- How
- Auto recovery, or a group of size 1
Data on a local disk
- How
- Shared file storage across AZs
Clients need a fixed IP
- How
- Two static IPs, or one per AZ
One site only
- Use
Route 53
- How
- Failover record plus health check
It fails on database reconnect
- Use
RDS Proxy
- How
- Pools connections, keeps them in failover
An on-premises app needs AWS storage
- How
- Local file or volume interface
| Problem | Use | How |
|---|---|---|
| A single server can fail | Auto recovery, or a group of size 1 | |
| Data on a local disk | Shared file storage across AZs | |
| Clients need a fixed IP | Two static IPs, or one per AZ | |
| One site only | Failover record plus health check | |
| It fails on database reconnect | Pools connections, keeps them in failover | |
| An on-premises app needs AWS storage | Local file or volume interface |
1 / 3
A single server can fail
- How
- Auto recovery, or a group of size 1
Data on a local disk
- How
- Shared file storage across AZs
| Problem | Use | How |
|---|---|---|
| A single server can fail | Auto recovery, or a group of size 1 | |
| Data on a local disk | Shared file storage across AZs |
2 / 3
Clients need a fixed IP
- How
- Two static IPs, or one per AZ
One site only
- Use
Route 53
- How
- Failover record plus health check
| Problem | Use | How |
|---|---|---|
| Clients need a fixed IP | Two static IPs, or one per AZ | |
| One site only | Failover record plus health check |
3 / 3
It fails on database reconnect
- Use
RDS Proxy
- How
- Pools connections, keeps them in failover
An on-premises app needs AWS storage
- How
- Local file or volume interface
| Problem | Use | How |
|---|---|---|
| It fails on database reconnect | Pools connections, keeps them in failover | |
| An on-premises app needs AWS storage | Local file or volume interface |
What it is
Some applications were not built for the cloud. They keep state on a local disk, expect one server or a fixed IP address, or cannot be changed. You can still make them more reliable from the outside. Questions say “application changes are not possible”.
What it is
A single server that must keep running: use EC2 auto recovery (a CloudWatch alarm on the system status check with the recover action), or an Auto Scaling group with minimum, maximum and desired size of 1, which replaces a failed instance even in another AZ. Keep data off the instance: put it on Amazon EFS or Amazon FSx (shared across AZs), because an EBS volume cannot follow a new instance into another AZ. Keep the same address with an Elastic IP, a load balancer in front, or a Route 53 failover record with a health check.
What it is
Other helpers: Amazon RDS Proxy pools database connections and keeps them through a database failover, for apps that cannot handle reconnects. AWS Storage Gateway gives on-premises apps a local file or volume interface backed by AWS storage. AWS Global Accelerator gives two static IP addresses and shifts traffic between endpoints in seconds, with no DNS change. A Network Load Balancer gives a static IP per AZ. AWS Transform MGN (earlier called AWS Application Migration Service) rehosts a server on EC2 as it is (lift and shift), and AWS Elastic Disaster Recovery protects it.
Remember
- One server only: EC2 auto recovery, or an Auto Scaling group of size 1.
- Local state: move data to EFS or FSx. An EBS volume stays in its AZ.
- A fixed IP: Elastic IP, Network Load Balancer, or Global Accelerator static IPs.
- Failover without code: Route 53 failover records with health checks.
Remember
- Apps that cannot handle database reconnects: RDS Proxy.
- Lift and shift: AWS Transform MGN (was Application Migration Service). Files from on premises: Storage Gateway.
On the exam
- “A single EC2 instance must restart on new hardware if its host fails, with no code change” points to EC2 auto recovery.
- “A legacy application needs shared files across AZs” points to Amazon EFS (Linux) or Amazon FSx (Windows).
- “Clients allow-list the IP addresses, and the app must fail over” points to Global Accelerator static IPs or an Elastic IP.
- “Database connections spike and fail after a failover” points to RDS Proxy.
Do not mix it up with
- Immutable infrastructure and deploymentsReplace servers with new, tested images instead of changing them in place, so every instance is identical.
- Failover and distributed design patternsRemove single points of failure, fail over on health checks, and survive overload with backoff and circuit breakers.
AWS Elastic Disaster RecoveryWhere it fits among the four strategies, how replication works, and how it differs from AWS Backup.
In this task · 2.2
- Regions and AZs as the HA building block
- Multi-Region designs
Route 53
- Disaster recovery strategies
Elastic Disaster Recovery
- Failover and distributed design patterns
- AWS Well-Architected Framework
- Immutable infrastructure and deployments
CloudFormation
- Database high availability
- Storage durability and replication
CloudWatch
Health Dashboard
X-Ray
- Service Quotas
- Making legacy apps reliable without code changes
- Migrating workloads to AWS
- Choosing purpose-built services
- Managed AI services recap
Backup
Load Balancing
RDS Proxy
- Throttling strategies