Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-document-store-managed

Managed Document Database Internals (Partition Keys, Change Streams & TTL)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Managed Document Database Internals (Partition Keys, Change Streams & TTL) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-document-store-managed/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-document-store-managed)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-document-store-managed)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-document-store-managed" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Managed Document Database Internals (Partition Keys, Change Streams & TTL) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Serverless /"]
  n1_1["Query & Partition Router"]
  n2a_2[("Sharded Storage Nodes")]
  n2b_3[("Secondary Indexer")]
  n3_4[("Change Stream & TTL")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Route key · HTTPS"| n1_1
  n1_1 -->|"2a. Read/Write · Quorum"| n2a_2
  n1_1 -.->|"2b. Update idx · Async"| n2b_3
  n2a_2 -->|"3a. Emit CDC · Stream"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Serverless /STATELESS
    JSON CRUD + Queries
  • Query & Partition RouterSTATELESS
    Routes by shard/partition key
  • Sharded Storage NodesSTATEFUL
    Log-structured / B-Tree + JSON idx
  • Secondary IndexerSTATEFUL
    Async inverted/composite indexes
  • Change Stream & TTLSTATEFUL
    Emits diffs + background expire
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Serverless / → Query & Partition Router (Route key)[HTTPS]
  2. Query & Partition Router → Sharded Storage Nodes (Read/Write)[Quorum]
  3. Query & Partition Router → Secondary Indexer (Update idx)[Async]
  4. Sharded Storage Nodes → Change Stream & TTL (Emit CDC)[Stream]
  5. Secondary Indexer → Change Stream & TTL (Sync)[Control]
  6. Change Stream & TTL → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →