ARCHOS 525 BLUEPRINT · /d/dgm_int-http-cache
HTTP Reverse-Proxy Cache Internals (Varnish / NGINX, VCL, Grace & Vary)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-http-cache) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-http-cache)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-http-cache" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="HTTP Reverse-Proxy Cache Internals (Varnish / NGINX, VCL, Grace & Vary) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["CDN / Clients"]
n1_1["Cache Key Normalizer"]
n2a_2[("RAM / Mmap Slab Store")]
n2b_3["Singleflight & Grace"]
n3_4["Origin App Tier"]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Hash key · HTTP"| n1_1
n1_1 -->|"2a. Lookup RAM · Slab"| n2a_2
n1_1 -.->|"2b. Coalesce · Grace"| n2b_3
n2a_2 -->|"3a. 1 miss req · HTTP/2"| n3_4
n2b_3 -->|"3b. Sync · Control"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- CDN / ClientsSTATELESSCacheable HTTP GETs
- Cache Key NormalizerSTATELESSStrips tracking params + Vary
- RAM / Mmap Slab StoreSTATEFULZero-GC lock-free object store
- Singleflight & GraceSTATELESSCoalesces misses + serves stale
- Origin App TierSTATELESSProtected from 95% read traffic
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- CDN / Clients → Cache Key Normalizer (Hash key)[HTTP]
- Cache Key Normalizer → RAM / Mmap Slab Store (Lookup RAM)[Slab]
- Cache Key Normalizer → Singleflight & Grace (Coalesce)[Grace]
- RAM / Mmap Slab Store → Origin App Tier (1 miss req)[HTTP/2]
- Singleflight & Grace → Origin App Tier (Sync)[Control]
- Origin App Tier → Downstream & OTel (Emit /)[OTLP/API]