03 / 25 · Reliability

High availability

High availability means meeting an agreed target for successful service over time. Redundant components and recovery reduce downtime, but a system can never promise that nothing will ever fail.

What you will practise

  • Define a user-visible objective
  • find shared failures
  • budget recovery time

Before you start: User operation, replica and failure domain.

About 4 minutes · offline-generated English female narration · captions included. Diagrams are conceptual; timings are illustrative.

Download MP4Captions

Listen without the videoDownload audio

The same pre-recorded voice as the video. Starting audio pauses the video, and starting the video pauses audio.

Chapters and full transcript

Let us understand high availability. A school keeps two water pumps so one can help when the other stops. If both use the same broken power line, two pumps do not solve the problem. Availability depends on the whole chain and on how quickly people notice and recover, not just the number of pumps. High availability means meeting an agreed target for successful service over time. Redundant components and recovery reduce downtime, but a system can never promise that nothing will ever fail.

Follow the normal path. For this example, success means a correct booking response within its latency objective. A homepage response alone does not measure the same user outcome. Applications run in separate zones behind a resilient entry point. The goal is to avoid losing every application copy to the same local failure. SeatSpot must keep ticket browsing and booking usable when a machine or zone fails. Different features can have different objectives: cached event descriptions may remain available even if booking is temporarily paused to protect correct seat allocation.

Now change one condition. Zone A becomes unavailable. Detection and rerouting consume time, and requests already in flight may fail. The objective allows an explicitly measured error budget. A common misunderstanding is this: Two replicas guarantee availability. Shared power, data, credentials or control planes can fail both replicas. Think about this. Two apps run on different machines but use one unprotected database. Is the complete booking path redundant? Pause the video and make your prediction. No. A database failure can still stop both apps. Follow the entire user operation, not only the web tier.

Let us reason with a concrete example. An agreed objective is 99.9% time availability over an illustrative 30-day month. 30 × 24 × 60 = 43,200 minutes. A 0.1% unavailability budget is 43.2 minutes. Request-based indicators use failed eligible requests instead, so do not mix the two measurements. Choose the objective from business needs and recovery cost. Measure actual booking success separately from whether the homepage responds. These figures are teaching examples, not production guarantees.

Turn the idea into a design decision. Zone B receives new work. It must have enough capacity, network access and working credentials to serve the actual user operation. Both application copies need a suitable data service. A single unprotected database can still interrupt bookings even when both application zones are healthy. When you try the practice task, look for this result. The illustrative time budget is 43.2 minutes; a request-based SLI uses different units.

Check your understanding. Run a controlled failure and measure booking success and recovery time. Availability is demonstrated by user outcomes, not by counting boxes in a diagram. Here is a challenge. Two application replicas run in one zone. A second zone is added. List three things to verify before calling the service highly available. Pause before the answer. Check traffic failover/detection, data-layer availability and consistency, and survivor capacity. Also test shared authentication, DNS and configuration dependencies using the agreed user-visible indicator. For an interview, define the SLI, time window, failover and survivor capacity. Say what you would measure, not only which tool you would buy.

Start with an everyday picture

A school keeps two water pumps so one can help when the other stops. If both use the same broken power line, two pumps do not solve the problem. Availability depends on the whole chain and on how quickly people notice and recover, not just the number of pumps.

Why SeatSpot needs this

SeatSpot must keep ticket browsing and booking usable when a machine or zone fails. Different features can have different objectives: cached event descriptions may remain available even if booking is temporarily paused to protect correct seat allocation.

Trace one step at a time

Move through the diagram at your pace. Teal paths are active; unavailable components are labelled.

User journeyEntry pointZone A appZone B appData service

Step 1 of 6 · Measure user-visible success

Define success

For this example, success means a correct booking response within its latency objective. A homepage response alone does not measure the same user outcome.

Read all six mechanism steps
  1. Define success

    For this example, success means a correct booking response within its latency objective. A homepage response alone does not measure the same user outcome.

  2. Spread the copies

    Applications run in separate zones behind a resilient entry point. The goal is to avoid losing every application copy to the same local failure.

  3. Lose one zone

    Zone A becomes unavailable. Detection and rerouting consume time, and requests already in flight may fail. The objective allows an explicitly measured error budget.

  4. Use remaining capacity

    Zone B receives new work. It must have enough capacity, network access and working credentials to serve the actual user operation.

  5. Follow the data

    Both application copies need a suitable data service. A single unprotected database can still interrupt bookings even when both application zones are healthy.

  6. Test the objective

    Run a controlled failure and measure booking success and recovery time. Availability is demonstrated by user outcomes, not by counting boxes in a diagram.

Pause and make a prediction

Two apps run on different machines but use one unprotected database. Is the complete booking path redundant?

Answer aloud or write your reasoning in the lesson notes before revealing the explanation.

Correct a common misunderstanding

Claim to question: Two replicas guarantee availability.

Better explanation: Shared power, data, credentials or control planes can fail both replicas.

Find shared failure domains

A paper or whiteboard task. No cloud account or paid infrastructure is required.

  1. Draw two apps, their host/zone and shared dependencies.
  2. Mark what a machine, zone and database failure would remove.
  3. Calculate the 99.9% budget in a 30-day teaching month.

Check what you can explain

This is your self-check, not an automated grade. Try again without the diagram tomorrow.

0 of 3 goals checked. Choose one remaining idea to practise next.

These checkboxes reset when you leave. Use your saved lesson notes and completion marker to record lasting progress.

Teach it back

Without looking, explain what this component changes, what it does not solve and what happens if it fails. Use the animation to check your explanation, then switch to Engineering.

Try it before viewing the solution

Two application replicas run in one zone. A second zone is added. List three things to verify before calling the service highly available.

Check one key idea

Two replicas share the only database. What remains?

Your explanation and interview notes

Saved only in this browser when storage is available. Export a backup from the course page before clearing browser data or moving devices.

Loading your local notes…

Official references and next reading

The explanation, fictional examples and animations are original teaching material. Vendor behavior depends on the specific product/version; use its documentation before deploying.