{ "version": "1.1", "id": "messaging-outbox-jdbc-postgresql-c05", "title": "커넥션을 얻는 두 방식", "question": "같은 리프에서 커넥션을 어떻게 얻는가?", "type": "dependency", "direction": "LR", "audience": [ "이 저장소의 구조를 읽는 사람" ], "summary": "릴레이 연산은 독립 커넥션을 쓰고 저널은 호출자 트랜잭션에 합류한다.", "alt": "커넥션 획득에서 릴레이는 독립 커넥션으로 저널은 호출자 트랜잭션으로 갈린다.", "long_description": "SSOT 는 릴레이 연산이 비즈니스 트랜잭션에 합류하면 안 되고 저널은 합류해야 한다고 적는다. 같은 리프 안에서 두 방식이 공존한다.", "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": 31657, "line": 31657 } }, "composition": { "profile": "component-flow", "diagram_only": true, "reference_ids": [ "payment-event-flow" ], "rationale": "같은 리프가 두 방식을 의도적으로 나눠 쓴다는 것이 논지다.", "focus_node": "acq" }, "groups": [], "nodes": [ { "id": "acq", "label": "커넥션 획득", "kind": "service", "role": "source", "evidence": [ { "start_line": 31657, "end_line": 31670 } ], "assumption": false, "emphasis": "primary" }, { "id": "relay", "label": "릴레이 — withConnection", "kind": "service", "role": "sink", "evidence": [ { "start_line": 31657, "end_line": 31670 } ], "assumption": false, "details": [ "독립 커넥션" ] }, { "id": "journal", "label": "저널 — 트랜잭션 합류", "kind": "service", "role": "sink", "evidence": [ { "start_line": 31657, "end_line": 31674 } ], "assumption": false, "details": [ "호출자 트랜잭션" ] } ], "edges": [ { "id": "a", "from": "acq", "to": "relay", "label": "독립", "kind": "request", "evidence": [ { "start_line": 31657, "end_line": 31670 } ], "assumption": false, "emphasis": "primary" }, { "id": "b", "from": "acq", "to": "journal", "label": "합류", "kind": "request", "evidence": [ { "start_line": 31657, "end_line": 31674 } ], "assumption": false } ], "legend": [], "metadata": {} }