From 3dd4f940bf5db09ab00a40be9cb9bea841e545c3 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 04:29:22 +0000 Subject: [PATCH 1/2] forge: open work branch for iss-d65d495e8095-attempt-1 --- .forge/iss-d65d495e8095-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/iss-d65d495e8095-attempt-1.md diff --git a/.forge/iss-d65d495e8095-attempt-1.md b/.forge/iss-d65d495e8095-attempt-1.md new file mode 100644 index 0000000..6a47dce --- /dev/null +++ b/.forge/iss-d65d495e8095-attempt-1.md @@ -0,0 +1,3 @@ +# iss-d65d495e8095-attempt-1 + +Forge 이슈 작업 브랜치 `forge/iss-d65d495e8095-attempt-1`. -- 2.49.1 From 5809091bac6af5a4b0cfabafdda2b31d7a9e1a27 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 04:29:29 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=EA=B2=B0=EC=A0=9C=20=EC=A0=84=ED=99=98=20?= =?UTF-8?q?=EB=AA=A9=ED=91=9C=20=EC=95=84=ED=82=A4=ED=85=8D=EC=B2=98=20?= =?UTF-8?q?=EC=A0=95=EC=9D=98=20(2/2)=20(iss-d65d495e8095)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/architecture/transaction-sequence.md | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/architecture/transaction-sequence.md diff --git a/docs/architecture/transaction-sequence.md b/docs/architecture/transaction-sequence.md new file mode 100644 index 0000000..2c2686e --- /dev/null +++ b/docs/architecture/transaction-sequence.md @@ -0,0 +1,28 @@ +sequenceDiagram + participant User as User + participant PaymentGateway as Payment Gateway + participant PaymentService as Payment Service + participant Database as Database + + User->>PaymentService: 요청(결제) + PaymentService->>PaymentGateway: 결제 요청 + alt 정상 케이스 + PaymentGateway-->>PaymentService: 결제 성공 + PaymentService->>Database: DB에 거래 내역 저장 + Database-->>PaymentService: 저장 성공 + PaymentService-->>User: 결제 완료 + else 외부 실패 + PaymentGateway-->>PaymentService: 결제 실패 + PaymentService-->>User: 결제 실패 메시지 전송 + else DB 실패 + PaymentGateway-->>PaymentService: 결제 성공 + PaymentService->>Database: DB에 거래 내역 저장 + Database-->>PaymentService: 저장 실패 + PaymentService-->>User: 결제 실패 메시지 전송 + end + + %% Commit과 Rollback 경계 + PaymentService->>Database: COMMIT (정상 흐름) + Database-->>PaymentService: COMMIT 성공 + PaymentService->>Database: ROLLBACK (오류 발생 시) + Database-->>PaymentService: ROLLBACK 완료 -- 2.49.1