stackbook.io
🔍
← Back to Syllabus
Day 2Level 3 — Operating Reliably

Failure Modes and Risk Analysis

Learn: 30 minMap: 25 minDesign: 45 min

Core Concepts (5)

  • 1.Everything fails: disks, networks, dependencies, and people
  • 2.Availability of a chain is the product of its parts
  • 3.Blast radius measures how much one failure takes down
  • 4.Single points of failure hide in shared dependencies
  • 5.Gray failures, slow but not dead, are the hardest to detect

Map to Your Experience

Recall an outage you saw or heard about. Was the cause a crash, or something slower and stranger?

Design Brief: Map Failure Modes of an Order Pipeline

Learn

Reliable systems are designed by people who expect failure. Disks wear out, networks drop packets, dependencies slow down, configuration is mistyped, and deployments contain bugs. The question is never whether something will fail but what happens when it does.

A practical technique is failure mode analysis. For each component and each connection, ask how it can fail, how you would notice, what the user experiences, and what you would do about it. Rank the results by impact and likelihood. This cheap exercise, done on a whiteboard, often exposes risks that no one owned.

Dependencies compound. If a request needs five services in series and each is available 99.9 percent of the time, the whole chain is about 99.5 percent available. Adding hard dependencies lowers the ceiling for your own service, so every new call should be justified, and non-essential calls should be made optional with a fallback.

Blast radius describes how far a failure spreads. A bad deployment to all regions at once has a large blast radius, while one that reaches a small cell of customers first has a small one. Limit radius through isolation: separate pools, separate accounts, limited rollouts, and per-customer quotas. Also hunt for single points of failure, which are often shared things such as a single database, a certificate, a DNS provider, or one engineer who knows the system.

The most difficult failures are gray: a component that is not down but is slow, or that returns wrong answers occasionally. Health checks that only test whether a process is alive will miss them. Prefer checks that exercise a real path, and watch tail latency and error ratios rather than averages.

Map

Draw a request path for a system you know with at least five hops. Mark each hop with its likely availability and compute the chain. Circle the weakest link and the hop with no fallback.

Design

Produce a failure mode table for the order pipeline with columns for component, failure, detection, user impact, and mitigation. Identify two single points of failure and recommend how to spend your one extra redundant component. Keep your answer concrete: name real numbers, owners, and examples wherever you can, and note any assumption you had to make so a reviewer can challenge it.

Requirements

  • •List failure modes per component
  • •Estimate impact and likelihood
  • •Identify single points of failure and propose mitigations

Constraints

  • •Payment provider is external
  • •Budget allows one extra redundant component

Must Cover

failure-modesblast-radiusmitigations

Trade-off Axis

risk reduction vs cost

Referenced Patterns

Competencies Advanced

reliability ops → L3distribution communication → L3

Ready to Design?

Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.

Open in Studio →