Skip to main content
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
[![Clickstream and event collection (collector, event log, column store) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_clickstream-collection/opengraph-image)](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_4

COMPONENT STACK (9)

  • Web or mobile clientSTATEFUL
    Runs on an untrusted network
  • Event producerSTATELESS
    Collector: checks JWT and schema, publishes
  • Event logSTATEFUL
    Partitioned by session; keeps events 7 days
  • Schema registrySTATEFUL
    Checks each schema change is compatible
  • Sink connectorSTATEFUL
    Batches events into the store
  • ClickHouseSTATEFUL
    Column store for click queries
  • Identity provider (IdP)STATEFUL
    Signs users in and issues JWTs
  • Traces, metrics and logsSTATEFUL
    Consumer lag of the sink group
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (10)

  1. Web or mobile client → Event producer (Sends with JWT (HTTPS))[HTTPS]
  2. Event producer → Event log (Publishes with SASL)[TCP]
  3. Event log → Event producer (Acknowledges (TCP))[TCP]
  4. Event log → Sink connector (Consumes (TCP))[TCP]
  5. Event producer → Web or mobile client (Acknowledges (HTTPS))[HTTPS]
  6. Sink connector → ClickHouse (Inserts batches (HTTPS))[HTTPS]
  7. Event producer → Identity provider (IdP) (Fetches JWKS (HTTPS))[HTTPS]
  8. Event producer → Schema registry (Looks up schema (HTTPS))[HTTPS]
  9. Sink connector → Schema registry (Reads schema (HTTPS))[HTTPS]
  10. Traces, metrics and logs → Sink connector (Scrapes lag (HTTPS))[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →