ClawPad
🧭 TPM & ExecutionPrincipal LevelAsked at: Stripe · Uber · Amazon · Google · Airbnb

How to Run a 6-Month, 40-Service Database Migration With Zero Customer Downtime

Orchestrate expand-contract schema changes, dual-write shadow parity checks, and 1-second feature-flagged read/write cutover gates.

Answer-First Synthesis

Executive Answer Summary

State the governing mechanism upfront before diving into branch details.

Principal Synthesis

Orchestrate expand-contract schema changes, dual-write shadow parity checks, and 1-second feature-flagged read/write cutover gates. The winning Principal-level structure anchors on 5-Phase Dual-Write + Automated Shadow Parity Verifier + Reversible Cutover Gate: (1) Phase 1: Dual-Write (Old Authoritative), (2) Phase 2: Backfill + Parity Scrubber, (3) Phase 3: Shadow Dark-Reads, and (4) Phase 4: Reversible Authority Flip.

Stage 01 · Say This First (45-Second Interview Opener)Verbatim Framing

"The core tension here is Migrating 40 coupled microservices off a monolithic database without a maintenance window or data loss. Rather than jumping to a surface-level fix, I will structure my answer around 5-Phase Dual-Write + Automated Shadow Parity Verifier + Reversible Cutover Gate: first phase 1: dual-write (old authoritative), second phase 2: backfill + parity scrubber, third phase 3: shadow dark-reads, and finally phase 4: reversible authority flip."

Calibrate Target Level Rubric

Principal TPM / Director: Frame the organizational/systemic law in Phase 4: Reversible Authority Flip (Making the cutover a boring, reversible runtime config toggle backed by 7 days of zero-discrepancy shadow proof.).

100% Data-Driven SVG Topology Engine

Critical-Path Dependency & Cutover DAG: 5-Phase Dual-Write + Automated Shadow Parity Verifier + Reversible Cutover Gate (Critical-Path Dependency & Cutover DAG)

Template / Skin:
Trace Walkthrough Path:
Timing Target: 12–15 Min Structured Loop
Active Flow Trace: ① Frame (Migrating 40 coupled microservices off a monolithic database without a maintenance window or data loss) → ② Phase 1: Dual-Write (Old Authoritative) → ③ Phase 2: Backfill + Parity Scrubber → ④ Phase 3: Shadow Dark-Reads.
1. PROBLEM & BASELINE2. CORE MECHANISM3. PROOF & GUARDRAILSDecomposeIsolate DriverExecute MechanismEnforce Guardrail01 · TRIGGER & TENSIONCore Problem & StakesMigrating 40 coupled microserv02 · DIAGNOSTIC STEP 1Phase 1: Dual-Write (Old AFirst-Principles Baseline03 · CORE MECHANISMPhase 2: Backfill + Parity5-Phase Dual-Write + Automated04 · EXECUTION & PROOFPhase 3: Shadow Dark-ReadsQuantified Trade-off Defense05 · GUARDRAIL & SCALEPhase 4: Reversible AuthorDurable System Law
👆 Click any node in the diagram to inspect its responsibility & First-Principles “Why”
Stage 15 · Interviewer Curveball Defense

"What if your primary assumption in 'Phase 2: Backfill + Parity Scrubber' fails or is overruled under time pressure?"

❌ Common Candidate Trap: "I would escalate or wait until we have full data."

✅ Principal Defense: "Flip authoritative writes to New DB via dynamic config while keeping reverse-CDC to Old DB active for two weeks for instant 1-second rollback. By instrumenting the leading guardrail metric and pre-wiring a reversible fallback, we bound the blast radius while keeping delivery on track."

Stage 15 · Interviewer Curveball Defense

"What is the #1 mistake candidates make on this exact question at Stripe?"

❌ Common Candidate Trap: Scheduling a 4-hour weekend downtime window or cutting over all 40 services without reverse-sync rollback capability.

✅ Principal Defense: Making the cutover a boring, reversible runtime config toggle backed by 7 days of zero-discrepancy shadow proof.

Evaluation Rubric

Executive Signal vs. Common Candidate Trap Matrix

How interviewers separate Staff TPM / Group TPM and Principal TPM / Director candidates from surface-level answers.

Evaluation Dimension❌ Common Candidate Trap✅ Principal TPM / Director Signal
Opening Framing (First 30s)Scheduling a 4-hour weekend downtime window or cutting over all 40 services without reverse-sync rollback capability.Names the exact quantitative tension (Migrating 40 coupled microservices off a monolithic database without a maintenance window or data loss) and states the 4-part roadmap upfront.
Core MechanismGeneric textbook buzzwords without numbers, latency/dollar math, or trade-offs.Applies 5-Phase Dual-Write + Automated Shadow Parity Verifier + Reversible Cutover Gate with concrete thresholds: Backfill historical rows in idempotent chunks and run a continuous background diff worker until 7-day mismatch rate = 0.0000%.
Second-Order GuardrailsStops after stating the happy-path answer without checking what could break next.Making the cutover a boring, reversible runtime config toggle backed by 7 days of zero-discrepancy shadow proof.
Technical FAQ

Frequently Asked Questions

What is the best structure for "How to Run a 6-Month, 40-Service Database Migration With Zero Customer Downtime"?

Anchor on 5-Phase Dual-Write + Automated Shadow Parity Verifier + Reversible Cutover Gate: (1) Phase 1: Dual-Write (Old Authoritative) — Deploy SDK shim writing to Old DB synchronously and streaming CDC/async writes to New DB. (2) Phase 2: Backfill + Parity Scrubber — Backfill historical rows in idempotent chunks and run a continuous background diff worker until 7-day mismatch rate = 0.0000%. (3) Phase 3: Shadow Dark-Reads — Mirror 1%→25%→100% of live reads to New DB asynchronously, comparing payload hashes and p99 latency against Old DB. (4) Phase 4: Reversible Authority Flip — Flip authoritative writes to New DB via dynamic config while keeping reverse-CDC to Old DB active for two weeks for instant 1-second rollback.

Why do candidates get rejected on this question at Stripe and Uber?

Scheduling a 4-hour weekend downtime window or cutting over all 40 services without reverse-sync rollback capability. Instead, interviewers look for: Making the cutover a boring, reversible runtime config toggle backed by 7 days of zero-discrepancy shadow proof.

Practice with real-time desktop guidance

Rehearse “How to Run a 6-Month, 40-Service Database Migration With Zero Customer Downtime” inside ClawPad Desktop.