Lesson 1 of 4 Designing for High Availability and Resilience

Translating Business Requirements into Resilience Objectives

Resilience work begins with requirements, not services. A business states how much downtime and data loss it can tolerate, and engineers translate that into measurable objectives that drive architecture and cost. This lesson defines availability, RTO and RPO, shows how availability is calculated for dependent and redundant components, and explains how objectives map to design decisions.

Learning outcomes

After completing this lesson, you will be able to:

  • Define availability, recovery time objective (RTO) and recovery point objective (RPO) and explain how they are measured.
  • Calculate the combined availability of serial and redundant components.
  • Explain how a business impact analysis leads to workload tiers with different objectives.
  • Relate resilience objectives to architecture choices and their cost.

Availability

Availability is the percentage of time a workload is usable. It is often expressed in "nines": 99.9% availability allows about 8.8 hours of downtime per year, 99.99% about 53 minutes, and 99.999% about 5 minutes. Each additional nine requires substantially more redundancy, automation and operational maturity, so the target should reflect the business value of the workload rather than a general aspiration. A service level objective (SLO) is an internal availability or latency target, and a service level agreement (SLA) is a contractual commitment, usually less strict than the SLO, with financial consequences.

99.9%

About 8.8 hours of downtime per year

99.95%

About 4.4 hours per year

99.99%

About 53 minutes per year

99.999%

About 5 minutes per year

Recovery Time and Recovery Point Objectives

Two objectives describe recovery from a disruption. The recovery time objective (RTO) is the maximum acceptable time between the disruption and the restoration of service. The recovery point objective (RPO) is the maximum acceptable amount of data loss, measured as time: an RPO of 15 minutes means that, after recovery, at most the last 15 minutes of data may be lost.

RTO drives how much infrastructure must already be running and how automated recovery must be: an RTO of minutes cannot be met by building an environment from scratch. RPO drives how data is protected: a nightly backup gives an RPO of up to 24 hours, continuous backups give an RPO of minutes, and synchronous replication gives an RPO near zero. Both objectives apply to each failure scenario separately; an architecture may have an RTO of seconds for an instance failure but hours for the loss of a Region.

The following diagram places the two objectives around a disruption.

Recovery objectives around a disruption. The recovery point objective (RPO) looks back from the disruption to the last recoverable data: the most data that may be lost. The recovery time objective (RTO) looks forward to the restoration of service: the longest outage allowed. RPO drives data protection: a nightly backup gives up to 24 hours, continuous backup minutes and synchronous replication near zero. RTO drives how much must already be running and how automated recovery is.
Widths are not to scale.
Sort into groups

RTO or RPO?

Exam skills 3.1.1

Decide whether each requirement sets an RTO or an RPO.

Log in to try this activity Interactive activities are free with an account.

Calculating Combined Availability

A request that passes through several components in sequence succeeds only if all of them work. For serial dependencies, availabilities multiply: a load balancer at 99.99%, an application tier at 99.9% and a database at 99.95% give 0.9999 × 0.999 × 0.9995 ≈ 99.84%, lower than any single component. Adding dependencies always lowers availability.

Redundant components fail the workload only if all of them fail at once. For independent redundant components, availability is 1 − (1 − a)n: two independent instances of 99% each give 1 − 0.01² = 99.99%. This is why redundancy across Availability Zones raises availability so effectively, provided the copies fail independently. Shared dependencies, such as a single database or a configuration that is deployed to every copy at once, break the independence assumption, which is why deployment practices are part of resilience.

ArrangementFormulaExampleResult
Serial (all required)a1 × a2 × ... × an99.9% × 99.9%99.8%
Redundant (any one sufficient)1 − (1 − a)nTwo copies of 99%99.99%
Redundant, three copies1 − (1 − a)3Three copies of 99%99.9999%

The following diagram contrasts serial and redundant arrangements.

Combined availability. For serial dependencies, availabilities multiply: a load balancer at 99.99%, an application tier at 99.9% and a database at 99.95% give about 99.84%, lower than any single component. For independent redundant copies, the workload fails only if all copies fail: two copies at 99% give 1 minus 0.01 squared, 99.99%, and three give 99.9999%. Shared dependencies break the independence assumption.
Dependencies multiply downwards; independent redundancy multiplies the failure chance downwards.
Fill in the value

Combine availabilities

Exam skills 3.1.1 · 3.1.2

Calculate the availability of serial and redundant components.

Log in to try this activity Interactive activities are free with an account.

Business Impact Analysis and Workload Tiers

A business impact analysis estimates the cost of downtime and data loss for each business process over time: lost revenue, regulatory penalties, contractual penalties and reputational damage. Workloads are then grouped into tiers, each with standard objectives and an approved set of architectures, so that every workload does not need to be designed from first principles. The table below shows a typical tiering.

TierExample workloadsAvailabilityRTORPOTypical design
CriticalPayments, order capture99.99%MinutesNear zero to minutesMulti-AZ; warm standby or active/active in a second Region
ImportantCustomer portal, internal APIs99.9%HoursMinutesMulti-AZ; pilot light in a second Region
StandardReporting, batch99.5%A dayHoursMulti-AZ where cheap; backup and restore across Regions

AWS Resilience Hub supports this process: it records resilience policies with RTO and RPO targets for different disruption types (application, infrastructure, Availability Zone and Region), assesses an application defined by CloudFormation stacks, resource groups or tags against the policy, estimates whether the targets can be met, and recommends changes, alarms, standard operating procedures and AWS FIS experiments.

From Objectives to Architecture

Each objective translates into specific design decisions. An availability target sets the level of redundancy (multiple instances, multiple Availability Zones, multiple Regions). An RTO sets how much capacity is pre-provisioned and how automated failover must be. An RPO sets the replication or backup method. Each step up in resilience adds cost, both in resources and in operational complexity, so the right design is the cheapest one that meets the objectives for every failure scenario the business cares about.

Start with the numbers

In scenario questions, find the stated RTO and RPO first. They usually eliminate half the options immediately: backup-based recovery cannot meet an RTO of minutes, and asynchronous cross-Region replication cannot meet an RPO of zero.

Worked example

Setting Objectives for an Order Service

An online retailer loses about 20,000 in revenue per hour of order-service downtime, and losing confirmed orders creates legal obligations. A business impact analysis sets the following objectives: 99.99% availability, an RTO of 15 minutes for a Regional outage and 1 minute for an Availability Zone failure, and an RPO of 1 minute for a Regional outage and zero for an Availability Zone failure.

The AZ objectives require the service to run across at least three Availability Zones behind a load balancer, with a database that replicates synchronously across AZs, such as Amazon Aurora or RDS Multi-AZ. The Regional objectives require a second Region with data replicated continuously, for example with Aurora Global Database or DynamoDB global tables, and with enough pre-provisioned capacity to take over within 15 minutes, which points to a warm standby. Backup and restore would be cheaper but cannot meet the 15-minute RTO.

Check yourself

A workload has three serial components each with 99.9% availability. What is its approximate overall availability, and how could it be raised?

Show answer

About 99.7% (0.999³). It can be raised by making each component redundant, for example across Availability Zones, or by removing serial dependencies from the critical path.

Exam Tips

Remember for the exam

  • RTO is the maximum time to restore service; RPO is the maximum acceptable data loss measured in time.
  • Serial components multiply availability (lower overall); independent redundant components give 1 − (1 − a)^n (higher overall).
  • Backups give RPOs of hours, continuous backup minutes, synchronous replication near zero; RTO of minutes needs pre-provisioned, automated recovery.
  • AWS Resilience Hub assesses applications against RTO and RPO policies and recommends improvements.