결제 전환 목표 아키텍처 정의 (2/2) #5

Merged
forge-bot merged 2 commits from forge/iss-5a912ed79baf-attempt-3 into main 2026-07-12 05:20:44 +00:00
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# iss-5a912ed79baf-attempt-3
Forge 이슈 작업 브랜치 `forge/iss-5a912ed79baf-attempt-3`.

View file

@ -0,0 +1,38 @@
```mermaid
sequenceDiagram
participant User
participant PaymentService
participant PaymentGateway
participant Database
%% Normal Flow
User->>PaymentService: Initiate Payment
PaymentService->>Database: Store Transaction
Database-->>PaymentService: Transaction Stored
PaymentService->>PaymentGateway: Process Payment
PaymentGateway-->>PaymentService: Payment Success
PaymentService->>Database: Update Transaction Status
Database-->>PaymentService: Transaction Updated
PaymentService-->>User: Payment Success
%% External Failure Flow
User->>PaymentService: Initiate Payment
PaymentService->>Database: Store Transaction
Database-->>PaymentService: Transaction Stored
PaymentService->>PaymentGateway: Process Payment
PaymentGateway-->>PaymentService: Payment Failure
PaymentService->>Database: Rollback Transaction
Database-->>PaymentService: Transaction Rolled Back
PaymentService-->>User: Payment Failure
%% DB Failure Flow
User->>PaymentService: Initiate Payment
PaymentService->>Database: Store Transaction
Database-->>PaymentService: Transaction Store Failure
PaymentService-->>User: Payment Failure
%% Commit & Rollback
Note over User, PaymentService:
commit --> PaymentService
rollback --> PaymentService
```