Sub topic 1
Availability and the Nines: What Availability Means
Availability is the fraction of time or requests during which a service works correctly. A service that is available responds within its agreed limits and produces a usable result.
Availability differs from related terms:
- Reliability is the ability to keep working without failure for a period.
- Durability is the ability to preserve data without loss or corruption.
- A service can be reliable but not durable, such as an application that stays online while losing stored data.
Prerequisites
Assume you understand basic client-server architecture, percentages, and simple multiplication of probabilities. You should also be able to read short Python snippets.
Reading the nines
“The nines” describe an availability target as a percentage:
| Target | Unavailable fraction |
|---|---|
| 99% | 1% |
| 99.9% | 0.1% |
| 99.99% | 0.01% |
| 99.999% | 0.001% |
Each additional nine reduces the allowed unavailability by a factor of ten. The target must also specify a measurement period. A monthly target and an annual target can produce different practical budgets.
Turning nines into a downtime budget
Multiply the unavailable fraction by the length of the period:
def downtime_budget_minutes(availability, period_days=30):
return (1 - availability) * period_days * 24 * 60
for target in (0.99, 0.999, 0.9999, 0.99999):
print(f"{target:.3%}: {downtime_budget_minutes(target):.2f} min per 30 days")The results are 432 minutes for 99%, 43.2 minutes for 99.9%, 4.32 minutes for 99.99%, and 0.43 minutes for 99.999% in a 30-day month.
Measuring availability: time-based versus request-based
Time-based measurement asks whether the service is reachable at each point in time. It works well for systems such as network links, but it may hide failures that affect only some users.
Request-based measurement asks what fraction of valid requests succeed within a defined latency limit. It captures partial outages, such as one broken region or one failing API operation.
Choose the method that matches user impact. For a public API, request-based availability usually gives the more useful signal. For a host or network circuit, time-based measurement may be appropriate.
Exercise
A service targets 99.9% availability over 30 days. About how much downtime does that allow?
Show answer
43.2 minutes, calculated as 0.001 × 30 × 24 × 60.