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
[](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_3COMPONENT STACK (11)
- Client applicationSTATEFULPlaces and reads orders
- Data analystSTATEFULRuns revenue reports
- Time-series database (TSDB)STATEFULStores replication slot lag over time
- AlertingSTATEFULPages on-call when slot lag grows
- Resource serverSTATELESSChecks the JWT and runs the transaction
- PostgreSQLSTATEFULRow store for orders; writes a WAL first
- Change Data Capture (CDC)STATEFULReads the database log through a slot
- Event logSTATEFULPer-key ordered, replayable change events
- ClickHouseSTATEFULColumn store; reads the log in the background
- Materialized viewSTATEFULDaily rollup; may overcount after a redelivery
- Capacity cardSTATELESSIllustrative inputs, not measured
REQUEST & DATA FLOW (9)
- Client application → Resource server (Calls with JWT)[HTTPS]
- Resource server → PostgreSQL (Commits order)[SQL]
- PostgreSQL → Change Data Capture (CDC) (Streams)[TCP]
- Change Data Capture (CDC) → Event log (Publishes)[TCP]
- Event log → ClickHouse (Consumes)[TCP]
- ClickHouse → Materialized view (Feeds rollup)[SQL]
- Materialized view → Data analyst (Serves queries)[SQL]
- Time-series database (TSDB) → PostgreSQL (Scrapes slot lag)[HTTPS]
- Time-series database (TSDB) → Alerting (Sends lag)[HTTP]