Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_request-lifecycle

Request Lifecycle (browser to database and back)

11 COMPONENTS · 15 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Request Lifecycle (browser to database and back) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_request-lifecycle/opengraph-image)](https://archos.sageideas.dev/d/dgm_request-lifecycle)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_request-lifecycle)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_request-lifecycle" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Request Lifecycle (browser to database and back) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  browser_0[("Browser")]
  dns_1[("DNS")]
  cdn_2[("Content delivery network (CDN)")]
  lb_3["Layer 7 load balancer"]
  gw_4["API gateway"]
  app_5["Application server"]
  cache_6[("Distributed cache")]
  pool_7["Connection pooler"]
  db_8[("PostgreSQL")]
  telemetry_9[("Traces, metrics and logs")]
  capacity_10["Capacity estimate"]
  browser_0 -->|"1a. Resolves name first (DNS) · DNS"| dns_1
  browser_0 -->|"1b. Requests (HTTPS) · HTTPS"| cdn_2
  cdn_2 -->|"2. Forwards miss · HTTP/2"| lb_3
  lb_3 -->|"3. Routes (HTTP/2) · HTTP/2"| gw_4
  gw_4 -->|"4. Sends (HTTP/2) · HTTP/2"| app_5
  app_5 -->|"5a. Checks cache first · RESP"| cache_6
  app_5 -->|"5b. Reads on miss · SQL"| pool_7
  pool_7 -->|"6. Runs query · SQL"| db_8
  db_8 -->|"7. Returns rows · SQL"| pool_7
  pool_7 -->|"8. Passes rows · SQL"| app_5
  app_5 -->|"9. Replies (HTTP/2) · HTTP/2"| gw_4
  gw_4 -->|"10. Replies (HTTP/2) · HTTP/2"| lb_3
  lb_3 -->|"11. Replies · HTTP/2"| cdn_2
  cdn_2 -->|"12. Delivers (HTTPS) · HTTPS"| browser_0
  gw_4 -->|"Exports (OTLP) · OTLP"| telemetry_9

COMPONENT STACK (10)

  • BrowserSTATEFUL
    Asks for a page from the user's device
  • DNSSTATEFUL
    Turns the site name into an address
  • Content delivery network (CDN)STATEFUL
    Serves cached copies near the user
  • Layer 7 load balancerSTATELESS
    Spreads requests over healthy servers
  • API gatewaySTATELESS
    Checks the caller's token, then routes
  • Application serverSTATELESS
    Runs the business logic for the request
  • Distributed cacheSTATEFUL
    Answers hot reads; a miss falls to the database
  • Connection poolerSTATELESS
    Shares a few database connections
  • PostgreSQLSTATEFUL
    Holds the durable data (system of record)
  • Traces, metrics and logsSTATEFUL
    Request rate, latency and error rate

REQUEST & DATA FLOW (15)

  1. Browser → DNS (Resolves name first (DNS))[DNS]
  2. Browser → Content delivery network (CDN) (Requests (HTTPS))[HTTPS]
  3. Content delivery network (CDN) → Layer 7 load balancer (Forwards miss)[HTTP/2]
  4. Layer 7 load balancer → API gateway (Routes (HTTP/2))[HTTP/2]
  5. API gateway → Application server (Sends (HTTP/2))[HTTP/2]
  6. Application server → Distributed cache (Checks cache first)[RESP]
  7. Application server → Connection pooler (Reads on miss)[SQL]
  8. Connection pooler → PostgreSQL (Runs query)[SQL]
  9. PostgreSQL → Connection pooler (Returns rows)[SQL]
  10. Connection pooler → Application server (Passes rows)[SQL]
  11. Application server → API gateway (Replies (HTTP/2))[HTTP/2]
  12. API gateway → Layer 7 load balancer (Replies (HTTP/2))[HTTP/2]
  13. Layer 7 load balancer → Content delivery network (CDN) (Replies)[HTTP/2]
  14. Content delivery network (CDN) → Browser (Delivers (HTTPS))[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →