ARCHOS 525 BLUEPRINT · /d/dgm_fail-thundering-herd-and-stampede
Thundering herd and cache stampede
7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_fail-thundering-herd-and-stampede) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_fail-thundering-herd-and-stampede)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_fail-thundering-herd-and-stampede" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Thundering herd and cache stampede — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Client application")]
app_1["Container runtime"]
l1_2[("In-process cache")]
redis_3[("Distributed cache")]
db_4[("PostgreSQL")]
obs_5["OpenTelemetry Collector"]
sink_6[("Client application")]
client_0 -->|"1. Hot burst · HTTPS"| app_1
app_1 -->|"2. Checks L1 · TCP"| l1_2
l1_2 -->|"3. Takes lease · RESP"| redis_3
redis_3 -->|"4. 1 origin SQL · SQL"| db_4
db_4 -->|"5. Refills · HTTPS"| sink_6
app_1 -->|"Hit ratio · OTLP"| obs_5COMPONENT STACK (7)
- Client applicationSTATEFUL10k concurrent misses
- Container runtimeSTATELESSSingleflight leader
- In-process cacheSTATEFULLocal hot-key L1
- Distributed cacheSTATEFULJittered TTL + lease
- PostgreSQLSTATEFUL1 query, not 10,000
- OpenTelemetry CollectorSTATELESSTracks cache hit ratio
- Client applicationSTATEFULSub-10ms shared reply
REQUEST & DATA FLOW (6)
- Client application → Container runtime (Hot burst)[HTTPS]
- Container runtime → In-process cache (Checks L1)[TCP]
- In-process cache → Distributed cache (Takes lease)[RESP]
- Distributed cache → PostgreSQL (1 origin SQL)[SQL]
- PostgreSQL → Client application (Refills)[HTTPS]
- Container runtime → OpenTelemetry Collector (Hit ratio)[OTLP]