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 폴더 제거.
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
---
|
||||
id: wiki-2026-0508-엔터프라이즈-소프트웨어-시스템-설계
|
||||
title: 엔터프라이즈 소프트웨어 시스템 설계
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [Enterprise Software Design, Enterprise Architecture]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [enterprise, architecture, systems-design, scalability]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
tech_stack:
|
||||
language: java
|
||||
framework: spring-boot
|
||||
---
|
||||
|
||||
# 엔터프라이즈 소프트웨어 시스템 설계
|
||||
|
||||
## 매 한 줄
|
||||
> **"매 large-scale, mission-critical, long-lived"**. 매 enterprise software 의 multi-team / multi-decade scale 의 system 의 design — 매 reliability, security, compliance, integration 의 first-class concern. 매 2026 의 cloud-native + 매 legacy mainframe 의 hybrid 의 reality.
|
||||
|
||||
## 매 핵심
|
||||
|
||||
### 매 Enterprise 의 specific concerns
|
||||
- **Scale**: 매 thousands of concurrent users, TB+ data.
|
||||
- **Longevity**: 매 10-30년 의 lifespan — 매 maintainability 의 critical.
|
||||
- **Compliance**: 매 SOX, GDPR, HIPAA, PCI-DSS.
|
||||
- **Integration**: 매 N legacy system 의 talk to.
|
||||
- **Multi-team**: 매 Conway's law — 매 org structure 가 architecture 의 reflect.
|
||||
|
||||
### 매 Architecture layers (전통)
|
||||
1. **Presentation** — UI / API.
|
||||
2. **Application** — orchestration, use cases.
|
||||
3. **Domain** — business logic.
|
||||
4. **Infrastructure** — persistence, messaging, external.
|
||||
|
||||
### 매 2026 modern stack
|
||||
- **Frontend**: React / Next.js, micro-frontends.
|
||||
- **API**: GraphQL Federation, gRPC, REST.
|
||||
- **Service**: Microservices (Java/Spring Boot, Go, Kotlin).
|
||||
- **Data**: PostgreSQL, Kafka, Snowflake / Databricks.
|
||||
- **Platform**: Kubernetes, Istio, ArgoCD.
|
||||
- **Observability**: OpenTelemetry, Datadog, Grafana.
|
||||
|
||||
### 매 Cross-cutting concerns
|
||||
- AuthN/AuthZ (OAuth2, OIDC, mTLS)
|
||||
- Audit logging
|
||||
- Distributed tracing
|
||||
- Rate limiting, circuit breakers
|
||||
- Multi-tenancy
|
||||
|
||||
## 💻 패턴
|
||||
|
||||
### 매 Hexagonal architecture
|
||||
```java
|
||||
// 매 Domain — 매 framework 의존 X
|
||||
public class OrderService {
|
||||
private final OrderRepository repo; // port
|
||||
private final PaymentGateway payment; // port
|
||||
|
||||
public Order place(PlaceOrderCommand cmd) {
|
||||
var order = Order.create(cmd);
|
||||
payment.charge(cmd.payment());
|
||||
return repo.save(order);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 매 CQRS + Event Sourcing
|
||||
```java
|
||||
// Command side
|
||||
@Component
|
||||
class OrderCommandHandler {
|
||||
public void handle(PlaceOrder cmd) {
|
||||
var events = OrderAggregate.place(cmd);
|
||||
eventStore.append(cmd.orderId(), events);
|
||||
bus.publish(events);
|
||||
}
|
||||
}
|
||||
|
||||
// Query side
|
||||
@Component
|
||||
class OrderProjection {
|
||||
@KafkaListener(topics = "order-events")
|
||||
public void on(OrderPlaced e) { readModel.upsert(e); }
|
||||
}
|
||||
```
|
||||
|
||||
### 매 Saga (distributed transaction)
|
||||
```java
|
||||
@Saga
|
||||
public class OrderSaga {
|
||||
@StartSaga
|
||||
public void on(OrderPlaced e) {
|
||||
send(new ReserveInventory(e.orderId()));
|
||||
}
|
||||
|
||||
@SagaEventHandler
|
||||
public void on(InventoryReserved e) {
|
||||
send(new ChargePayment(e.orderId()));
|
||||
}
|
||||
|
||||
@SagaEventHandler
|
||||
public void on(PaymentFailed e) {
|
||||
send(new ReleaseInventory(e.orderId()));
|
||||
end();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### 매 Strangler fig (legacy migration)
|
||||
```yaml
|
||||
# 매 Gateway routing — 매 old → new 의 incremental
|
||||
routes:
|
||||
- path: /api/orders/*
|
||||
backend: new-order-service # 매 migrated
|
||||
- path: /api/billing/*
|
||||
backend: legacy-mainframe # 매 still legacy
|
||||
```
|
||||
|
||||
### 매 Multi-tenancy 의 patterns
|
||||
```java
|
||||
// 매 Row-level — 매 cheapest
|
||||
@Entity
|
||||
class Order {
|
||||
@Column UUID tenantId;
|
||||
// 매 every query 의 tenant filter
|
||||
}
|
||||
|
||||
// 매 Schema-per-tenant — 매 isolation
|
||||
DataSource ds = tenantRouter.resolve(currentTenant());
|
||||
|
||||
// 매 DB-per-tenant — 매 strongest, costliest
|
||||
```
|
||||
|
||||
### 매 BFF (Backend for Frontend)
|
||||
```yaml
|
||||
services:
|
||||
bff-mobile: # 매 mobile 최적화 payload
|
||||
bff-web: # 매 web 최적화
|
||||
bff-partner: # 매 B2B integration
|
||||
# 매 모두 매 동일 backend service 의 aggregate
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 매 startup, ≤10 dev | 매 Modular monolith |
|
||||
| 매 scale-up, multi-team | 매 Microservices + DDD |
|
||||
| 매 legacy 의 modernization | 매 Strangler fig |
|
||||
| 매 strict audit / replay | 매 Event sourcing |
|
||||
| 매 read-heavy + complex write | 매 CQRS |
|
||||
|
||||
**기본값**: 매 modular monolith 부터 → 매 pain point 별 의 carve out.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Distributed Systems]]
|
||||
- 변형: [[Microservices]] · [[Event-Driven Architecture]] · [[Service-oriented Architecture (SOA)]]
|
||||
- 응용: [[E-commerce_Platforms|E-commerce Platforms]]
|
||||
- Adjacent: [[Domain-Driven Design]] · [[Hexagonal Architecture]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 large-scale system design interview / RFC / ADR 작성 시.
|
||||
**언제 X**: 매 small CRUD app — 매 over-engineering 의 risk.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **Distributed monolith**: 매 microservice 의 모양 의 만 갖춘 의 tight coupling.
|
||||
- **Big bang rewrite**: 매 legacy 의 한 번에 의 replace — 매 거의 fail.
|
||||
- **Anemic domain**: 매 logic 의 service layer 의 만 — 매 domain object 의 의 data bag.
|
||||
- **Shared database**: 매 microservice 간 의 DB 공유 → 매 hidden coupling.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified — Martin Fowler, *Patterns of Enterprise Application Architecture*; Eric Evans, *Domain-Driven Design*; Sam Newman, *Building Microservices* (2nd ed).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — enterprise architecture patterns + 2026 stack |
|
||||
Reference in New Issue
Block a user