Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-api-gateway-managed

API Gateway Internals (AuthN, Schema Validation, Quotas & BFF Aggregation)

7 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![API Gateway Internals (AuthN, Schema Validation, Quotas & BFF Aggregation) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-api-gateway-managed/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-api-gateway-managed)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-api-gateway-managed)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-api-gateway-managed" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="API Gateway Internals (AuthN, Schema Validation, Quotas & BFF Aggregation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["External Developers"]
  waf_1["WAF & TLS Edge"]
  auth_2["Auth & Plan Resolver"]
  rl_3["Quota & Schema Guard"]
  rt_4["Upstream Router"]
  mtr_5[("Usage Metering Bus")]
  downstream_6["Downstream & OTel"]
  client_0 -->|"1. HTTPS API · HTTPS"| waf_1
  waf_1 -->|"2. Authentica · JWT/Key"| auth_2
  auth_2 -->|"3. Check · Lua/JSON"| rl_3
  rt_4 -->|"Route to · mTLS"| rl_3
  rt_4 -->|"Emit · Kafka"| mtr_5
  rl_3 -.->|"4. Emit / · OTLP/API"| downstream_6

COMPONENT STACK (7)

  • External DevelopersSTATELESS
    API Keys / OAuth JWT
  • WAF & TLS EdgeSTATELESS
    OWASP rules + DDoS shield
  • Auth & Plan ResolverSTATELESS
    JWT/API-key -> tenant tier
  • Quota & Schema GuardSTATELESS
    OpenAPI validate + Redis limit
  • Upstream RouterSTATELESS
    Shrinking timeout + mTLS
  • Usage Metering BusSTATEFUL
    Async billing & analytics events
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. External Developers → WAF & TLS Edge (HTTPS API)[HTTPS]
  2. WAF & TLS Edge → Auth & Plan Resolver (Authentica)[JWT/Key]
  3. Auth & Plan Resolver → Quota & Schema Guard (Check)[Lua/JSON]
  4. Upstream Router → Quota & Schema Guard (Route to)[mTLS]
  5. Upstream Router → Usage Metering Bus (Emit)[Kafka]
  6. Quota & Schema Guard → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →