Backend 기술 스택
🏗️ 전체 구조
기술 상세
API Layer
Application Layer
| 패턴 | 구현 | 설명 |
|---|---|---|
| DDD | 14 Domains | 도메인 주도 설계 |
| CQRS | 599 Handlers | Command Query 분리 |
| Event Sourcing | 17 Aggregates | 이벤트 기반 상태 관리 |
| Hexagonal | Ports & Adapters | 의존성 역전 |
AI Layer
Background Processing
Data Layer
프로젝트 구조
server/
├── api/ # FastAPI 라우터
│ ├── v1/
│ └── grpc/
├── application/ # CQRS Handlers
│ └── {domain}/
│ ├── handlers/
│ ├── services/
│ └── ports/
├── domains/ # Domain Core
│ └── {domain}/
│ ├── entities/
│ ├── domain_services/
│ └── policies/
├── infrastructure/ # Adapters
│ └── adapters/
│ ├── primary/
│ └── secondary/
└── core/ # Shared Utilities
├── config/
└── exceptions/
주요 의존성
| 패키지 | 버전 | 용도 |
|---|---|---|
| FastAPI | 0.109+ | REST API |
| Pydantic | 2.x | 데이터 검증 |
| gRPC | betterproto + grpclib | 5 Services / 24 RPCs |
| Graph DB | Neo4j 5.x / Memgraph 2.x | 그래프 DB |
| Redis | 7.x | 캐시 + 큐 |
| Celery | 5.3+ | 비동기 처리 |
| DSPy | 2.x | AI 프레임워크 |
관련 문서: