Files
2nd/10_Wiki/Topic_Programming/Architecture/Software Architecture Documentation.md
T
Antigravity Agent 9148c358d0 docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를
Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류.

- 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로
  자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거,
  동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거.
- 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming,
  Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business,
  Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로,
  나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는
  title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백).
  원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지.
- 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서.
- 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는
  지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지.
- Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경.
- 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
2026-07-05 00:33:48 +09:00

5.4 KiB

id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id title category status canonical_id aliases duplicate_of source_trust_level confidence_score verification_status tags raw_sources last_reinforced github_commit tech_stack
wiki-2026-0508-software-architecture-documentat Software Architecture Documentation 10_Wiki/Topics verified self
SAD
Architecture Documentation
arc42
C4 Model
none A 0.9 applied
architecture
documentation
arc42
c4
adr
2026-05-10 pending
language framework
markdown structurizr

Software Architecture Documentation

매 한 줄

"매 architecture 의 communicate 가능 form 의 capture — 매 stakeholder 의 different view 의 serve.". 매 arc42 (12-section template), C4 (4-level zoom), 4+1 view (logical/process/dev/physical+scenario), ADR (decision log) 의 4 매 dominant frameworks. 매 2026 modern: Structurizr DSL 의 diagrams-as-code, AsyncAPI 의 event arch documentation.

매 핵심

매 frameworks

  • arc42 — 12 sections (introduction → goals → context → solution strategy → blocks → runtime → deployment → concepts → decisions → quality → risks → glossary).
  • C4 Model (Brown) — Context / Containers / Components / Code (zoom levels).
  • 4+1 View (Kruchten) — Logical, Process, Development, Physical, +Scenarios.
  • ADR (Nygard) — decision log per technical choice.

매 audiences

  • Executives → context view (C4 L1).
  • Developers → containers + components.
  • Ops → deployment view + runbook.
  • Auditors → cross-cutting concerns + decisions.

매 응용

  1. New service onboarding doc.
  2. M&A architecture due diligence.
  3. SOC2 / ISO27001 audit evidence.
  4. Pre-rewrite reverse-architecting.
  5. Onboarding new engineer (1-week ramp).

💻 패턴

arc42 skeleton (markdown)

# Architecture Documentation — Service X

## 1. Introduction & Goals
## 2. Constraints
## 3. Context & Scope
## 4. Solution Strategy
## 5. Building Block View
## 6. Runtime View
## 7. Deployment View
## 8. Crosscutting Concepts
## 9. Architecture Decisions (ADRs)
## 10. Quality Requirements
## 11. Risks & Technical Debt
## 12. Glossary

C4 with Structurizr DSL

workspace "Skybound" {
  model {
    user = person "Customer"
    api = softwareSystem "API" {
      web = container "Web App" "React"
      svc = container "Backend" "Node.js"
      db = container "Database" "Postgres"
    }
    user -> web "uses"
    web -> svc "JSON/HTTPS"
    svc -> db "SQL"
  }
  views {
    systemContext api { include * autolayout }
    container api { include * autolayout }
  }
}

ADR template (MADR)

# ADR-0042: Use Postgres as Primary Store

## Status
Accepted (2026-05-10)

## Context
Need transactional store with strong consistency, JSON support.

## Decision
Use Postgres 16 with logical replication for read-replicas.

## Consequences
+ ACID, mature ecosystem, JSONB
- Vertical scaling ceiling — sharding plan needed by 2027

## Alternatives
- DynamoDB: rejected (relational queries)
- Mongo: rejected (consistency tradeoffs)

Diagrams-as-code (Mermaid)

```mermaid
C4Container
  title Container Diagram for Skybound
  Person(user, "User")
  System_Boundary(api, "Skybound") {
    Container(web, "Web App", "React")
    Container(svc, "Backend", "Node.js")
    ContainerDb(db, "Database", "Postgres")
  }
  Rel(user, web, "uses")
  Rel(web, svc, "JSON/HTTPS")
  Rel(svc, db, "SQL")

### AsyncAPI (event arch)
```yaml
asyncapi: 3.0.0
info: { title: Orders, version: 1.0.0 }
channels:
  orderPlaced:
    address: orders.placed
    messages:
      OrderPlaced:
        payload:
          type: object
          properties:
            id: { type: string }
            amount: { type: number }

Quality attribute scenarios

## Performance Scenario
- Source: 10k concurrent users
- Stimulus: checkout submit
- Environment: peak load
- Response: order created, confirmation email queued
- Measure: p99 < 800ms, error rate < 0.1%

Documentation in repo (docs-as-code)

/docs
  /architecture
    arc42.md
    /adr
      0001-postgres.md
      0002-event-bus.md
    /diagrams
      workspace.dsl

매 결정 기준

상황 Approach
Quick visual onboarding C4 Context + Container
Comprehensive system doc arc42 full template
Per-decision rationale ADR (MADR)
Event-driven system AsyncAPI + arc42 ch.6
Audit evidence arc42 ch.8 + ADRs

기본값: arc42 + C4 (L1-L2) + ADR repo + Structurizr DSL + docs-as-code in monorepo.

🔗 Graph

🤖 LLM 활용

언제: doc gap analysis, ADR drafting, view-completeness review. 언제 X: 매 architecture 의 yet 결정 X — 매 decision-making 의 first.

안티패턴

  • Stale Visio: 매 PDF/image 의 versioned X — diagrams-as-code 사용.
  • Doc-only, no view: 매 1 PDF 의 dump — view-per-audience 분리.
  • No ADR: 매 6개월 후 매 "왜 X 선택?" 답 X.

🧪 검증 / 중복

  • Verified (arc42.org, C4model.com, Brown "Software Architecture for Developers", Nygard ADR).
  • 신뢰도 A.

🕓 Changelog

날짜 변경
2026-05-08 Phase 1
2026-05-10 Manual cleanup — arc42, C4, ADR, AsyncAPI, docs-as-code patterns