{ "version": "1.1", "id": "messaging-schema-api-c01", "title": "계약과 포맷 구현의 소재", "question": "codec 규칙과 포맷 구현은 어디에 있는가?", "type": "architecture", "direction": "LR", "audience": [ "이 저장소의 구조를 읽는 사람" ], "summary": "codec 이 닫힌 registry 에 대해서만 동작한다는 규칙은 이 리프가 소유하고 포맷별 벤더는 각자 리프가 갖는다.", "alt": "포맷 리프들이 codec 계약을 구현하고 그 계약을 messaging-schema-api 가 닫힌 registry 와 함께 소유한다.", "long_description": "SSOT 는 codec 이 닫힌 registry 에 대해서만 동작한다는 규칙만 이 리프가 소유하고 jackson·avro·protobuf 벤더는 각자 리프가 갖는다고 적는다.", "source_context": { "document": "/home/donghyeon/workspace/chat-gpt-container/document-haness/docs/clean-architecture-backend-template/final/document.md", "document_sha256": "8071fe71b3359d9cf60b95909c26c7b50653ce2f22bbc5fcf6988719bb91236d", "anchor": { "kind": "line", "value": 35416, "line": 35416 } }, "composition": { "profile": "ports-adapters", "diagram_only": true, "reference_ids": [ "order-ports-adapters" ], "rationale": "규칙을 소유하는 자리와 구현이 사는 자리가 갈리는 것이 논지다.", "focus_node": "api" }, "groups": [], "nodes": [ { "id": "caller", "label": "codec 호출자", "kind": "adapter", "role": "inbound-adapter", "evidence": [ { "start_line": 35416, "end_line": 35900 } ], "assumption": false }, { "id": "contract", "label": "codec 계약", "kind": "interface", "role": "port", "evidence": [ { "start_line": 35416, "end_line": 35900 } ], "assumption": false }, { "id": "api", "label": "messaging-schema-api", "kind": "domain", "role": "core", "evidence": [ { "start_line": 35416, "end_line": 35900 } ], "assumption": false, "emphasis": "primary", "details": [ "닫힌 registry" ] }, { "id": "fmt", "label": "포맷 구현 계약", "kind": "interface", "role": "port", "evidence": [ { "start_line": 35416, "end_line": 35965 } ], "assumption": false }, { "id": "vendors", "label": "jackson · avro · protobuf", "kind": "adapter", "role": "outbound-adapter", "evidence": [ { "start_line": 35416, "end_line": 35965 } ], "assumption": false } ], "edges": [ { "id": "a", "from": "caller", "to": "contract", "label": "인코딩 요청", "kind": "request", "evidence": [ { "start_line": 35416, "end_line": 35900 } ], "assumption": false }, { "id": "b", "from": "contract", "to": "api", "label": "규칙 적용", "kind": "request", "evidence": [ { "start_line": 35416, "end_line": 35900 } ], "assumption": false, "emphasis": "primary" }, { "id": "c", "from": "api", "to": "fmt", "label": "포맷 요구", "kind": "request", "evidence": [ { "start_line": 35416, "end_line": 35965 } ], "assumption": false }, { "id": "d", "from": "vendors", "to": "fmt", "label": "벤더로 구현", "kind": "request", "evidence": [ { "start_line": 35416, "end_line": 35965 } ], "assumption": false, "style": "dashed" } ], "legend": [], "metadata": {} }