From 2fd38c05759a2192620f79c362f3e07796d25b2b Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 05:53:33 +0000 Subject: [PATCH] =?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(1/2)=20(SPRING-ARC-REVIEW-1783835414)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/architecture/transaction-sequence.md | 47 +++++++++-------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/docs/architecture/transaction-sequence.md b/docs/architecture/transaction-sequence.md index c4e14df..441cbe9 100644 --- a/docs/architecture/transaction-sequence.md +++ b/docs/architecture/transaction-sequence.md @@ -1,32 +1,21 @@ ```mermaid sequenceDiagram - participant User - participant PaymentGateway - participant PaymentService - participant Database - - User->>+PaymentService: Start Payment - PaymentService->>+PaymentGateway: Process Payment - PaymentGateway-->>-PaymentService: Payment Success - PaymentService->>Database: Record Payment - Database-->>-PaymentService: Payment Recorded - PaymentService-->>-User: Payment Confirmed - - %% External Failure - User->>+PaymentService: Start Payment - PaymentService->>+PaymentGateway: Process Payment - PaymentGateway-->>-PaymentService: Payment Failed - PaymentService-->>-User: Payment Failed - - %% DB Failure - User->>+PaymentService: Start Payment - PaymentService->>+PaymentGateway: Process Payment - PaymentGateway-->>-PaymentService: Payment Success - PaymentService->>Database: Record Payment - Database-->>-PaymentService: DB Failure - PaymentService-->>-User: Payment Processing Error - - %% Commit/Rollback - Note over PaymentService: Commit if successful - Note over PaymentService: Rollback if there's an error + participant A as User + participant B as Payment Processor + participant C as External Gateway + A->>B: 결제 요청 + B->>C: 결제 정보 전달 + alt 성공 + C-->>B: 성공 응답 + B-->>A: 결제 완료 + note right of A: 결제 성공 처리 + else 외부 실패 + C-->>B: 실패 응답 + B-->>A: 결제 실패 + note right of A: 실패 처리 및 재시도 + else DB 실패 + B->>B: 롤백 처리 + B-->>A: 결제 실패 + note right of A: 롤백 기록 + end ``` \ No newline at end of file