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
[](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_5COMPONENT STACK (6)
- Serverless /STATELESSJSON CRUD + Queries
- Query & Partition RouterSTATELESSRoutes by shard/partition key
- Sharded Storage NodesSTATEFULLog-structured / B-Tree + JSON idx
- Secondary IndexerSTATEFULAsync inverted/composite indexes
- Change Stream & TTLSTATEFULEmits diffs + background expire
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Serverless / → Query & Partition Router (Route key)[HTTPS]
- Query & Partition Router → Sharded Storage Nodes (Read/Write)[Quorum]
- Query & Partition Router → Secondary Indexer (Update idx)[Async]
- Sharded Storage Nodes → Change Stream & TTL (Emit CDC)[Stream]
- Secondary Indexer → Change Stream & TTL (Sync)[Control]
- Change Stream & TTL → Downstream & OTel (Emit /)[OTLP/API]