Skip to content

Beginner bootcamp · Module 4

The four pillars of distributed systems

8 min reading · Sources

Outcome: Separate latency, throughput, availability and recoverability, and derive a time-based downtime budget.

More
20px
Page details

Published date · Last edited:

Prerequisites: Storage 101: where data actually lives

Hypothetical scenario: Northwind’s dashboard reports a healthy average response time while checkout stalls for a small group of visitors. The team needs more than one green number. A measurement is useful only when it describes the user operation and the population that matter.

Words to recognize

Latency
Analogy: How long one customer waits for an answer.
Definition: Elapsed time between defined start and completion points of an operation. Related topic
·
Throughput
Analogy: How many customers finish service each minute.
Definition: Completed work per unit time under a stated workload. Related topic
·
P99
Analogy: A cutoff near the slow end of a sorted waiting-time list.
Definition: A threshold at or below which about 99 percent of measured observations fall. Related topic
·
SLI
Analogy: The actual score counted from customer outcomes.
Definition: Service-level indicator: a defined measurement of service behavior. Related topic
·
SLO
Analogy: The service score the team aims to maintain.
Definition: Service-level objective: a target for an indicator over a defined window. Related topic
·
RPO
Analogy: How much recent ledger history the recovery plan may lose.
Definition: Recovery point objective: the targeted bound on recoverable data loss, commonly expressed as time. Related topic

Do not confuse speed with volume

On a highway, journey duration resembles latency, cars passing per hour resembles throughput, and the road’s carrying capacity resembles a limit on volume. A short journey does not prove that many journeys can be served simultaneously. In a service, latency measures elapsed time for an operation, throughput measures completed work per unit time, and bandwidth measures data transfer rate.

Percentiles describe a distribution rather than an average. P99 is a latency threshold at or below which approximately 99 percent of the measured observations fall. It does not identify a permanent unlucky one percent of users, nor does it make statements about requests excluded from the measurement.

Choose what counts as a good event

An SLI is the service-level indicator being measured. An SLO is the target for that indicator over a defined window. An SLA is an agreement that may attach consequences to service behavior. These are different objects, even when the same percentage appears in a dashboard and a contract.

For a hypothetical checkout indicator, define a good request as a valid checkout that returns a usable acceptance or explicit business refusal within the chosen deadline. Decide whether malformed requests and provider failures enter the denominator. Availability measured by successful requests can differ from uptime measured by elapsed time, especially when request volume changes through the day.

A service promise has three partsDefine the user event, measure the indicator over a window, then compare it with a stated target. Recovery tests are additional evidence.User eventMeasured SLITarget SLO
Define the user event, measure the indicator over a window, then compare it with a stated target. Recovery tests are additional evidence.

Show the downtime derivation

For a deliberately time-based model, use a 365-day year. It contains 365 × 24 = 8,760 hours, and 8,760 × 60 × 60 = 31,536,000 seconds. A 99.9 percent target leaves 100 − 99.9 = 0.1 percent unavailable, or a fraction of 0.001. The budget is 31,536,000 × 0.001 = 31,536 seconds = 525.6 minutes = 8.76 hours.

At 99.999 percent, the unavailable fraction is 0.00001. Multiply to get 315.36 seconds, then divide by 60 for 5.256 minutes. The interactive calculator changes only this fraction. These are derived budgets, not promises about Northwind or any vendor. They assume a non-leap year and a time-based indicator.

Fault tolerance needs a tested path

Hypothetical scenario: a database replica exists, but the failover procedure needs a configuration service in the failed region. Redundancy on the diagram did not produce an independent recovery path. Identify single points of failure and test the dependencies needed to promote a survivor.

Recovery point objective bounds tolerable data loss; recovery time objective bounds the desired time to restore service. A system can return quickly while losing recent writes, or preserve every write while taking too long to recover. Graceful degradation should preserve an explicitly useful subset, such as browsing while checkout is unavailable. Use these measures to compare designs against a user promise, not to rank systems by the number of nines in a title.

Compare redundancy with graceful degradation

Active-passive arrangements retain a replacement that takes over a serving role; active-active arrangements have multiple participants serving concurrently. These labels leave important questions unanswered: who owns writes, how conflicts are resolved and whether survivors have enough capacity. Two active regions that each run near their full limit cannot necessarily absorb the other region’s workload. A failover drawing therefore needs the same survivor-capacity calculation used for an application fleet.

Degradation is useful only if the remaining function is useful to the customer and honest about its limits. Showing catalog descriptions during a payment outage may help browsing. Returning a green payment acknowledgment without durable acceptance would violate the promise. Pick which operations may use stale data and which must refuse service rather than claim success. This is a product and correctness decision as much as an infrastructure decision.

Separate reliability from a maintenance story

Reliability is the ability to deliver the required behavior over the stated conditions; availability is one dimension of that behavior. A service that answers quickly with wrong balances is not reliable merely because it returns HTTP responses. Error rates, correctness checks, latency and data-loss evidence can each reveal a different failure. Define which events count before comparing percentages across products or teams.

Scalability asks how resources and behavior change as demand grows. If doubling instances doubles useful throughput under the same target, the tested region looks approximately linear. A shared lock, central database or uneven partition can produce less improvement. Adding instances can even reduce throughput if coordination work increases. Draw a measured operating range rather than extrapolating from a single test point. For the hypothetical Northwind promotion, report the assumed arrival rate, the operation mix and the observed completion distribution separately. Avoid calling a budget a benchmark or a topology a recovery result. The purpose of a target is to guide design and verification, not to substitute an attractive percentage for evidence.

Calculate a downtime budget

This exercise runs entirely in your browser. All values are hypothetical inputs, not measured performance.

Text alternative: all steps

A 365-day year has 31,536,000 seconds. Multiply this by the unavailable fraction: 99% allows 315,360 seconds; 99.9% allows 31,536; 99.99% allows 3,153.6; 99.999% allows 315.36.

Check your decisions

Does 99.9% imply exactly 8.76 hours of outage in every year?

No. That is the allowed downtime in a simplified 365-day time-based model, not a prediction. Request-based availability has a different denominator.

Can low average latency hide a bad experience?

Yes. A minority of very slow operations can be hidden by many fast ones. Inspect the relevant latency distribution and excluded failures.

Does a backup meet a five-minute recovery target by itself?

No. The restore workflow, dependencies and data volume determine recovery time. A backup’s existence is not a measured restore result.

Go deeper

  • Concepts in service monitoring — Google Cloud · Primary document. Defines indicators, objectives, error budgets and request-based versus windows-based measurement. Verified 2026-10-26.

Decision log

Decision: name the user event, denominator, time window and target together.

Limit: time-based nines do not establish per-request success or recovery behavior.

Next decision: put these promises and failure boundaries on an architecture diagram.