ARCHOS 525 BLUEPRINT · /d/dgm_operational-db-as-source
Operational database as a data source (read the log, not the tables)
13 COMPONENTS · 13 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_operational-db-as-source) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_operational-db-as-source)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_operational-db-as-source" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Operational database as a data source (read the log, not the tables) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
app_0[("Shop app")]
analyst_1[("Data Analyst")]
idp_2[("Identity provider (IdP)")]
orders_3["Orders service"]
pg_4[("PostgreSQL")]
conn_5[("Source connector")]
log_6[("Event log")]
registry_7[("Schema registry")]
sink_8[("Sink connector")]
raw_9[("Raw layer")]
metrics_10[("Traces, metrics and logs")]
alerting_11[("Alerting")]
capacity_12["Capacity card"]
app_0 -->|"1. Calls with JWT · HTTPS"| orders_3
orders_3 -->|"2. Commits order · SQL"| pg_4
pg_4 -->|"3. Streams WAL · TCP"| conn_5
conn_5 -->|"4. Publishes changes · TCP"| log_6
log_6 -->|"5. Consumes · TCP"| sink_8
sink_8 -->|"6. Writes events · HTTPS"| raw_9
raw_9 -->|"7. Reads · HTTPS"| analyst_1
orders_3 -->|"Fetches keys · HTTPS"| idp_2
conn_5 -->|"Registers schema · HTTPS"| registry_7
registry_7 -->|"Describes schema · HTTPS"| sink_8
metrics_10 -->|"Scrapes connector lag · HTTPS"| conn_5
metrics_10 -->|"Scrapes WAL size · HTTPS"| pg_4
metrics_10 -->|"Feeds alerts · HTTPS"| alerting_11COMPONENT STACK (13)
- Shop appSTATEFULSends customer orders
- Data AnalystSTATEFULRuns SQL on the Raw layer
- Identity provider (IdP)STATEFULPublishes the keys that sign each JWT
- Orders serviceSTATELESSChecks the JWT; writes the order row
- PostgreSQLSTATEFULSource database; writes each change to its WAL first
- Source connectorSTATEFULReads the database log; one active reader
- Event logSTATEFULOne stream per table; keeps events 7 days
- Schema registrySTATEFULChecks each schema change is compatible
- Sink connectorSTATEFULCopies events to the Raw layer
- Raw layerSTATEFULChange events exactly as received; may repeat
- Traces, metrics and logsSTATEFULConnector lag; WAL kept for the connector
- AlertingSTATEFULPages on-call when lag or WAL size grows
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (13)
- Shop app → Orders service (Calls with JWT)[HTTPS]
- Orders service → PostgreSQL (Commits order)[SQL]
- PostgreSQL → Source connector (Streams WAL)[TCP]
- Source connector → Event log (Publishes changes)[TCP]
- Event log → Sink connector (Consumes)[TCP]
- Sink connector → Raw layer (Writes events)[HTTPS]
- Raw layer → Data Analyst (Reads)[HTTPS]
- Orders service → Identity provider (IdP) (Fetches keys)[HTTPS]
- Source connector → Schema registry (Registers schema)[HTTPS]
- Schema registry → Sink connector (Describes schema)[HTTPS]
- Traces, metrics and logs → Source connector (Scrapes connector lag)[HTTPS]
- Traces, metrics and logs → PostgreSQL (Scrapes WAL size)[HTTPS]
- Traces, metrics and logs → Alerting (Feeds alerts)[HTTPS]