Skip to main content
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
[![Operational database as a data source (read the log, not the tables) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_operational-db-as-source/opengraph-image)](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_11

COMPONENT STACK (13)

  • Shop appSTATEFUL
    Sends customer orders
  • Data AnalystSTATEFUL
    Runs SQL on the Raw layer
  • Identity provider (IdP)STATEFUL
    Publishes the keys that sign each JWT
  • Orders serviceSTATELESS
    Checks the JWT; writes the order row
  • PostgreSQLSTATEFUL
    Source database; writes each change to its WAL first
  • Source connectorSTATEFUL
    Reads the database log; one active reader
  • Event logSTATEFUL
    One stream per table; keeps events 7 days
  • Schema registrySTATEFUL
    Checks each schema change is compatible
  • Sink connectorSTATEFUL
    Copies events to the Raw layer
  • Raw layerSTATEFUL
    Change events exactly as received; may repeat
  • Traces, metrics and logsSTATEFUL
    Connector lag; WAL kept for the connector
  • AlertingSTATEFUL
    Pages on-call when lag or WAL size grows
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (13)

  1. Shop app → Orders service (Calls with JWT)[HTTPS]
  2. Orders service → PostgreSQL (Commits order)[SQL]
  3. PostgreSQL → Source connector (Streams WAL)[TCP]
  4. Source connector → Event log (Publishes changes)[TCP]
  5. Event log → Sink connector (Consumes)[TCP]
  6. Sink connector → Raw layer (Writes events)[HTTPS]
  7. Raw layer → Data Analyst (Reads)[HTTPS]
  8. Orders service → Identity provider (IdP) (Fetches keys)[HTTPS]
  9. Source connector → Schema registry (Registers schema)[HTTPS]
  10. Schema registry → Sink connector (Describes schema)[HTTPS]
  11. Traces, metrics and logs → Source connector (Scrapes connector lag)[HTTPS]
  12. Traces, metrics and logs → PostgreSQL (Scrapes WAL size)[HTTPS]
  13. Traces, metrics and logs → Alerting (Feeds alerts)[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →