Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_db-migration-zero-downtime

Zero-downtime database migration

7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[![Zero-downtime database migration — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_db-migration-zero-downtime/opengraph-image)](https://archos.sageideas.dev/d/dgm_db-migration-zero-downtime)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_db-migration-zero-downtime)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_db-migration-zero-downtime" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Zero-downtime database migration — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Client application")]
  app_1["Container runtime"]
  olddb_2[("PostgreSQL")]
  cdc_3[("Change Data Capture (CDC)")]
  newdb_4[("PostgreSQL")]
  dq_5["Data quality check"]
  sink_6[("Client application")]
  client_0 -->|"1. Live writes · HTTPS"| app_1
  app_1 -->|"2. Expand col · SQL"| olddb_2
  olddb_2 -->|"3. Streams WAL · TCP"| cdc_3
  cdc_3 -->|"4. Backfills · SQL"| newdb_4
  newdb_4 -->|"5. Cutover · HTTPS"| sink_6
  olddb_2 -->|"Verifies · SQL"| dq_5

COMPONENT STACK (7)

  • Client applicationSTATEFUL
    Live read/write load
  • Container runtimeSTATELESS
    Expand + dual-write v2
  • PostgreSQLSTATEFUL
    Source primary (WAL)
  • Change Data Capture (CDC)STATEFUL
    Throttled backfill + CDC
  • PostgreSQLSTATEFUL
    Target verified primary
  • Data quality checkSTATELESS
    Shadow read parity
  • Client applicationSTATEFUL
    0ms downtime cutover

REQUEST & DATA FLOW (6)

  1. Client application → Container runtime (Live writes)[HTTPS]
  2. Container runtime → PostgreSQL (Expand col)[SQL]
  3. PostgreSQL → Change Data Capture (CDC) (Streams WAL)[TCP]
  4. Change Data Capture (CDC) → PostgreSQL (Backfills)[SQL]
  5. PostgreSQL → Client application (Cutover)[HTTPS]
  6. PostgreSQL → Data quality check (Verifies)[SQL]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →