> ## Documentation Index
> Fetch the complete documentation index at: https://control.datarelay.run/llms.txt
> Use this file to discover all available pages before exploring further.

# 아키텍처

> 현재 코드에 기반한 control plane과 data path 구조.

# 아키텍처

```mermaid theme={null}
flowchart TB
  UI[Web UI] --> API[FastAPI /api/v1]
  API --> PG[(PostgreSQL)]
  SRC[Source] --> RT[Stream Runtime]
  RT --> R1[Route A]
  RT --> R2[Route B]
  R1 --> D1[Transform → Protection → Classification → Policy → Delivery]
  R2 --> D2[Transform → Protection → Classification → Policy → Delivery]
```

## Control Plane

설정 CRUD, 인증/RBAC, Credential, Marketplace lifecycle, Deploy readiness, operator action, audit, backup/import, policy 설정이 포함됩니다.

## Data Path

Source fetch/webhook ingest, extraction, Transform, Protection, Classification, Policy, Destination delivery, retry/recovery, checkpoint가 포함됩니다.

<Warning>
  현재 Data Relay Control은 management-only controller가 아닙니다. 실제 이벤트를 처리하고 전달합니다.
</Warning>

Stream은 소스/실행/checkpoint를 소유하고, Route는 목적지별 처리를 소유합니다. Checkpoint는 필요한 delivery 결과가 성공한 뒤에만 진행되는 것이 핵심 invariant입니다.
