3/5
Software Delivery & Product Execution · 6 min read

Running 30-Minute Launch Pre-Mortems & Zero-Data-Loss Rollback Runbooks

Uncover hidden production failure modes before deployment with a 30-minute Launch Pre-Mortem, backed by shadow traffic parity checks and staging-tested zero-data-loss rollback runbooks.

Why This Matters at Engineering Leadership Scale

Post-mortems explain yesterday's outage after customers lose trust. Pre-mortems flip the clock: five days before GA, you assume the release already caused a catastrophic P0 outage and work backward to fix fragile assumptions while changes are cheap. Asking "It is next Wednesday and this launch corrupted billing records - how?" breaks optimism bias immediately.

Equally critical is Zero-Data-Loss Rollback Engineering. Reverting stateless pods is simple; reverting schema migrations, cache formats, or event payloads without losing customer writes must be engineered before launch.

Core Mental Model & Framework

Design forward and backward compatibility across code and state. Never bundle destructive migrations (DROP COLUMN, ALTER TYPE) with new application code. Apply Expand-and-Contract:

Change TypeUnsafe PatternZero-Data-Loss PatternVerified Rollback
DB SchemaRename/drop column with new app codeExpand-and-Contract: Add column + dual-write; drop old column 14d post-GAFlip read-flag to old column; 0 rows lost (<2m)
Core EngineCut live pricing/billing straight to v2Shadow Traffic: Mirror 100% prod inputs to v2; require >=99.99% diff parityZero user impact; disable flag (<1m)
Cache / RedisOverwrite existing key prefix formatVersioned Keys (v2:session:{id}): Isolated v1/v2 keyspacesRevert binary; v1 reads intact v1: keys (<3m)
Event BusMutate Kafka/SQS schema in-placeAdditive Schema + Idempotent Consumers: Tolerate both; DLQ failuresRevert consumer; replay DLQ (<5m)

Step-by-Step Implementation Tutorial

  1. Schedule the 30-minute Pre-Mortem at T-5 business days with Tech Lead, core engineers, SRE, and PM.
  2. Run a strict 30-minute agenda: 0-5m silent brainstorm of failure paths; 5-15m cluster & vote top 3 risks; 15-25m assign pre-launch mitigations and owners; 25-30m verify rollback commands and prod permissions.
  3. Validate critical logic with Shadow Traffic for 48 hours (>=99.99% parity) before serving live traffic.
  4. Write an executable copy-paste Rollback Runbook with exact commands, flag APIs, and SQL integrity checks.
  5. Run a live Rollback Fire Drill in staging with synthetic writes and verify zero lost rows before Go/No-Go.
bash
#!/usr/bin/env bash
# RUNBOOK: REL-2026-089 Multi-Currency Zero-Data-Loss Rollback
# Staging fire-drill verified: 2026-10-14 | Target MTTR: < 5 min

# STEP 1: Flip Feature Flag Kill-Switch (Halts v2 writes in < 30s)
curl -X PATCH "https://app.launchdarkly.com/api/v2/flags/prod/billing.multi_currency_invoicing" \
  -H "Authorization: ${LD_API_KEY}" -H "Content-Type: application/json" \
  -d '{"patch": [{"op": "replace", "path": "/environments/production/on", "value": false}]}'

# STEP 2: Abort Canary & Revert Deployment to Last Known Good SHA
kubectl argo rollouts abort checkout-api -n production
kubectl argo rollouts undo checkout-api -n production

# STEP 3: Verify Dual-Write Integrity (NEVER run destructive `down` migrations!)
psql "${PROD_READONLY_DB_URL}" -c "
  SELECT COUNT(*) AS recent_invoices,
         COUNT(*) FILTER (WHERE legacy_amount_cents IS NULL) AS missing_dual_writes
  FROM billing.invoices
  WHERE created_at >= NOW() - INTERVAL '30 minutes';
"
# EXPECTED: missing_dual_writes = 0.
# If > 0, trigger idempotent backfill: kubectl create job --from=cronjob/backfill-legacy fix-rb -n production

Never execute destructive down migrations during an emergency rollback; dual-writing during the Expand phase lets v1 resume immediately with zero data loss.

Worked Production Scenario: Before vs. After

An enterprise FinTech squad previously treated rollbacks as an afterthought. During a Q1 schema cutover, an unverified down migration dropped a new tax_jurisdiction column during an outage revert, erasing 45 minutes of live invoice metadata and costing 19 hours of manual Stripe log reconstruction.

Before launching Multi-Currency v2, the EM ran a 30-minute Launch Pre-Mortem at T-5 days. Silent brainstorming immediately caught two lethal traps:

  1. Rolling back after v2 wrote currency='EUR' rows caused the legacy v1 PDF generator to throw a NullPointerException.
  2. v2 wrote protobuf bytes into the same Redis key prefix (inv:{id}) as v1 JSON, guaranteeing 100% cache crashes upon rollback.

The squad isolated Redis keys to v2:inv:{id}, added a v1 defensive fallback, ran 72 hours of Shadow Traffic (catching a Yen zero-decimal rounding bug with 0 user impact), and fire-drilled the rollback script in staging in 3.7 minutes.

MetricBefore (Ad-Hoc Revert)After (Pre-Mortem + Tested Runbook)Delta
Rollback Traps Caught Pre-Launch0 (hit production)3 (cache, v1 crash, FX rounding)0 customer pain
Rollback Data Loss Incidents1 (45 min lost metadata)0 (Expand-and-Contract)Zero data loss
Verified Rollback MTTR52 min (improvised)3.7 min (staging-tested)-93% MTTR
Pre-Mortem Investment0 minutes30 minutes (2.5 eng-hrs)High ROI

Common Failure Modes & Anti-Patterns

  1. Untested Rollback Scripts. Expired API keys or command typos waste critical minutes during a 2 AM outage. Fix: require a timestamped staging fire-drill pass in the Go/No-Go checklist.
  2. Running Pre-Mortems on Launch Morning. Two hours before press time, teams suppress real risks because there is no time to fix them. Fix: lock Pre-Mortems strictly at T-5 business days.
  3. Drifting Into Architecture Debates. Re-litigating language choices wastes the 30-minute slot. Fix: enforce scope: "Architecture is locked; what specific operational failure could break production next Tuesday?"

How to Handle Pushback in the Room

Pushback 1 (Tech Lead): "We passed RFC review two months ago and have 88% test coverage. A pre-mortem feels like redundant pessimism."

Calm Response: "Design reviews test theory; pre-mortems catch operational collisions between our release artifact and today's live production state, like Redis key clashes, dual-write gaps, and missing permissions. It is 30 minutes of insurance before touching live customer data."

Pushback 2 (Senior Backend Engineer): "Dual-writing for Expand-and-Contract adds extra migration code. Why not run a clean schema swap in a 5-minute maintenance window?"

Calm Response: "If a bug surfaces 40 minutes after that window closes, a destructive schema swap traps us in a forward-only crisis where rolling back destroys live writes. Keeping dual-write active for 14 days buys instant 3-minute zero-data-loss recovery."

Key Takeaways & This Week's Action Rep

  • Assume failure five days early: Silent brainstorming in a 30-minute Pre-Mortem bypasses optimism bias and exposes hidden launch traps.
  • Make state reversible, not just containers: Use Expand-and-Contract dual-writes, versioned cache keys, and additive schemas.
  • Prove parity via Shadow Traffic: Mirror real production requests to new engines before serving live responses.
  • Fire-drill every Tier 1 rollback runbook in staging: Verify exact commands, permissions, and zero-row-loss SQL checks before GA.

This Week's Action Rep: Put a 30-minute Launch Pre-Mortem on the calendar five business days before your next major release, and require one staging rollback fire-drill before Go/No-Go.