Sub topic 1
What high availability means: SLAs, RTO, and RPO
Prerequisites
This chapter assumes you know basic AWS concepts (Regions, VPCs, EC2, IAM), can read TCP/IP and subnet notation, and can run simple AWS CLI commands. No multi-AZ design experience is needed. Later chapters build on the vocabulary introduced here.
Availability as a number
Availability is the fraction of time a workload does its job correctly. It is usually written as a percentage, and each extra "nine" cuts the allowed downtime by a factor of ten.
| Availability | Downtime per 30-day month | Downtime per year |
|---|---|---|
| 99% | about 7.2 hours | about 3.65 days |
| 99.9% | about 43 minutes | about 8.8 hours |
| 99.99% | about 4.3 minutes | about 52 minutes |
| 99.999% | about 26 seconds | about 5.3 minutes |
You can compute the budget yourself:
def downtime_minutes(availability_pct: float, days: int = 30) -> float:
total_minutes = days * 24 * 60
return total_minutes * (1 - availability_pct / 100)
for target in (99.0, 99.9, 99.99, 99.999):
print(f"{target}% -> {downtime_minutes(target):.2f} minutes per 30 days")A downtime budget is the amount of failure you can tolerate while still meeting your target. Every design decision in this tutorial spends or protects that budget.
SLAs, SLOs, and what AWS promises
Three terms are often mixed up:
- SLA (service level agreement) is a contract. If the provider misses it, you receive service credits, not compensation for lost revenue.
- SLO (service level objective) is an internal target your team sets for its own workload.
- SLI (service level indicator) is the measurement, such as the share of requests that succeed.
AWS publishes an SLA for each service, and each SLA is scoped to the service itself. For example, the EC2 SLA depends on whether you run across multiple Availability Zones. A single instance in one AZ is covered by a lower commitment than instances spread over two or more AZs. The SLA does not promise that your application is available. Your workload's availability depends on every component in its request path and on how you arrange them.
Serial and parallel dependencies
Components in series multiply their availabilities. If a request needs a load balancer (99.99%), an application tier (99.9%) and a database (99.95%), the combined availability is roughly 0.9999 × 0.999 × 0.9995, or about 99.84%. The chain is weaker than its weakest link.
Redundant components in parallel improve the result, because the group fails only when all copies fail together. Two independent 99% components give 1 − (0.01 × 0.01) = 99.99%. The word "independent" carries the weight here. Two instances in the same AZ share a failure domain, so they can fail together. The next chapters show how Availability Zones provide the independence this math assumes.
RTO and RPO
Availability tells you how often you fail. Two other measures describe how you recover:
- RTO (recovery time objective) is the longest time the workload may be unavailable after a failure. An RTO of 5 minutes means service must be restored within 5 minutes.
- RPO (recovery point objective) is the longest span of data you can afford to lose, measured backward from the failure. An RPO of 0 means no committed write may be lost. An RPO of 1 hour means you can lose up to the last hour of writes.
RTO drives how much capacity and automation you keep ready. RPO drives how you replicate data. A synchronous copy in a second AZ supports an RPO near zero. Nightly backups support an RPO of about a day.
Using the numbers
Targets turn vague goals into design constraints. For example, an RTO of 2 minutes rules out a runbook that needs a person to launch replacement servers. It points toward automatic failover and capacity that already exists, which is the idea behind static stability later in this tutorial.
Exercise
A request passes through an application tier with 99.9% availability and a database with 99.9% availability, both in series. What is the combined availability, and why does adding a second, independent application tier in parallel not fix the database's contribution?
Show answer
In series, multiply: 0.999 × 0.999 = 0.998001, about 99.8%. A parallel application tier raises only that tier's availability. The database is still a single component in the path, so its 99.9% remains a ceiling on the total. You must make the database redundant as well.