Compare commits
3 commits
forge/SPRI
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e864511fb | |||
| 66aafd3f69 | |||
| fdaecafe9e |
3 changed files with 35 additions and 3 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
# SPRING-ARC-REVIEW-1783835414-attempt-2-run-cf609ec4b93d
|
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/SPRING-ARC-REVIEW-1783835414-attempt-2-run-cf609ec4b93d`.
|
|
||||||
3
.forge/iss-81c03d204ddd-attempt-1-run-c46c886cd339.md
Normal file
3
.forge/iss-81c03d204ddd-attempt-1-run-c46c886cd339.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-81c03d204ddd-attempt-1-run-c46c886cd339
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-81c03d204ddd-attempt-1-run-c46c886cd339`.
|
||||||
32
docs/architecture/transaction-sequence.md
Normal file
32
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
```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
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue