Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_spartan-lab1-core-engine

Production Core Stack (9 Services)

9 COMPONENTS · 8 FLOWS · UPDATED 2026-11-23
GITHUB README / PR PREVIEW CARD
[![Production Core Stack (9 Services) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_spartan-lab1-core-engine/opengraph-image)](https://archos.sageideas.dev/d/dgm_spartan-lab1-core-engine)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_spartan-lab1-core-engine)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_spartan-lab1-core-engine" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Production Core Stack (9 Services) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Client application")]
  nginx_1["Reverse proxy"]
  api_2["Container runtime"]
  redis_3[("Distributed cache")]
  pgbouncer_4["Connection pooler"]
  postgres_5[("PostgreSQL")]
  otel_6["OpenTelemetry Collector"]
  grafana_7[("Traces, metrics and logs")]
  sink_8[("BI & SRE Console")]
  client_0 -->|"1. Sends load · HTTPS"| nginx_1
  nginx_1 -->|"2. Proxies API · HTTP/2"| api_2
  api_2 -->|"3a. Cache read · RESP"| redis_3
  api_2 -->|"3b. Pooled SQL · SQL"| pgbouncer_4
  pgbouncer_4 -->|"4. Runs TX · SQL"| postgres_5
  postgres_5 -.->|"5. BI KPIs · SQL"| sink_8
  api_2 -->|"Metrics · HTTP"| otel_6
  otel_6 -->|"Dashboards · HTTP"| grafana_7

COMPONENT STACK (9)

  • Client applicationSTATEFUL
    k6 load to :8080
  • Reverse proxySTATELESS
    Nginx :8080 -> :80
  • Container runtimeSTATELESS
    FastAPI :8000 /metrics
  • Distributed cacheSTATEFUL
    Redis 7 :6379 LRU
  • Connection poolerSTATELESS
    PgBouncer :6432
  • PostgreSQLSTATEFUL
    Postgres 16 + BI views
  • OpenTelemetry CollectorSTATELESS
    Prometheus :9090
  • Traces, metrics and logsSTATEFUL
    Grafana :3001 + BI
  • BI & SRE ConsoleSTATEFUL
    Metabase & SRE view

REQUEST & DATA FLOW (8)

  1. Client application → Reverse proxy (Sends load)[HTTPS]
  2. Reverse proxy → Container runtime (Proxies API)[HTTP/2]
  3. Container runtime → Distributed cache (Cache read)[RESP]
  4. Container runtime → Connection pooler (Pooled SQL)[SQL]
  5. Connection pooler → PostgreSQL (Runs TX)[SQL]
  6. PostgreSQL → BI & SRE Console (BI KPIs)[SQL]
  7. Container runtime → OpenTelemetry Collector (Metrics)[HTTP]
  8. OpenTelemetry Collector → Traces, metrics and logs (Dashboards)[HTTP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →