Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_oltp-olap-split

OLTP and OLAP split

11 COMPONENTS · 9 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![OLTP and OLAP split — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_oltp-olap-split/opengraph-image)](https://archos.sageideas.dev/d/dgm_oltp-olap-split)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_oltp-olap-split)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_oltp-olap-split" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="OLTP and OLAP split — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Client application")]
  analyst_1[("Data analyst")]
  tsdb_2[("Time-series database (TSDB)")]
  alerting_3[("Alerting")]
  api_4["Resource server"]
  pg_5[("PostgreSQL")]
  cdc_6[("Change Data Capture (CDC)")]
  log_7[("Event log")]
  ch_8[("ClickHouse")]
  mv_9[("Materialized view")]
  capacity_10["Capacity card"]
  client_0 -->|"1. Calls with JWT · HTTPS"| api_4
  api_4 -->|"2. Commits order · SQL"| pg_5
  pg_5 -->|"3. Streams · TCP"| cdc_6
  cdc_6 -->|"4. Publishes · TCP"| log_7
  log_7 -->|"5. Consumes · TCP"| ch_8
  ch_8 -->|"6. Feeds rollup · SQL"| mv_9
  mv_9 -->|"7. Serves queries · SQL"| analyst_1
  tsdb_2 -->|"Scrapes slot lag · HTTPS"| pg_5
  tsdb_2 -->|"Sends lag · HTTP"| alerting_3

COMPONENT STACK (11)

  • Client applicationSTATEFUL
    Places and reads orders
  • Data analystSTATEFUL
    Runs revenue reports
  • Time-series database (TSDB)STATEFUL
    Stores replication slot lag over time
  • AlertingSTATEFUL
    Pages on-call when slot lag grows
  • Resource serverSTATELESS
    Checks the JWT and runs the transaction
  • PostgreSQLSTATEFUL
    Row store for orders; writes a WAL first
  • Change Data Capture (CDC)STATEFUL
    Reads the database log through a slot
  • Event logSTATEFUL
    Per-key ordered, replayable change events
  • ClickHouseSTATEFUL
    Column store; reads the log in the background
  • Materialized viewSTATEFUL
    Daily rollup; may overcount after a redelivery
  • Capacity cardSTATELESS
    Illustrative inputs, not measured

REQUEST & DATA FLOW (9)

  1. Client application → Resource server (Calls with JWT)[HTTPS]
  2. Resource server → PostgreSQL (Commits order)[SQL]
  3. PostgreSQL → Change Data Capture (CDC) (Streams)[TCP]
  4. Change Data Capture (CDC) → Event log (Publishes)[TCP]
  5. Event log → ClickHouse (Consumes)[TCP]
  6. ClickHouse → Materialized view (Feeds rollup)[SQL]
  7. Materialized view → Data analyst (Serves queries)[SQL]
  8. Time-series database (TSDB) → PostgreSQL (Scrapes slot lag)[HTTPS]
  9. Time-series database (TSDB) → Alerting (Sends lag)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →