feat: 가상화 문서들 추가
This commit is contained in:
-106
@@ -1,106 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="680" height="809" viewBox="0 0 680 809" role="img" aria-labelledby="diagram-title diagram-description">
|
||||
<title id="diagram-title">커밋 요청 뒤의 결과 판정</title>
|
||||
<desc id="diagram-description">tracker 가 COMMIT_REQUESTED 를 관측한 뒤 provider commit 을 호출한다. 예외가 없으면 Committed 다. RuntimeException 이 오면 먼저 commitAcknowledged 를 보고, 이미 afterCommit 이 왔으면 CommittedWithPostCommitFailure 다. 그렇지 않으면 rolledBack 과 UnexpectedRollbackException 과 replay 후보 여부를 보고, 하나라도 성립하면 DeterminateRollback 이다. 어느 것도 성립하지 않으면 Indeterminate 로 남는다.</desc>
|
||||
<metadata>{"techviz":{"spec_version":"1.1","id":"commit-evidence-phase-machine","profile":"component-flow"},"source_context":{"document":"docs/clean-architecture-backend-template/final/document.md","document_sha256":"74b4986fd8621f6fd61791232777dc0e6c8ef999cbc2343df050bd5921ea03ac","anchor":{"kind":"heading","value":"3.2 트랜잭션 — `application-core` 포트에서 PostgreSQL local timeout까지","line":352}},"evidence_policy":"Each factual element cites source lines or is marked assumption.","diagram_only":true}</metadata>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" />
|
||||
</marker>
|
||||
<style>
|
||||
:root { color-scheme: light; }
|
||||
text { font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #111827; }
|
||||
.canvas { fill: #ffffff; }
|
||||
.group-box { fill: #ffffff; stroke: #9ca3af; stroke-width: 1.4; stroke-dasharray: 7 5; }
|
||||
.group-label-bg { fill: #ffffff; }
|
||||
.group-label { font-size: 13px; font-weight: 650; fill: #374151; }
|
||||
.edge { fill: none; stroke: #374151; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arrow); }
|
||||
.edge.style-dashed, .edge.semantic-dashed, .edge.assumption { stroke-dasharray: 7 5; }
|
||||
.edge.style-dotted { stroke-dasharray: 2 5; }
|
||||
.edge.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.edge.emphasis-muted { stroke: #9ca3af; }
|
||||
.edge.emphasis-warning, .edge.kind-failure, .edge.kind-error { stroke: #dc2626; stroke-width: 2.2; }
|
||||
.edge-label-bg { fill: #ffffff; }
|
||||
.edge-label { font-size: 12px; font-weight: 560; text-anchor: middle; }
|
||||
.node-shape { fill: #ffffff; stroke: #4b5563; stroke-width: 1.7; }
|
||||
.node-shape.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.node-shape.emphasis-muted { stroke: #9ca3af; fill: #f9fafb; }
|
||||
.node-shape.emphasis-warning { stroke: #d97706; stroke-width: 2; fill: #fffdf5; }
|
||||
.node-shape.kind-database, .node-shape.kind-datastore, .node-shape.kind-storage { fill: #f8fafc; }
|
||||
.node-shape.kind-queue, .node-shape.kind-event, .node-shape.kind-topic { fill: #fafafa; }
|
||||
.node-shape.assumption { stroke-dasharray: 4 4; }
|
||||
.storage-bottom, .controller-divider { fill: none; stroke: #4b5563; stroke-width: 1.4; }
|
||||
.controller-led { fill: #4b5563; }
|
||||
.actor-symbol { fill: none; stroke: #4b5563; stroke-width: 1.8; stroke-linecap: round; }
|
||||
.actor-symbol.emphasis-primary { stroke: #2563eb; stroke-width: 2.2; }
|
||||
.node-label { font-size: 14px; font-weight: 650; text-anchor: middle; }
|
||||
.node-role { font-size: 10px; letter-spacing: 0.04em; text-anchor: middle; fill: #6b7280; }
|
||||
.node-detail-divider { stroke: #d1d5db; stroke-width: 1; }
|
||||
.node-detail { font-size: 11px; fill: #374151; }
|
||||
.assumption-badge { font-size: 9px; font-weight: 700; fill: #92400e; }
|
||||
.failure-mark { stroke: #dc2626; stroke-width: 4; stroke-linecap: round; }
|
||||
.lifeline { stroke: #9ca3af; stroke-width: 1.2; stroke-dasharray: 5 5; }
|
||||
.timeline-axis { stroke: #374151; stroke-width: 1.8; marker-end: url(#arrow); }
|
||||
.timeline-stem { stroke: #6b7280; stroke-width: 1.3; }
|
||||
.timeline-marker { fill: #ffffff; stroke: #374151; stroke-width: 1.7; }
|
||||
.timeline-marker.primary { fill: #2563eb; stroke: #2563eb; }
|
||||
.timeline-marker.warning { fill: #dc2626; stroke: #dc2626; }
|
||||
.timeline-label { font-size: 13px; font-weight: 650; text-anchor: middle; }
|
||||
.timeline-detail { font-size: 11px; fill: #4b5563; text-anchor: middle; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="canvas" width="680" height="809" />
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="202.0,444.0 202.0,492.0 192.0,492.0 192.0,540.0" data-evidence="401-402" />
|
||||
<rect class="edge-label-bg" x="141.1" y="450.0" width="111.8" height="22" rx="3" />
|
||||
<text class="edge-label" x="197.0" y="465.0">afterCommit 도착</text>
|
||||
<polyline class="edge kind-request style-solid emphasis-normal" points="316.0,124.0 316.0,172.0 316.0,172.0 316.0,220.0" data-evidence="397-399" />
|
||||
<rect class="edge-label-bg" x="284.1" y="158.0" width="111.8" height="22" rx="3" />
|
||||
<text class="edge-label" x="340.0" y="173.0">commit(status)</text>
|
||||
<polyline class="edge kind-response style-solid emphasis-normal semantic-dashed" points="325.0,284.0 325.0,332.0 426.0,332.0 426.0,380.0" data-evidence="388-388,396-400" />
|
||||
<rect class="edge-label-bg" x="349.8" y="290.0" width="51.5" height="22" rx="3" />
|
||||
<text class="edge-label" x="375.5" y="305.0">예외 없음</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-primary" points="477.0,604.0 477.0,652.0 429.5,652.0 429.5,700.0" data-evidence="409-409" />
|
||||
<rect class="edge-label-bg" x="417.4" y="610.0" width="71.6" height="22" rx="3" />
|
||||
<text class="edge-label" x="453.2" y="625.0">판정 근거 없음</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="220.0,444.0 220.0,492.0 468.0,492.0 468.0,540.0" data-evidence="403-404" />
|
||||
<rect class="edge-label-bg" x="322.0" y="450.0" width="44.0" height="22" rx="3" />
|
||||
<text class="edge-label" x="344.0" y="465.0">미도착</text>
|
||||
<polyline class="edge kind-data style-solid emphasis-normal" points="459.0,604.0 459.0,652.0 211.0,652.0 211.0,700.0" data-evidence="404-407" />
|
||||
<rect class="edge-label-bg" x="302.6" y="610.0" width="64.9" height="22" rx="3" />
|
||||
<text class="edge-label" x="335.0" y="625.0">하나라도 성립</text>
|
||||
<polyline class="edge kind-response style-solid emphasis-normal semantic-dashed" points="307.0,284.0 307.0,332.0 211.0,332.0 211.0,380.0" data-evidence="400-401" />
|
||||
<rect class="edge-label-bg" x="196.4" y="290.0" width="125.2" height="22" rx="3" />
|
||||
<text class="edge-label" x="259.0" y="305.0">RuntimeException</text>
|
||||
<g id="node-commit-requested">
|
||||
<rect class="node-shape kind-process emphasis-normal role-source" data-evidence="397-397" x="241.0" y="60.0" width="150.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="316.0" y="90.0">COMMIT_REQUESTED</text>
|
||||
</g>
|
||||
<g id="node-provider-commit">
|
||||
<rect class="node-shape kind-service emphasis-normal role-service" data-evidence="398-400" x="241.0" y="220.0" width="150.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="316.0" y="250.0">provider commit</text>
|
||||
</g>
|
||||
<g id="node-ack-check">
|
||||
<rect class="node-shape kind-process emphasis-normal role-service" data-evidence="401-401" x="131.0" y="380.0" width="160.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="211.0" y="410.0">commitAcknowledged</text>
|
||||
</g>
|
||||
<g id="node-committed">
|
||||
<rect class="node-shape kind-result emphasis-normal role-sink" data-evidence="388-388,396-400" x="351.0" y="380.0" width="150.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="426.0" y="410.0">Committed</text>
|
||||
</g>
|
||||
<g id="node-post-commit-failure">
|
||||
<rect class="node-shape kind-result emphasis-normal role-sink" data-evidence="402-402" x="70.0" y="540.0" width="244.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="192.0" y="570.0">CommittedWithPostCommitFailure</text>
|
||||
</g>
|
||||
<g id="node-rollback-check">
|
||||
<rect class="node-shape kind-process emphasis-normal role-service" data-evidence="404-406" x="374.0" y="540.0" width="188.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="468.0" y="570.0">rolledBack · replay 후보</text>
|
||||
</g>
|
||||
<g id="node-determinate-rollback">
|
||||
<rect class="node-shape kind-result emphasis-normal role-sink" data-evidence="407-407" x="127.5" y="700.0" width="167.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="211.0" y="730.0">DeterminateRollback</text>
|
||||
</g>
|
||||
<g id="node-indeterminate">
|
||||
<rect class="node-shape kind-result emphasis-primary role-sink" data-evidence="391-391,409-409" x="354.5" y="700.0" width="150.0" height="64.0" rx="7" />
|
||||
<text class="node-label" x="429.5" y="730.0">Indeterminate</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 8.6 KiB |
Reference in New Issue
Block a user