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

Change Data Capture (CDC) to a data lakehouse

15 COMPONENTS · 15 FLOWS · UPDATED 2026-11-19
GITHUB README / PR PREVIEW CARD
[![Change Data Capture (CDC) to a data lakehouse — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_cdc-to-lake/opengraph-image)](https://archos.sageideas.dev/d/dgm_cdc-to-lake)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_cdc-to-lake)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_cdc-to-lake" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Change Data Capture (CDC) to a data lakehouse — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  app_0[("Order Application")]
  analyst_1[("Data Analyst")]
  pg_2[("PostgreSQL")]
  conn_3[("Source connector")]
  log_4[("Event log")]
  stream_5[("Stream processing application")]
  raw_6[("Raw layer")]
  enriched_7[("Enriched layer")]
  serving_8["Serving"]
  registry_9[("Schema registry")]
  dlq_10[("Dead-letter queue (DLQ)")]
  metrics_11[("Traces, metrics and logs")]
  orch_12[("Workflow orchestrator")]
  capacity_13["Capacity card"]
  kms_14[("Key management service (KMS)")]
  app_0 -->|"1. Writes rows · SQL over TLS"| pg_2
  pg_2 -->|"2. Reads WAL · Replication protocol over TLS; de"| conn_3
  conn_3 -->|"3. Publishes · Kafka producer protocol"| log_4
  log_4 -->|"4. Consumes · Kafka consumer protocol"| stream_5
  stream_5 -->|"5a. Appends · Object store API over TLS"| raw_6
  stream_5 -->|"5b. Merges · Table commit over TLS"| enriched_7
  enriched_7 -->|"6. Supplies · Table read over TLS"| serving_8
  serving_8 -->|"7. Answers · SQL over TLS"| analyst_1
  conn_3 -->|"Registers · Schema registration over HTTPS"| registry_9
  registry_9 -->|"Describes · Schema lookup over HTTPS"| stream_5
  stream_5 -->|"Parks · Kafka producer protocol"| dlq_10
  orch_12 -->|"Compacts · Table maintenance commit"| enriched_7
  pg_2 -->|"Reports · Metrics scrape"| metrics_11
  kms_14 -->|"Unlocks · Decrypts the connector credentials ove"| conn_3
  conn_3 -->|"Reports · Metrics scrape"| metrics_11

COMPONENT STACK (15)

  • Order ApplicationSTATEFUL
    Writes orders to its database
  • Data AnalystSTATEFUL
    Runs SQL on the current tables
  • PostgreSQLSTATEFUL
    Source database; commits to its log first
  • Source connectorSTATEFUL
    One active reader plus a standby worker
  • Event logSTATEFUL
    Per-key ordered, replayable change events
  • Stream processing applicationSTATEFUL
    Applies changes by key and order, idempotently
  • Raw layerSTATEFUL
    Append-only change events, exactly as captured
  • Enriched layerSTATEFUL
    Latest row per key, in an open table format
  • ServingSTATELESS
    Query engine reads the Enriched table
  • Schema registrySTATEFUL
    Checks each schema change is compatible
  • Dead-letter queue (DLQ)STATEFUL
    Parks changes that cannot be applied
  • Traces, metrics and logsSTATEFUL
    Slot lag and connector state
  • Workflow orchestratorSTATEFUL
    Schedules table compaction and clean-up
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design
  • Key management service (KMS)STATEFUL
    Protects the keys that encrypt connector secrets

REQUEST & DATA FLOW (15)

  1. Order Application → PostgreSQL (Writes rows)[SQL over TLS]
  2. PostgreSQL → Source connector (Reads WAL)[Replication protocol over TLS; dedicated replication role; WAL retention cap]
  3. Source connector → Event log (Publishes)[Kafka producer protocol]
  4. Event log → Stream processing application (Consumes)[Kafka consumer protocol]
  5. Stream processing application → Raw layer (Appends)[Object store API over TLS]
  6. Stream processing application → Enriched layer (Merges)[Table commit over TLS]
  7. Enriched layer → Serving (Supplies)[Table read over TLS]
  8. Serving → Data Analyst (Answers)[SQL over TLS]
  9. Source connector → Schema registry (Registers)[Schema registration over HTTPS]
  10. Schema registry → Stream processing application (Describes)[Schema lookup over HTTPS]
  11. Stream processing application → Dead-letter queue (DLQ) (Parks)[Kafka producer protocol]
  12. Workflow orchestrator → Enriched layer (Compacts)[Table maintenance commit]
  13. PostgreSQL → Traces, metrics and logs (Reports)[Metrics scrape]
  14. Key management service (KMS) → Source connector (Unlocks)[Decrypts the connector credentials over TLS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →