ARCHOS 525 BLUEPRINT · /d/dgm_clickstream-collection
Clickstream and event collection (collector, event log, column store)
9 COMPONENTS · 10 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_clickstream-collection) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_clickstream-collection)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_clickstream-collection" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Clickstream and event collection (collector, event log, column store) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web or mobile client")]
collector_1["Event producer"]
log_2[("Event log")]
registry_3[("Schema registry")]
sink_4[("Sink connector")]
store_5[("ClickHouse")]
idp_6[("Identity provider (IdP)")]
metrics_7[("Traces, metrics and logs")]
capacity_8["Capacity card"]
client_0 -->|"1. Sends with JWT (HTTPS) · HTTPS"| collector_1
collector_1 -->|"2. Publishes with SASL · TCP"| log_2
log_2 -->|"3a. Acknowledges (TCP) · TCP"| collector_1
log_2 -->|"3b. Consumes (TCP) · TCP"| sink_4
collector_1 -->|"4a. Acknowledges (HTTPS) · HTTPS"| client_0
sink_4 -->|"4b. Inserts batches (HTTPS) · HTTPS"| store_5
collector_1 -->|"Fetches JWKS (HTTPS) · HTTPS"| idp_6
collector_1 -->|"Looks up schema (HTTPS) · HTTPS"| registry_3
sink_4 -->|"Reads schema (HTTPS) · HTTPS"| registry_3
metrics_7 -->|"Scrapes lag (HTTPS) · HTTPS"| sink_4COMPONENT STACK (9)
- Web or mobile clientSTATEFULRuns on an untrusted network
- Event producerSTATELESSCollector: checks JWT and schema, publishes
- Event logSTATEFULPartitioned by session; keeps events 7 days
- Schema registrySTATEFULChecks each schema change is compatible
- Sink connectorSTATEFULBatches events into the store
- ClickHouseSTATEFULColumn store for click queries
- Identity provider (IdP)STATEFULSigns users in and issues JWTs
- Traces, metrics and logsSTATEFULConsumer lag of the sink group
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (10)
- Web or mobile client → Event producer (Sends with JWT (HTTPS))[HTTPS]
- Event producer → Event log (Publishes with SASL)[TCP]
- Event log → Event producer (Acknowledges (TCP))[TCP]
- Event log → Sink connector (Consumes (TCP))[TCP]
- Event producer → Web or mobile client (Acknowledges (HTTPS))[HTTPS]
- Sink connector → ClickHouse (Inserts batches (HTTPS))[HTTPS]
- Event producer → Identity provider (IdP) (Fetches JWKS (HTTPS))[HTTPS]
- Event producer → Schema registry (Looks up schema (HTTPS))[HTTPS]
- Sink connector → Schema registry (Reads schema (HTTPS))[HTTPS]
- Traces, metrics and logs → Sink connector (Scrapes lag (HTTPS))[HTTPS]