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
[](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_9COMPONENT STACK (10)
- BrowserSTATEFULAsks for a page from the user's device
- DNSSTATEFULTurns the site name into an address
- Content delivery network (CDN)STATEFULServes cached copies near the user
- Layer 7 load balancerSTATELESSSpreads requests over healthy servers
- API gatewaySTATELESSChecks the caller's token, then routes
- Application serverSTATELESSRuns the business logic for the request
- Distributed cacheSTATEFULAnswers hot reads; a miss falls to the database
- Connection poolerSTATELESSShares a few database connections
- PostgreSQLSTATEFULHolds the durable data (system of record)
- Traces, metrics and logsSTATEFULRequest rate, latency and error rate
REQUEST & DATA FLOW (15)
- Browser → DNS (Resolves name first (DNS))[DNS]
- Browser → Content delivery network (CDN) (Requests (HTTPS))[HTTPS]
- Content delivery network (CDN) → Layer 7 load balancer (Forwards miss)[HTTP/2]
- Layer 7 load balancer → API gateway (Routes (HTTP/2))[HTTP/2]
- API gateway → Application server (Sends (HTTP/2))[HTTP/2]
- Application server → Distributed cache (Checks cache first)[RESP]
- Application server → Connection pooler (Reads on miss)[SQL]
- Connection pooler → PostgreSQL (Runs query)[SQL]
- PostgreSQL → Connection pooler (Returns rows)[SQL]
- Connection pooler → Application server (Passes rows)[SQL]
- Application server → API gateway (Replies (HTTP/2))[HTTP/2]
- API gateway → Layer 7 load balancer (Replies (HTTP/2))[HTTP/2]
- Layer 7 load balancer → Content delivery network (CDN) (Replies)[HTTP/2]
- Content delivery network (CDN) → Browser (Delivers (HTTPS))[HTTPS]