Skip to main content
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
[![HTTP Reverse-Proxy Cache Internals (Varnish / NGINX, VCL, Grace & Vary) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-http-cache/opengraph-image)](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_5

COMPONENT STACK (6)

  • CDN / ClientsSTATELESS
    Cacheable HTTP GETs
  • Cache Key NormalizerSTATELESS
    Strips tracking params + Vary
  • RAM / Mmap Slab StoreSTATEFUL
    Zero-GC lock-free object store
  • Singleflight & GraceSTATELESS
    Coalesces misses + serves stale
  • Origin App TierSTATELESS
    Protected from 95% read traffic
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. CDN / Clients → Cache Key Normalizer (Hash key)[HTTP]
  2. Cache Key Normalizer → RAM / Mmap Slab Store (Lookup RAM)[Slab]
  3. Cache Key Normalizer → Singleflight & Grace (Coalesce)[Grace]
  4. RAM / Mmap Slab Store → Origin App Tier (1 miss req)[HTTP/2]
  5. Singleflight & Grace → Origin App Tier (Sync)[Control]
  6. Origin App Tier → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →