codex-bais-final4-20260713-.../.dev-docs/migration/bais-spring/c파일-정리-모듈-매핑.md

3 KiB

C 파일 모듈 매핑

모듈 구조

┌──────────────────────────────────────────────────────────────┐
│                        Application                           │
├──────────────────────────────────────────────────────────────┤
│  ┌─────────┐  ┌─────────┐  ┌─────────┐  ┌─────────┐        │
│  │   API   │  │   DB    │  │ Network │  │  Crypto │        │
│  │ Module  │  │ Module  │  │ Module  │  │  Module │        │
│  └────┬────┘  └────┬────┘  └────┬────┘  └────┬────┘        │
│       │            │            │            │              │
│       └────────────┴────────────┴────────────┘              │
│                          │                                   │
│                    ┌─────┴─────┐                             │
│                    │   Utils   │                             │
│                    │  Module   │                             │
│                    └───────────┘                             │
└──────────────────────────────────────────────────────────────┘

의존성 그래프

API ─────► DB
 │            │
 ▼            ▼
Utils ◄──────┘

Network ────► Crypto
    │
    ▼
  Utils

파일별 모듈归属

파일명 모듈 레이어
api_handler.c API Application
api_parser.c API Application
api_validator.c API Application
api_router.c API Application
db_connector.c DB Data
db_query.c DB Data
db_migrator.c DB Data
net_server.c Network Infrastructure
net_client.c Network Infrastructure
net_protocol.c Network Infrastructure
net_buffer.c Network Infrastructure
crypto_hash.c Crypto Security
crypto_cipher.c Crypto Security
crypto_random.c Crypto Security
utils_logger.c Utils Common
utils_config.c Utils Common
utils_timer.c Utils Common
utils_string.c Utils Common

전환 영향도 매트릭스

전환 대상 영향받는 모듈 영향도
API 모듈 전체 DB, Utils 높음
DB 모듈 전체 API 중간
Network 모듈 전체 API, Crypto 중간
Crypto 모듈 전체 Network 높음
Utils 모듈 전체 모든 모듈 매우 높음