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
[](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_11COMPONENT STACK (15)
- Order ApplicationSTATEFULWrites orders to its database
- Data AnalystSTATEFULRuns SQL on the current tables
- PostgreSQLSTATEFULSource database; commits to its log first
- Source connectorSTATEFULOne active reader plus a standby worker
- Event logSTATEFULPer-key ordered, replayable change events
- Stream processing applicationSTATEFULApplies changes by key and order, idempotently
- Raw layerSTATEFULAppend-only change events, exactly as captured
- Enriched layerSTATEFULLatest row per key, in an open table format
- ServingSTATELESSQuery engine reads the Enriched table
- Schema registrySTATEFULChecks each schema change is compatible
- Dead-letter queue (DLQ)STATEFULParks changes that cannot be applied
- Traces, metrics and logsSTATEFULSlot lag and connector state
- Workflow orchestratorSTATEFULSchedules table compaction and clean-up
- Capacity cardSTATELESSIllustrative sizing for the drawn design
- Key management service (KMS)STATEFULProtects the keys that encrypt connector secrets
REQUEST & DATA FLOW (15)
- Order Application → PostgreSQL (Writes rows)[SQL over TLS]
- PostgreSQL → Source connector (Reads WAL)[Replication protocol over TLS; dedicated replication role; WAL retention cap]
- Source connector → Event log (Publishes)[Kafka producer protocol]
- Event log → Stream processing application (Consumes)[Kafka consumer protocol]
- Stream processing application → Raw layer (Appends)[Object store API over TLS]
- Stream processing application → Enriched layer (Merges)[Table commit over TLS]
- Enriched layer → Serving (Supplies)[Table read over TLS]
- Serving → Data Analyst (Answers)[SQL over TLS]
- Source connector → Schema registry (Registers)[Schema registration over HTTPS]
- Schema registry → Stream processing application (Describes)[Schema lookup over HTTPS]
- Stream processing application → Dead-letter queue (DLQ) (Parks)[Kafka producer protocol]
- Workflow orchestrator → Enriched layer (Compacts)[Table maintenance commit]
- PostgreSQL → Traces, metrics and logs (Reports)[Metrics scrape]
- Key management service (KMS) → Source connector (Unlocks)[Decrypts the connector credentials over TLS]