feat(design): add infrastructure diagram

This commit is contained in:
2025-09-18 13:37:44 +02:00
parent c0c2824757
commit 0940a441b7

View File

@@ -94,19 +94,46 @@ Notes:
Describe the deployment strategy and infrastructure requirements. Describe the deployment strategy and infrastructure requirements.
- Environments: prod, local dev - Environments: prod, local dev
- Runtime platform: Kubernetes - Runtime platform: Kubernetes, serverless - cloudflare pages
- Infrastructure diagram (optional): - Infrastructure diagram (optional):
```mermaid ```mermaid
flowchart TB flowchart TB
subgraph Cloud subgraph "Cloudflare"
lb[Load Balancer] pages[React App<br/>Cloudflare Pages]
asg[Service / Deployment] end
db[(Managed DB)]
bucket[(Object Storage)] subgraph "Kubernetes Cluster"
end subgraph "Ingress"
user((User)) --> lb --> asg --> db ingress[Ingress Controller]
asg --> bucket end
subgraph "Services"
api[API Gateway /<br/>Web Server]
svc[Web API Service]
worker[Worker Service]
planner[Task Planner]
end
subgraph "Infrastructure"
queue[Message Queue]
db[(Database)]
cache[(Cache)]
end
end
user((User)) --> pages
pages -.-> ingress
ingress --> api
api --> svc
svc --> queue
svc --> db
svc --> cache
queue --> worker
planner --> queue
worker --> db
``` ```
- Configuration & secrets: Env vars, secret manager, .env files (never commit secrets). - Configuration & secrets: Env vars, secret manager, .env files (never commit secrets).