Skip to main content
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
[![Social Graph Service (TAO-Style Write-Through Cache & Sharded Edges) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_social-graph/opengraph-image)](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_5

COMPONENT STACK (6)

  • Product ServicesSTATELESS
    Follow, mutuals & feed graph
  • Graph Router APISTATELESS
    Consistent-hash shard router
  • TAO Follower CacheSTATEFUL
    Read-heavy edge/count cache
  • Leader Cache TierSTATELESS
    Write-through & invalidation
  • Sharded Graph DBSTATEFUL
    MySQL/RocksDB edge shards
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Product Services → Graph Router API (Assoc)[gRPC]
  2. Graph Router API → TAO Follower Cache (Cache hit)[TCP]
  3. Graph Router API → Leader Cache Tier (Write sync)[gRPC]
  4. TAO Follower Cache → Sharded Graph DB (Persist)[SQL]
  5. Leader Cache Tier → Sharded Graph DB (Apply)[Async]
  6. Sharded Graph DB → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →