결제 전환 목표 아키텍처 정의 (SPRING-ARC-REVIEW-1783824683)
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
c5d605d998
commit
0504155b29
1 changed files with 37 additions and 0 deletions
37
docs/architecture/transaction-sequence.md
Normal file
37
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
```mermaid
|
||||
sequenceDiagram
|
||||
participant User
|
||||
participant Controller
|
||||
participant Service
|
||||
participant Repository
|
||||
participant Database
|
||||
|
||||
User->>Controller: 결제 요청
|
||||
Controller->>Service: 결제 처리 요청
|
||||
Service->>Repository: 결제 정보 저장
|
||||
Repository->>Database: DB에 결제 정보 저장
|
||||
Database-->>Repository: 저장 완료
|
||||
Repository-->>Service: 저장 완료
|
||||
Service-->>Controller: 결제 결과 반환
|
||||
Controller-->>User: 결제 완료
|
||||
|
||||
Note over User, Controller: 외부 실패 발생
|
||||
User->>Controller: 결제 요청
|
||||
Controller->>Service: 결제 처리 요청
|
||||
Service->>Repository: 결제 정보 저장
|
||||
Repository->>Database: DB에 결제 정보 저장
|
||||
Database-->>Repository: 저장 실패
|
||||
Repository-->>Service: 저장 실패
|
||||
Service-->>Controller: 결제 실패
|
||||
Controller-->>User: 결제 실패
|
||||
|
||||
Note over User, Controller: DB 실패 발생
|
||||
User->>Controller: 결제 요청
|
||||
Controller->>Service: 결제 처리 요청
|
||||
Service->>Repository: 결제 정보 저장
|
||||
Repository->>Database: DB에 결제 정보 저장
|
||||
Database-->>Repository: 저장 실패
|
||||
Repository-->>Service: 저장 실패
|
||||
Service-->>Controller: 결제 실패
|
||||
Controller-->>User: 결제 실패
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue