ARCHOS 525 BLUEPRINT · /d/dgm_client-state-offline-sync
Client State, Local-First Cache & Offline Sync Engine
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_client-state-offline-sync) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_client-state-offline-sync)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_client-state-offline-sync" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Client State, Local-First Cache & Offline Sync Engine — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Web & Mobile App"]
n1_1[("Local Store")]
n2a_2[("Mutation Outbox")]
n2b_3["Sync Engine API"]
n3_4[("Server Source DB")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Local · IDB"| n1_1
n1_1 -->|"2a. Push ops · HTTPS"| n2a_2
n1_1 -.->|"2b. Delta sync · HTTPS"| n2b_3
n2a_2 -->|"3a. Commit log · SQL"| n3_4
n2b_3 -->|"3b. Apply · Async"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Web & Mobile AppSTATELESSInstant 0ms local reads/writes
- Local StoreSTATEFULOptimistic UI + query cache
- Mutation OutboxSTATEFULIdempotent ordered retry queue
- Sync Engine APISTATELESSCursor delta pull + conflict
- Server Source DBSTATEFULMonotonic HLC/seq change log
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Web & Mobile App → Local Store (Local)[IDB]
- Local Store → Mutation Outbox (Push ops)[HTTPS]
- Local Store → Sync Engine API (Delta sync)[HTTPS]
- Mutation Outbox → Server Source DB (Commit log)[SQL]
- Sync Engine API → Server Source DB (Apply)[Async]
- Server Source DB → Downstream & OTel (Emit /)[OTLP/API]