Review Resilience
Purpose
Find where a system will fail badly when its parts or dependencies fail, and recommend specific mechanisms so that failures stay contained, degrade gracefully and recover within agreed targets.
When to use
- A critical service is approaching go-live or a major release.
- Incidents were caused or amplified by a slow or failing dependency (cascading failure, retry storms).
- A new external dependency or a new region/DR setup is added.
- Auditors or customers require evidence of DR readiness.
When not to use
- The goal is to test resilience in practice. Use
chaos-experimentafter this review. - A full DR plan with procedures and roles must be written. Use
dr-plan. - The concern is throughput under growth rather than failure. Use
scalability-review.
Inputs
Required:
- The critical flows and their dependencies (internal services, databases, queues, third parties), with call style (sync/async).
- Availability expectations (SLO, RTO, RPO) or permission to mark them
[TBD].
Optional:
- Current timeout/retry/pool settings, deployment topology (zones, regions), incident history and postmortems.
- Dependency SLAs, rate limits, capacity headroom.
If the flows or dependencies are missing, ask for them; do not assume a topology.
Process
- Draw the dependency chain for each critical flow and mark sync vs. async, criticality (hard vs. soft dependency) and the compound availability of sync chains.
- For every dependency enumerate failure modes: unavailable, slow (latency spike), erroring, returning wrong/partial data, throttling, network partition, and for data stores failover and replication lag.
- Check timeouts: every remote call has one, derived from the caller's own budget; the sum along a chain fits within the user-facing timeout.
- Check retries: only on idempotent or idempotency-keyed operations, bounded attempts, exponential backoff with jitter, retry budget to prevent storms, no retries at multiple layers compounding.
- Check isolation: circuit breakers with sensible thresholds and half-open probing, bulkheads (separate pools/queues per dependency), load shedding and rate limiting at entry.
- Check degradation: what the user gets when each soft dependency fails (cached value, default, queued for later, feature switched off); hard dependencies are minimized.
- Check data durability and consistency: outbox/transactional messaging, dead-letter queues and replay, reconciliation, backup frequency vs. RPO, tested restores.
- Check infrastructure resilience: multi-zone redundancy, no single points of failure (including DNS, secrets, CI/CD, identity provider), health checks that reflect real readiness, safe deployment and rollback.
- Check detection and response: alerts on symptoms, runbooks, on-call ownership, and DR drill evidence against RTO/RPO.
- Rate each finding by likelihood × impact, propose concrete remediations with parameter suggestions marked
[ASSUMPTION]until validated, and list experiments to verify them. - If the goal continues, suggest
chaos-experimentto verify findings,dr-planfor recovery procedures orslo-definitionif targets are missing.
Output format
# Resilience Review: <system/flow> – <date>
## Targets
SLO: ... · RTO: ... · RPO: ...
## Dependency Map
| Flow | Dependency | Sync/Async | Hard/Soft | Timeout | Retry | Breaker | Fallback |
|---|---|---|---|---|---|---|---|
## Failure Mode Analysis
| Dependency | Failure mode | Current behavior | Impact | Likelihood | Finding |
|---|---|---|---|---|---|
## Findings and Recommendations
| ID | Severity | Finding | Recommendation | Verification |
|---|---|---|---|---|
## DR Readiness
## Proposed Experiments
## Assumptions and Open Questions
Quality checklist
- Every dependency of each critical flow is analyzed for slow as well as down.
- Timeout budgets along each sync chain add up within the user-facing limit.
- Every retry is tied to an idempotent operation and has a bound and backoff.
- Each soft dependency has a defined degraded behavior.
- RPO/RTO claims are backed by tested restore or drill evidence, or flagged.
- Suggested parameter values are marked as assumptions to be validated.
- All checks pass; if any fails, revise the output and re-run this checklist before answering.
Common pitfalls
- Only testing "dependency down". Slow dependencies exhaust thread and connection pools and cause most cascades.
- Retries at client, gateway and service layers multiplying load during an incident.
- Health checks that call downstream dependencies, so one failing dependency takes every instance out of rotation.
Example
Input: "Checkout calls pricing, inventory, payment and fraud synchronously; fraud slowdowns caused two outages."
Excerpt of output:
| ID | Severity | Finding | Recommendation |
|---|---|---|---|
| R1 | Critical | Fraud call has no timeout; slow responses exhausted the shared HTTP pool and blocked payment calls | Timeout [ASSUMPTION: 800 ms], dedicated pool (bulkhead), circuit breaker; on open, accept low-risk orders and queue for post-authorization review per business rule [confirm with risk team] |
| R2 | Major | Payment retries at gateway and service (3 × 3) with no idempotency key | Retry only in service, with provider idempotency key and jittered backoff |