Skip to main content
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
[![Session Store Internals (Opaque Tokens, Sliding TTL & Revocation) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-session-store/opengraph-image)](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_5

COMPONENT STACK (6)

  • Auth & API GatewaysSTATELESS
    Every authenticated HTTP req
  • Session Cookie EdgeSTATELESS
    HttpOnly/Secure/SameSite parse
  • Hot Session CacheSTATEFUL
    Redis/Valkey sub-ms lookup
  • Sliding TTL & RotateSTATELESS
    Privilege rotation + idle exp
  • Revocation & AuditSTATEFUL
    Global logout + device list
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Auth & API Gateways → Session Cookie Edge (Read SID)[HTTPS]
  2. Session Cookie Edge → Hot Session Cache (Get sess)[Redis]
  3. Session Cookie Edge → Sliding TTL & Rotate (Slide/Rot)[Redis]
  4. Hot Session Cache → Revocation & Audit (Revoke all)[SQL]
  5. Sliding TTL & Rotate → Revocation & Audit (Sync)[Control]
  6. Revocation & Audit → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →