ARCHOS 525 BLUEPRINT · /d/dgm_int-session-store
Session Store Internals (Opaque Tokens, Sliding TTL & Revocation)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_int-session-store) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-session-store)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-session-store" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Session Store Internals (Opaque Tokens, Sliding TTL & Revocation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Auth & API Gateways"]
n1_1["Session Cookie Edge"]
n2a_2[("Hot Session Cache")]
n2b_3["Sliding TTL & Rotate"]
n3_4[("Revocation & Audit")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Read SID · HTTPS"| n1_1
n1_1 -->|"2a. Get sess · Redis"| n2a_2
n1_1 -.->|"2b. Slide/Rot · Redis"| n2b_3
n2a_2 -->|"3a. Revoke all · SQL"| n3_4
n2b_3 -->|"3b. Sync · Control"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Auth & API GatewaysSTATELESSEvery authenticated HTTP req
- Session Cookie EdgeSTATELESSHttpOnly/Secure/SameSite parse
- Hot Session CacheSTATEFULRedis/Valkey sub-ms lookup
- Sliding TTL & RotateSTATELESSPrivilege rotation + idle exp
- Revocation & AuditSTATEFULGlobal logout + device list
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Auth & API Gateways → Session Cookie Edge (Read SID)[HTTPS]
- Session Cookie Edge → Hot Session Cache (Get sess)[Redis]
- Session Cookie Edge → Sliding TTL & Rotate (Slide/Rot)[Redis]
- Hot Session Cache → Revocation & Audit (Revoke all)[SQL]
- Sliding TTL & Rotate → Revocation & Audit (Sync)[Control]
- Revocation & Audit → Downstream & OTel (Emit /)[OTLP/API]