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
[](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_5COMPONENT STACK (7)
- UserSTATEFULSends requests from a phone or browser
- API gatewaySTATELESSChecks the JWT; first slice of the budget
- Application serviceSTATELESSBusiness logic; second slice of the budget
- PostgreSQLSTATEFULReads and writes rows; third slice
- Traces, metrics and logsSTATEFULp50, p99 latency and error rate per hop
- On-call engineerSTATEFULReads p99 per hop on a dashboard
- Capacity cardSTATELESSIllustrative sizing for the drawn design
REQUEST & DATA FLOW (5)
- User → API gateway (Calls with JWT)[HTTPS]
- API gateway → Application service (Budget 90 ms)[HTTP/2]
- Application service → PostgreSQL (Budget 50 ms)[SQL]
- Traces, metrics and logs → Application service (Scrapes metrics)[HTTPS]
- Traces, metrics and logs → On-call engineer (Shows p99 (HTTPS))[HTTPS]