결제 전환 목표 아키텍처 정의 (SPRING-ARC-REFERENCE-1783832425)
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
f6a8771f55
commit
5311948bbc
1 changed files with 27 additions and 0 deletions
27
docs/architecture/transaction-sequence.md
Normal file
27
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant Controller
|
||||||
|
participant Service
|
||||||
|
participant Repository
|
||||||
|
participant ExternalGateway
|
||||||
|
|
||||||
|
User->>Controller: 결제 요청
|
||||||
|
Controller->>Service: 결제 처리 요청
|
||||||
|
Service->>Repository: 결제 정보 저장
|
||||||
|
Repository-->>Service: 저장 완료
|
||||||
|
Service->>ExternalGateway: 결제 요청
|
||||||
|
ExternalGateway-->>Service: 결제 성공
|
||||||
|
Service-->>Controller: 결제 완료
|
||||||
|
Controller-->>User: 결제 성공 응답
|
||||||
|
|
||||||
|
Note over Service: DB 실패 시
|
||||||
|
Service->>Repository: 롤백 요청
|
||||||
|
Repository-->>Service: 롤백 완료
|
||||||
|
Service-->>Controller: 결제 실패
|
||||||
|
Controller-->>User: 결제 실패 응답
|
||||||
|
|
||||||
|
Note over Service: 외부 실패 시
|
||||||
|
Service->>Controller: 결제 실패
|
||||||
|
Controller-->>User: 결제 실패 응답
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue