"매 system 의 external collaborators (services, APIs, queues, DBs) 의 visual mapping 의 통한 boundary + flow 의 communication". 매 Brown 의 C4 model (2018) 의 Context/Container level, 매 ArchiMate 의 application/technology layer, 매 modern 의 diagrams-as-code (Mermaid, Structurizr, D2) 의 dominant.
매 핵심
매 Diagram 종류
System Context (C4 L1): 매 system + users + external systems.
Container (C4 L2): 매 deployable units (web, api, db, queue).
Component (C4 L3): 매 container 내부 의 logical block.
Sequence: 매 time-ordered 의 message flow.
Data Flow Diagram (DFD): 매 process / store / external entity / flow.
Deployment: 매 infra topology (regions, VPCs, nodes).
workspace {
model {
user = person "Customer"
order = softwareSystem "Order Platform" {
web = container "Web App" "Next.js 15"
api = container "API" "Node.js / Fastify"
db = container "Postgres" "RDS" "Database"
cache = container "Redis" "ElastiCache"
queue = container "Kafka" "MSK"
}
user -> web "Uses" "HTTPS"
web -> api "JSON/HTTPS"
api -> db "SQL"
api -> cache "RESP"
api -> queue "produces"
}
views { container order { include * autolayout lr } }
}
Sequence — Distributed Transaction (Mermaid)
sequenceDiagram
participant C as Client
participant O as Order API
participant P as Payment
participant I as Inventory
participant K as Kafka
C->>O: POST /orders
O->>I: Reserve stock
I-->>O: OK (reservation_id)
O->>P: Charge card
P-->>O: success
O->>K: publish OrderCreated
O-->>C: 201 Created
Note over K: Async fanout to Shipping, Email, Analytics
Data Flow Diagram (D2)
direction: right
customer: Customer { shape: person }
api: Order API
db: Postgres { shape: cylinder }
queue: Kafka { shape: queue }
analytics: Analytics WH { shape: cylinder }
customer -> api: POST /order
api -> db: INSERT
api -> queue: OrderCreated
queue -> analytics: stream
flowchart LR
subgraph Public[Public Internet]
U[User]
end
subgraph DMZ
LB[ALB / WAF]
end
subgraph Private[Private VPC]
API[Order API]
DB[(Postgres)]
end
U -- TLS 1.3 --> LB
LB -- mTLS --> API
API --> DB
classDef boundary stroke-dasharray: 5 5
class Public,DMZ,Private boundary
매 결정 기준
상황
Approach
Quick wiki diagram
Mermaid (GitHub renders inline)
Versioned + reviewed
Structurizr DSL or PlantUML in repo
Enterprise governance
ArchiMate (Archi tool)
Generated from code
terraform-graph, kroki, arkade
Threat modeling
DFD + trust boundaries (Microsoft TMT)
기본값: 매 C4 model — Context + Container 의 minimum, diagrams-as-code 의 (Mermaid / Structurizr).
언제: diagram 의 Mermaid/D2 source 의 generate, existing diagram 의 explanation, missing actor 의 detect.
언제 X: 매 enterprise architecture 의 governance decision (human + tool standard 필요).
❌ 안티패턴
PowerPoint architecture: PNG screenshot 의 stale, source 의 X.
Box-and-line soup: 매 label 없이 arrow 의 multitude.
Mixing levels: Context 의 component-level detail 의 cram.
No legend: 매 reader 의 notation 의 guess.
Aspirational diagram: actual deployment 의 mismatch — 매 onboarding 의 misleading.
🧪 검증 / 중복
Verified (Brown "Software Architecture for Developers", c4model.com, ArchiMate 3.2 spec).
신뢰도 A.
🕓 Changelog
날짜
변경
2026-05-08
Phase 1
2026-05-10
Manual cleanup — integration architecture diagrams 의 full content