결제 전환 목표 아키텍처 정의 (SPRING-ARC-SPLIT-1783827796)
All checks were successful
ci / test (pull_request) Successful in 7s
All checks were successful
ci / test (pull_request) Successful in 7s
This commit is contained in:
parent
e778ed1253
commit
477aac5500
1 changed files with 21 additions and 0 deletions
21
docs/architecture/transaction-sequence.md
Normal file
21
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
sequenceDiagram
|
||||
participant User
|
||||
participant PaymentService
|
||||
participant PaymentRepository
|
||||
participant ExternalAPI
|
||||
|
||||
User->>PaymentService: 결제 요청
|
||||
PaymentService->>PaymentRepository: 결제 정보 저장
|
||||
alt 정상 흐름
|
||||
PaymentRepository-->>PaymentService: 저장 성공
|
||||
PaymentService->>ExternalAPI: 결제 처리 요청
|
||||
ExternalAPI-->>PaymentService: 결제 성공
|
||||
PaymentService-->>User: 결제 완료
|
||||
else 외부 실패
|
||||
PaymentRepository-->>PaymentService: 저장 성공
|
||||
PaymentService-->>User: 결제 실패 (외부 API 오류)
|
||||
else DB 실패
|
||||
PaymentRepository-->>PaymentService: 저장 실패
|
||||
PaymentService-->>User: 결제 실패 (DB 오류)
|
||||
end
|
||||
note over PaymentService: 커밋 또는 롤백 경계
|
||||
Loading…
Add table
Add a link
Reference in a new issue