결제 전환 목표 아키텍처 정의 (2/2) #4
1 changed files with 19 additions and 0 deletions
19
docs/architecture/transaction-sequence.md
Normal file
19
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
```mermaid
|
||||
sequenceDiagram
|
||||
participant User
|
||||
participant PaymentService
|
||||
participant PaymentGateway
|
||||
participant Database
|
||||
|
||||
User->>PaymentService: 결제 요청
|
||||
PaymentService->>Database: 거래 시작
|
||||
Database-->>PaymentService: 거래 ID
|
||||
PaymentService->>PaymentGateway: 결제 진행
|
||||
alt Success
|
||||
PaymentGateway-->>PaymentService: 결제 성공
|
||||
PaymentService->>Database: 거래 확정
|
||||
else Failure
|
||||
PaymentGateway-->>PaymentService: 결제 실패
|
||||
PaymentService->>Database: 거래 롤백
|
||||
end
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue