ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

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

    How
    Failover record plus health check
  • It fails on database reconnect

    How
    Pools connections, keeps them in failover
  • An on-premises app needs AWS storage

    How
    Local file or volume interface
The service to reach for when the code cannot change.

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

2 / 3

3 / 3

  • It fails on database reconnect

    How
    Pools connections, keeps them in failover
  • An on-premises app needs AWS storage

    How
    Local file or volume interface
The service to reach for when the code cannot change.
Auto Scaling group of 1
Users
Load BalancingEC2EC2EFS
If the instance fails, a replacement starts in another AZ and mounts the same file system.

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.