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 MP4CaptionsListen without the video
Download audioChapters 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.
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
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.
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.
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.
Use remaining capacity
Zone B receives new work. It must have enough capacity, network access and working credentials to serve the actual user operation.
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.
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?
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
- Draw two apps, their host/zone and shared dependencies.
- Mark what a machine, zone and database failure would remove.
- 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.
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.
Engineering model and trade-offs
Define a user-visible service level indicator, such as the fraction of valid booking attempts that finish correctly within a latency boundary. State the measurement window and exclusions before quoting an availability percentage.
Distribute replicas across relevant failure domains, such as machines or zones, and examine shared data stores, network paths, credentials and deployment systems. Two replicas on one failed host do not survive that host failure.
Redundancy needs health detection, failover and survivor capacity. Test the complete user operation during a controlled failure. Maintenance, bad configuration and deployment errors can consume the error budget as well as hardware faults.
Work through an example
An agreed objective is 99.9% time availability over an illustrative 30-day month.
Reason with the numbers
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.
Make a decision
Choose the objective from business needs and recovery cost. Measure actual booking success separately from whether the homepage responds.
Implementation sketch
# Fragment, not a complete Deployment
spec:
replicas: 3
template:
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels: {app: seatspot}This fragment illustrates spreading matching pods across zones. A working cluster, complete pod template and matching labels are required. It does not make the database multi-zone or remove all shared failure modes.
Where this is used
- Services with explicit uptime and latency objectives.
- Critical user journeys that must tolerate an infrastructure failure.
Common mistakes
- Equating a green server-health page with successful purchases.
- Putting all redundant copies in one failure domain.
- Ignoring the capacity needed after failover.
Practise a reasoned answer
Answer aloud or write notes before opening the reference. These prompts teach reasoning and trade-offs; they are not claimed questions from a particular company.
What is the difference between availability and reliability?
Choose a practice depth
- Foundation
- Explain a shared single point of failure.
- Practical
- Define the SLI, time window, failover and survivor capacity.
- Advanced
- Defend error budgets, correlated-failure drills and business-operation evidence.
Self-check rubric
- State the required user outcome and the relevant invariant.
- Explain the normal path and one failure path.
- Name a cost or consistency/latency trade-off.
- Say what you would measure or test before trusting it.
For deeper practice, connect this topic to the previous lesson and identify a shared bottleneck. A longer answer is not automatically a better answer.
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
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.