Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_cdc-failure-backfill

CDC failure handling and backfill (drill-down)

10 COMPONENTS · 13 FLOWS · UPDATED 2026-11-19
GITHUB README / PR PREVIEW CARD
[![CDC failure handling and backfill (drill-down) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_cdc-failure-backfill/opengraph-image)](https://archos.sageideas.dev/d/dgm_cdc-failure-backfill)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_cdc-failure-backfill)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_cdc-failure-backfill" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="CDC failure handling and backfill (drill-down) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  operator_0[("Platform Operator")]
  analyst_1[("Data Analyst")]
  pg_2[("PostgreSQL")]
  orch_3[("Workflow orchestrator")]
  conn_4[("Source connector")]
  log_5[("Event log")]
  stream_6[("Stream processing application")]
  enriched_7[("Enriched layer")]
  registry_8[("Schema registry")]
  metrics_9[("Traces, metrics and logs")]
  operator_0 -->|"1. Starts · Workflow trigger over HTTPS"| orch_3
  orch_3 -->|"2. Signals · SQL insert into the signal table on"| pg_2
  pg_2 -->|"3. Reads WAL · Replication protocol over TLS; de"| conn_4
  conn_4 -->|"4. Publishes · Kafka producer protocol"| log_5
  log_5 -->|"5. Consumes · Kafka consumer protocol"| stream_6
  stream_6 -->|"6. Merges · Table commit over TLS"| enriched_7
  enriched_7 -->|"7. Answers · Table read over TLS"| analyst_1
  conn_4 -->|"Registers · Schema registration over HTTPS"| registry_8
  orch_3 -->|"Counts rows · Read-only SQL query (SELECT grant)"| pg_2
  orch_3 -->|"Counts · Read-only table query over TLS"| enriched_7
  conn_4 -->|"Beats · Heartbeat write into the heartbeat table"| pg_2
  pg_2 -->|"Reports · Metrics scrape"| metrics_9
  conn_4 -->|"Reports · Metrics scrape"| metrics_9

COMPONENT STACK (10)

  • Platform OperatorSTATEFUL
    Starts a backfill and reads the checks
  • Data AnalystSTATEFUL
    Reads the current tables
  • PostgreSQLSTATEFUL
    Slot holds the log until the connector reads it
  • Workflow orchestratorSTATEFUL
    Runs backfill, then counts rows and keys
  • Source connectorSTATEFUL
    Heartbeats keep the slot moving on quiet tables
  • Event logSTATEFUL
    Per-key ordered, replayable change events
  • Stream processing applicationSTATEFUL
    Merges by key and source log position
  • Enriched layerSTATEFUL
    Latest row per key, in an open table format
  • Schema registrySTATEFUL
    Rejects a breaking change at the connector
  • Traces, metrics and logsSTATEFUL
    Slot lag and connector state

REQUEST & DATA FLOW (13)

  1. Platform Operator → Workflow orchestrator (Starts)[Workflow trigger over HTTPS]
  2. Workflow orchestrator → PostgreSQL (Signals)[SQL insert into the signal table only (INSERT grant) over TLS]
  3. PostgreSQL → Source connector (Reads WAL)[Replication protocol over TLS; dedicated replication role; WAL retention cap]
  4. Source connector → Event log (Publishes)[Kafka producer protocol]
  5. Event log → Stream processing application (Consumes)[Kafka consumer protocol]
  6. Stream processing application → Enriched layer (Merges)[Table commit over TLS]
  7. Enriched layer → Data Analyst (Answers)[Table read over TLS]
  8. Source connector → Schema registry (Registers)[Schema registration over HTTPS]
  9. Workflow orchestrator → PostgreSQL (Counts rows)[Read-only SQL query (SELECT grant) over TLS]
  10. Workflow orchestrator → Enriched layer (Counts)[Read-only table query over TLS]
  11. Source connector → PostgreSQL (Beats)[Heartbeat write into the heartbeat table only over TLS]
  12. PostgreSQL → Traces, metrics and logs (Reports)[Metrics scrape]
  13. Source connector → Traces, metrics and logs (Reports)[Metrics scrape]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →