ARCHOS 525 BLUEPRINT · /d/dgm_social-graph
Social Graph Service (TAO-Style Write-Through Cache & Sharded Edges)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_social-graph) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_social-graph)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_social-graph" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Social Graph Service (TAO-Style Write-Through Cache & Sharded Edges) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Product Services"]
n1_1["Graph Router API"]
n2a_2[("TAO Follower Cache")]
n2b_3["Leader Cache Tier"]
n3_4[("Sharded Graph DB")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Assoc · gRPC"| n1_1
n1_1 -->|"2a. Cache hit · TCP"| n2a_2
n1_1 -.->|"2b. Write sync · gRPC"| n2b_3
n2a_2 -->|"3a. Persist · SQL"| n3_4
n2b_3 -->|"3b. Apply · Async"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Product ServicesSTATELESSFollow, mutuals & feed graph
- Graph Router APISTATELESSConsistent-hash shard router
- TAO Follower CacheSTATEFULRead-heavy edge/count cache
- Leader Cache TierSTATELESSWrite-through & invalidation
- Sharded Graph DBSTATEFULMySQL/RocksDB edge shards
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Product Services → Graph Router API (Assoc)[gRPC]
- Graph Router API → TAO Follower Cache (Cache hit)[TCP]
- Graph Router API → Leader Cache Tier (Write sync)[gRPC]
- TAO Follower Cache → Sharded Graph DB (Persist)[SQL]
- Leader Cache Tier → Sharded Graph DB (Apply)[Async]
- Sharded Graph DB → Downstream & OTel (Emit /)[OTLP/API]