본문으로 건너뛰기

Backend 기술 스택

🏗️ 전체 구조


기술 상세

API Layer

Application Layer

패턴구현설명
DDD14 Domains도메인 주도 설계
CQRS599 HandlersCommand Query 분리
Event Sourcing17 Aggregates이벤트 기반 상태 관리
HexagonalPorts & 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/

주요 의존성

패키지버전용도
FastAPI0.109+REST API
Pydantic2.x데이터 검증
gRPCbetterproto + grpclib5 Services / 24 RPCs
Graph DBNeo4j 5.x / Memgraph 2.x그래프 DB
Redis7.x캐시 + 큐
Celery5.3+비동기 처리
DSPy2.xAI 프레임워크

관련 문서: