Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_capacity-estimation

Capacity Estimation and Tail Latency Budget (back-of-envelope)

7 COMPONENTS · 5 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[![Capacity Estimation and Tail Latency Budget (back-of-envelope) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_capacity-estimation/opengraph-image)](https://archos.sageideas.dev/d/dgm_capacity-estimation)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_capacity-estimation)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_capacity-estimation" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Capacity Estimation and Tail Latency Budget (back-of-envelope) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("User")]
  gw_1["API gateway"]
  svc_2["Application service"]
  db_3[("PostgreSQL")]
  metrics_4[("Traces, metrics and logs")]
  oncall_5[("On-call engineer")]
  capacity_6["Capacity card"]
  client_0 -->|"1. Calls with JWT · HTTPS"| gw_1
  gw_1 -->|"2. Budget 90 ms · HTTP/2"| svc_2
  svc_2 -->|"3. Budget 50 ms · SQL"| db_3
  metrics_4 -->|"Scrapes metrics · HTTPS"| svc_2
  metrics_4 -->|"Shows p99 (HTTPS) · HTTPS"| oncall_5

COMPONENT STACK (7)

  • UserSTATEFUL
    Sends requests from a phone or browser
  • API gatewaySTATELESS
    Checks the JWT; first slice of the budget
  • Application serviceSTATELESS
    Business logic; second slice of the budget
  • PostgreSQLSTATEFUL
    Reads and writes rows; third slice
  • Traces, metrics and logsSTATEFUL
    p50, p99 latency and error rate per hop
  • On-call engineerSTATEFUL
    Reads p99 per hop on a dashboard
  • Capacity cardSTATELESS
    Illustrative sizing for the drawn design

REQUEST & DATA FLOW (5)

  1. User → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Application service (Budget 90 ms)[HTTP/2]
  3. Application service → PostgreSQL (Budget 50 ms)[SQL]
  4. Traces, metrics and logs → Application service (Scrapes metrics)[HTTPS]
  5. Traces, metrics and logs → On-call engineer (Shows p99 (HTTPS))[HTTPS]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →