Lesson 1 of 9 · 25m
Failure Mode Analysis Beyond the Service Diagram
Identify how applications, dependencies, operators, and recovery paths actually fail before designing chaos experiments.
The worst production failures rarely look like the architecture diagram. They look like a certificate expiring during a deploy freeze, a retry storm hitting a database already weakened by failover, or the one engineer who knows the runbook being on a plane. Chaos engineering begins by admitting that failure modes are socio-technical: machines, configuration, dependencies, data, and humans form one system.
Start with service facts, not architecture theater
Pick one user journey and write down what must be true for it to succeed:
checkout succeeds when:
- edge TLS terminates and routes to api-east
- auth verifies a session within 150ms p95
- inventory reads are available, stale reads tolerated 5 minutes
- payments authorize synchronously
- order writes persist in postgres-primary
- confirmation email can be delayed, not lostThis is more useful than a graph of boxes because it exposes tolerance. Some dependencies must be synchronous and correct. Others can be slow, stale, queued, or temporarily absent. Resilience design starts by knowing the difference.
Build a failure-mode table
Use a table that names the failure, detection signal, user effect, expected response, and real owner:
dependency failure mode signal user effect intended behavior
postgres primary unavailable write timeouts checkout blocked fail over, queue retry
redis cache eviction storm hit ratio drops slow product pages serve stale/bypass cache
payments elevated latency p95 > 2s checkout hangs timeout + circuit + apology
dns partial resolution resolver errors intermittent 5xx multi-resolver + alerts
operator bad config rollout deploy diff broad breakage progressive delivery/rollbackDo not stop at process death. Include gray failures: latency, partial data loss, clock skew, poisoned cache entries, corrupted configuration, dependency version skew, permission failures, and capacity saturation.
Ask the five uncomfortable questions
For every critical dependency ask: What happens when it is slow instead of down? What happens when it returns wrong but well-formed data? What happens when only one replica fails? What happens when recovery itself fails? What happens when the failure coincides with a deploy, migration, or traffic spike?
Those compound cases are where real incidents live. A failover that works on a quiet Tuesday may collapse during Black Friday because the surviving database cannot absorb both replica rebuild traffic and customer load.
Prioritize by expected pain
A simple scoring model keeps the work honest:
risk = likelihood × detectability delay × user impact × recovery difficultyDo not waste your first experiment on an exotic datacenter flood while your application still retries every failed request ten times with no jitter. Most teams already know their scar tissue; failure analysis gives that scar tissue structure.
Field notes
- Include people in the dependency list: on-call access, vendor support, runbooks, and deployment authority.
- Gray failures are harder than clean crashes; a service returning slow errors can be more damaging than one that is absent.
- Never treat failover as binary. It has its own capacity, timing, split-brain, and data-loss behavior.
- The fact that a dependency has a status page does not mean your system knows how it affects you.
Was this lesson helpful?