결제 전환 목표 아키텍처 정의 (2/2) (iss-d65d495e8095)
All checks were successful
ci / test (pull_request) Successful in 6s
All checks were successful
ci / test (pull_request) Successful in 6s
This commit is contained in:
parent
9916fe55a3
commit
770dd0e3f4
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 @@
|
||||||
|
%%%{init: {'themeVariables': {'sequenceDiagramTheme': 'default'}}}%%%
|
||||||
|
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant PaymentGateway
|
||||||
|
participant Database
|
||||||
|
|
||||||
|
User->>PaymentGateway: Initiate Payment
|
||||||
|
alt Successful Payment
|
||||||
|
PaymentGateway->>Database: Commit Transaction
|
||||||
|
Database-->>PaymentGateway: Confirm Commit
|
||||||
|
PaymentGateway-->>User: Payment Success
|
||||||
|
else External Failure
|
||||||
|
PaymentGateway-->>User: Payment Failure
|
||||||
|
else DB Failure
|
||||||
|
PaymentGateway->>Database: Rollback Transaction
|
||||||
|
Database-->>PaymentGateway: Confirm Rollback
|
||||||
|
PaymentGateway-->>User: Payment Rollback
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue