결제 전환 목표 아키텍처 정의 (SPRING-ARC-REVIEW-1783824683)
All checks were successful
ci / test (pull_request) Successful in 8s
All checks were successful
ci / test (pull_request) Successful in 8s
This commit is contained in:
parent
d7bd92aaee
commit
d364c1db5b
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 Database
|
||||||
|
participant ExternalService
|
||||||
|
|
||||||
|
User->>PaymentService: 결제 요청
|
||||||
|
PaymentService->>Database: 트랜잭션 시작
|
||||||
|
alt 정상 흐름
|
||||||
|
PaymentService->>ExternalService: 결제 처리 요청
|
||||||
|
ExternalService-->>PaymentService: 결제 성공
|
||||||
|
PaymentService->>Database: 트랜잭션 커밋
|
||||||
|
else 외부 실패
|
||||||
|
PaymentService->>Database: 트랜잭션 롤백
|
||||||
|
else DB 실패
|
||||||
|
PaymentService->>Database: 트랜잭션 롤백
|
||||||
|
end
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue