결제 전환 목표 아키텍처 정의 (SPRING-ARC-SPLIT-1783827796)
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
91630db38c
commit
3c6dd544a8
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 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant Controller
|
||||||
|
participant Service
|
||||||
|
participant Repository
|
||||||
|
participant ExternalGateway
|
||||||
|
|
||||||
|
User->>Controller: 결제 요청
|
||||||
|
Controller->>Service: 결제 처리 요청
|
||||||
|
Service->>Repository: 트랜잭션 시작
|
||||||
|
alt 정상 흐름
|
||||||
|
Service->>ExternalGateway: 결제 요청
|
||||||
|
ExternalGateway-->>Service: 결제 성공
|
||||||
|
Service->>Repository: 트랜잭션 커밋
|
||||||
|
else 외부 실패
|
||||||
|
Service->>Repository: 트랜잭션 롤백
|
||||||
|
else DB 실패
|
||||||
|
Service->>Repository: 트랜잭션 롤백
|
||||||
|
end
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue